Bug 1229241 - Differentiate preprocessed and non-preprocessed JS pref files. r=gps

This commit is contained in:
Mike Hommey 2015-11-28 09:42:40 +09:00
parent 4674cd8a4e
commit 488bd1361b
11 changed files with 18 additions and 10 deletions

View File

@ -74,7 +74,7 @@ if CONFIG['OS_ARCH'] == 'WINNT':
if CONFIG['GNU_CXX']:
CXXFLAGS += ['-Wshadow']
JS_PREFERENCE_FILES += [
JS_PREFERENCE_PP_FILES += [
'b2g.js',
]

View File

@ -5,8 +5,11 @@
DIST_SUBDIR = 'browser'
export('DIST_SUBDIR')
JS_PREFERENCE_FILES += [
JS_PREFERENCE_PP_FILES += [
'/b2g/app/b2g.js',
]
JS_PREFERENCE_FILES += [
'/b2g/dev/app/mulet.js',
]

View File

@ -11,7 +11,7 @@ if CONFIG['OS_ARCH'] == 'WINNT' and CONFIG['MOZ_ASAN']:
else:
GeckoProgram(CONFIG['MOZ_APP_NAME'], msvcrt='static')
JS_PREFERENCE_FILES += [
JS_PREFERENCE_PP_FILES += [
'profile/firefox.js',
]

View File

@ -4,6 +4,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/.
JS_PREFERENCE_FILES += [
JS_PREFERENCE_PP_FILES += [
'devtools.js',
]

View File

@ -18,6 +18,6 @@ MOCHITEST_CHROME_MANIFESTS += [
'test/chrome.ini'
]
JS_PREFERENCE_FILES += [
JS_PREFERENCE_PP_FILES += [
'webide-prefs.js',
]

View File

@ -13,7 +13,7 @@ for var in ('MOZ_UPDATER', 'MOZ_APP_UA_NAME', 'ANDROID_PACKAGE_NAME'):
if CONFIG['MOZ_PKG_SPECIAL']:
DEFINES['MOZ_PKG_SPECIAL'] = CONFIG['MOZ_PKG_SPECIAL']
JS_PREFERENCE_FILES += [
JS_PREFERENCE_PP_FILES += [
'mobile.js',
]

View File

@ -33,6 +33,6 @@ if CONFIG['ANDROID_APPCOMPAT_V7_AAR']:
ANDROID_EXTRA_PACKAGES += ['android.support.v7.appcompat']
ANDROID_EXTRA_RES_DIRS += ['%' + CONFIG['ANDROID_APPCOMPAT_V7_AAR_RES']]
JS_PREFERENCE_FILES += [
JS_PREFERENCE_PP_FILES += [
'b2gdroid.js',
]

View File

@ -1096,6 +1096,10 @@ VARIABLES = {
Path will be defined for gre or application prefs dir based on what is building.
""", 'libs'),
'JS_PREFERENCE_PP_FILES': (StrictOrderingOnAppendList, list,
"""Like JS_PREFERENCE_FILES, preprocessed..
""", 'libs'),
'LIBRARY_DEFINES': (OrderedDict, dict,
"""Dictionary of compiler defines to declare for the entire library.

View File

@ -637,7 +637,8 @@ class TreeMetadataEmitter(LoggingMixin):
'XPI_NAME.', context)
yield Resources(context, resources)
for pref in sorted(context['JS_PREFERENCE_FILES']):
for pref in sorted(context['JS_PREFERENCE_FILES'] +
context['JS_PREFERENCE_PP_FILES']):
yield JsPreferenceFile(context, pref)
self._handle_programs(context)

View File

@ -50,7 +50,7 @@ DEFINES['MOZ_APP_BASENAME'] = CONFIG['MOZ_APP_BASENAME']
JAR_MANIFESTS += ['jar.mn']
JS_PREFERENCE_FILES += [
JS_PREFERENCE_PP_FILES += [
'prefs.js',
]

View File

@ -54,7 +54,7 @@ if CONFIG['OS_ARCH'] == 'WINNT':
DISABLE_STL_WRAPPING = True
JS_PREFERENCE_FILES += [
JS_PREFERENCE_PP_FILES += [
'xulrunner.js',
]