Skip to content

Commit

Permalink
Bug 772828 - Part b: use RESOURCE_FILES in moz.build instead of manua…
Browse files Browse the repository at this point in the history
…l rules in Makefile.in; r=mshal
  • Loading branch information
Brian O'Keefe committed Nov 5, 2013
1 parent 125fc22 commit 999f24a
Show file tree
Hide file tree
Showing 30 changed files with 153 additions and 203 deletions.
12 changes: 0 additions & 12 deletions content/xml/content/src/Makefile.in

This file was deleted.

3 changes: 3 additions & 0 deletions content/xml/content/src/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,6 @@ LOCAL_INCLUDES += [
'/content/base/src',
]

RESOURCE_FILES.dtd += [
'htmlmathml-f.ent',
]
32 changes: 0 additions & 32 deletions editor/composer/src/Makefile.in

This file was deleted.

22 changes: 22 additions & 0 deletions editor/composer/src/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,25 @@ UNIFIED_SOURCES += [
FAIL_ON_WARNINGS = True

FINAL_LIBRARY = 'xul'
RESOURCE_FILES += [
'res/EditorOverride.css',
'res/grabber.gif',
'res/table-add-column-after-active.gif',
'res/table-add-column-after-hover.gif',
'res/table-add-column-after.gif',
'res/table-add-column-before-active.gif',
'res/table-add-column-before-hover.gif',
'res/table-add-column-before.gif',
'res/table-add-row-after-active.gif',
'res/table-add-row-after-hover.gif',
'res/table-add-row-after.gif',
'res/table-add-row-before-active.gif',
'res/table-add-row-before-hover.gif',
'res/table-add-row-before.gif',
'res/table-remove-column-active.gif',
'res/table-remove-column-hover.gif',
'res/table-remove-column.gif',
'res/table-remove-row-active.gif',
'res/table-remove-row-hover.gif',
'res/table-remove-row.gif',
]
8 changes: 0 additions & 8 deletions intl/locale/src/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,8 @@ ifeq ($(MOZ_WIDGET_TOOLKIT), qt)
OS_INCLUDES += $(MOZ_QT_CFLAGS)
endif

EXPORT_RESOURCE = \
$(srcdir)/langGroups.properties \
$(srcdir)/language.properties \
$(NULL)


include $(topsrcdir)/config/rules.mk

charsetalias.properties.h: props2arrays.py charsetalias.properties
$(PYTHON) $^ $@

libs::
$(INSTALL) $(EXPORT_RESOURCE) $(DIST)/bin/res
5 changes: 5 additions & 0 deletions intl/locale/src/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,8 @@ GENERATED_FILES = [
LOCAL_INCLUDES += [
'/intl/uconv/src',
]

RESOURCE_FILES += [
'langGroups.properties',
'language.properties',
]
12 changes: 0 additions & 12 deletions intl/unicharutil/tables/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,7 @@

include $(topsrcdir)/config/rules.mk

_PROP_TABLES = \
htmlEntityVersions.properties \
html40Latin1.properties \
html40Symbols.properties \
html40Special.properties \
transliterate.properties \
mathml20.properties \
$(NULL)

ifeq ($(MOZ_WIDGET_TOOLKIT), qt)
CFLAGS += $(MOZ_QT_CFLAGS)
CXXFLAGS += $(MOZ_QT_CFLAGS)
endif

libs:: $(_PROP_TABLES)
$(INSTALL) $^ $(DIST)/bin/res/entityTables
8 changes: 8 additions & 0 deletions intl/unicharutil/tables/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,11 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

RESOURCE_FILES.entityTables = [
'htmlEntityVersions.properties',
'html40Latin1.properties',
'html40Symbols.properties',
'html40Special.properties',
'mathml20.properties',
'transliterate.properties',
]
7 changes: 0 additions & 7 deletions layout/generic/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

RESOURCES_HTML = \
$(srcdir)/folder.png \
$(NULL)

include $(topsrcdir)/config/rules.mk

CXXFLAGS += \
Expand All @@ -19,6 +15,3 @@ endif
ifdef MOZ_ENABLE_QT
CXXFLAGS += $(MOZ_QT_CFLAGS)
endif

libs::
$(INSTALL) $(RESOURCES_HTML) $(DIST)/bin/res/html
4 changes: 4 additions & 0 deletions layout/generic/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,7 @@ LOCAL_INCLUDES += [
]

JAR_MANIFESTS += ['jar.mn']

RESOURCE_FILES.html = [
'folder.png',
]
35 changes: 0 additions & 35 deletions layout/mathml/Makefile.in

This file was deleted.

20 changes: 19 additions & 1 deletion layout/mathml/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,22 @@ if CONFIG['ENABLE_TESTS']:
'tests',
]

JAR_MANIFESTS += ['jar.mn']
JAR_MANIFESTS += ['jar.mn']

RESOURCE_FILES.fonts += [
'mathfont.properties',
'mathfontAsanaMath.properties',
'mathfontMathJax_Main.properties',
'mathfontStandardSymbolsL.properties',
'mathfontSTIXNonUnicode.properties',
'mathfontSTIXSize1.properties',
'mathfontSTIXSizeOneSym.properties',
'mathfontUnicode.properties',
]

RESOURCE_FILES.fonts['mathfont.properties'].preprocess = True

if CONFIG['TARGET_MD_ARCH'] == 'win32':
RESOURCE_FILES.fonts += [
'mathfontSymbol.properties',
]
12 changes: 0 additions & 12 deletions layout/style/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,6 @@ include $(topsrcdir)/config/rules.mk
nsStyleStructList.h : $(srcdir)/generate-stylestructlist.py
$(PYTHON) $< > $@

_FILES = \
contenteditable.css \
designmode.css \
ImageDocument.css \
TopLevelImageDocument.css \
TopLevelVideoDocument.css \
$(NULL)

GARBAGE += \
$(addprefix $(DIST)/bin/res/,$(_FILES)) \
nsStyleStructList.h \
$(NULL)

libs:: $(_FILES)
$(INSTALL) $^ $(DIST)/bin/res
8 changes: 8 additions & 0 deletions layout/style/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -156,3 +156,11 @@ LOCAL_INCLUDES += [
]

JAR_MANIFESTS += ['jar.mn']

RESOURCE_FILES += [
'contenteditable.css',
'designmode.css',
'ImageDocument.css',
'TopLevelImageDocument.css',
'TopLevelVideoDocument.css',
]
9 changes: 0 additions & 9 deletions layout/svg/Makefile.in
Original file line number Diff line number Diff line change
@@ -1,9 +0,0 @@
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

include $(topsrcdir)/config/rules.mk

libs::
$(INSTALL) $(srcdir)/svg.css $(DIST)/bin/res
4 changes: 4 additions & 0 deletions layout/svg/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,7 @@ LOCAL_INCLUDES += [
'../xul',
]

RESOURCE_FILES += [
'svg.css',
]

20 changes: 0 additions & 20 deletions mobile/android/fonts/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,5 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

packaged_fonts = \
CharisSILCompact-R.ttf \
CharisSILCompact-B.ttf \
CharisSILCompact-I.ttf \
CharisSILCompact-BI.ttf \
ClearSans-Thin.ttf \
ClearSans-Light.ttf \
ClearSans-Regular.ttf \
ClearSans-Medium.ttf \
ClearSans-Bold.ttf \
ClearSans-Italic.ttf \
ClearSans-MediumItalic.ttf \
ClearSans-BoldItalic.ttf \
$(NULL)

GARBAGE += $(packaged_fonts)

include $(topsrcdir)/config/rules.mk
include $(topsrcdir)/testing/testsuite-targets.mk

libs:: $(packaged_fonts)
$(INSTALL) $^ $(DIST)/bin/res/fonts/
14 changes: 14 additions & 0 deletions mobile/android/fonts/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,17 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

RESOURCE_FILES.fonts += [
'CharisSILCompact-B.ttf',
'CharisSILCompact-BI.ttf',
'CharisSILCompact-I.ttf',
'CharisSILCompact-R.ttf',
'ClearSans-Bold.ttf',
'ClearSans-BoldItalic.ttf',
'ClearSans-Italic.ttf',
'ClearSans-Light.ttf',
'ClearSans-Medium.ttf',
'ClearSans-MediumItalic.ttf',
'ClearSans-Regular.ttf',
'ClearSans-Thin.ttf',
]
6 changes: 0 additions & 6 deletions netwerk/test/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,6 @@ include $(topsrcdir)/config/rules.mk
check::
$(RUN_TEST_PROGRAM) $(DIST)/bin/TestCookie$(BIN_SUFFIX)

_RES_FILES = urlparse.dat \
urlparse_unx.dat \
$(NULL)
libs:: $(_RES_FILES)
$(INSTALL) $^ $(DIST)/bin/res

# One of the xpcshell unit tests needs this file, so make sure it winds
# up in the test directory.
libs::
Expand Down
4 changes: 4 additions & 0 deletions netwerk/test/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,7 @@ CPP_UNIT_TESTS += [
'TestUDPSocket.cpp',
]

RESOURCE_FILES += [
'urlparse.dat',
'urlparse_unx.dat',
]
14 changes: 0 additions & 14 deletions rdf/tests/dsds/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,8 @@

MOZILLA_INTERNAL_API = 1

SAMPLES_DIR = $(DIST)/bin/res/samples/rdf

RESOURCE_SAMPLES = \
DataSourceViewer.xul \
DataSourceViewer.css \
$(NULL)

EXTRA_DSO_LDOPTS = \
-L$(DIST)/bin \
$(XPCOM_LIBS) \
$(NSPR_LIBS) \
$(NULL)

include $(topsrcdir)/config/rules.mk

GARBAGE += $(addprefix $(SAMPLES_DIR)/, $(RESOURCE_SAMPLES))

libs::
$(INSTALL) $(addprefix $(srcdir)/,$(RESOURCE_SAMPLES)) $(SAMPLES_DIR)
4 changes: 4 additions & 0 deletions rdf/tests/dsds/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@ LIBRARY_NAME = 'rdfdsds'

IS_COMPONENT = True

RESOURCE_FILES.samples.rdf += [
'DataSourceViewer.xul',
'DataSourceViewer.css',
]
3 changes: 0 additions & 3 deletions tools/trace-malloc/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,3 @@ include $(topsrcdir)/config/rules.mk
# install rules.txt along with spacetrace executable
libs:: rules.txt
$(INSTALL) $< $(DIST)/bin

libs:: spacetrace.css
$(INSTALL) $< $(DIST)/bin/res
4 changes: 4 additions & 0 deletions tools/trace-malloc/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,7 @@ SOURCES += [
]

SIMPLE_PROGRAMS += simple_cpp_sources

RESOURCE_FILES += [
'spacetrace.css'
]
Loading

0 comments on commit 999f24a

Please sign in to comment.