Skip to content

Commit

Permalink
Bug 1228444 - Don't silence "no preprocessor directives found" warnin…
Browse files Browse the repository at this point in the history
…gs for DIST_FILES. r=gps

and move files without preprocessor directives to FINAL_TARGET_FILES.
  • Loading branch information
glandium committed Nov 30, 2015
1 parent 5dfa893 commit 655579a
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 11 deletions.
3 changes: 0 additions & 3 deletions config/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -1270,9 +1270,6 @@ endif

ifneq ($(DIST_FILES),)
DIST_FILES_PATH := $(FINAL_TARGET)
# We preprocess these, but they don't necessarily have preprocessor directives,
# so tell them preprocessor to not complain about that.
DIST_FILES_FLAGS := --silence-missing-directive-warnings
PP_TARGETS += DIST_FILES
endif

Expand Down
5 changes: 4 additions & 1 deletion dom/indexedDB/test/extensions/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
XPI_NAME = 'indexedDB'

DIST_FILES += [
'bootstrap.js',
'install.rdf',
]

FINAL_TARGET_FILES += [
'bootstrap.js',
]
5 changes: 4 additions & 1 deletion dom/workers/test/extensions/bootstrap/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
XPI_NAME = 'workerbootstrap'

DIST_FILES += [
'bootstrap.js',
'install.rdf',
]

FINAL_TARGET_FILES += [
'bootstrap.js',
'worker.js',
]
3 changes: 3 additions & 0 deletions dom/workers/test/extensions/traditional/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,8 @@ XPI_NAME = 'worker'

DIST_FILES += [
'install.rdf',
]

FINAL_TARGET_FILES += [
'worker.js',
]
5 changes: 1 addition & 4 deletions python/mozbuild/mozbuild/backend/fastermake.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,8 @@ def consume_object(self, obj):

elif isinstance(obj, DistFiles) and \
obj.install_target.startswith('dist/bin'):
# We preprocess these, but they don't necessarily have preprocessor
# directives, so tell the preprocessor to not complain about that.
for f in obj.files:
self._add_preprocess(obj, f, '', defines=defines,
silence_missing_directive_warnings=True)
self._add_preprocess(obj, f, '', defines=defines)

elif isinstance(obj, ChromeManifestEntry) and \
obj.install_target.startswith('dist/bin'):
Expand Down
5 changes: 4 additions & 1 deletion testing/specialpowers/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ USE_EXTENSION_MANIFEST = True
NO_JS_MANIFEST = True

DIST_FILES += [
'bootstrap.js',
'install.rdf',
]

FINAL_TARGET_FILES += [
'bootstrap.js',
]
5 changes: 4 additions & 1 deletion tools/quitter/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ USE_EXTENSION_MANIFEST = True
NO_JS_MANIFEST = True

DIST_FILES += [
'chrome.manifest',
'install.rdf',
]

FINAL_TARGET_FILES += [
'chrome.manifest',
]

0 comments on commit 655579a

Please sign in to comment.