2013-07-15 17:27:12 +00:00
|
|
|
# 'nightly' contains things that are in nightly mozconfigs and allowed to be missing from release builds.
|
|
|
|
# Other keys in whitelist contain things are in that branches mozconfigs and allowed to be missing from nightly builds.
|
|
|
|
whitelist = {
|
|
|
|
'release': {},
|
|
|
|
'nightly': {},
|
|
|
|
}
|
|
|
|
|
2016-12-07 20:45:39 +00:00
|
|
|
all_platforms = ['win64', 'win32', 'linux32', 'linux64', 'macosx64']
|
2013-07-15 17:27:12 +00:00
|
|
|
|
|
|
|
for platform in all_platforms:
|
|
|
|
whitelist['nightly'][platform] = [
|
2015-05-28 14:03:23 +00:00
|
|
|
'ac_add_options --with-branding=browser/branding/nightly',
|
2013-07-15 17:27:12 +00:00
|
|
|
]
|
|
|
|
|
2016-12-07 20:45:39 +00:00
|
|
|
whitelist['nightly']['macosx64'] += [
|
2013-07-15 17:27:12 +00:00
|
|
|
'ac_add_options --disable-install-strip',
|
|
|
|
'ac_add_options --enable-instruments',
|
|
|
|
'ac_add_options --enable-dtrace',
|
2016-11-29 19:43:43 +00:00
|
|
|
'if test `uname -s` != Linux; then',
|
2013-07-15 17:27:12 +00:00
|
|
|
]
|
|
|
|
|
2014-01-23 18:54:10 +00:00
|
|
|
whitelist['nightly']['win64'] += [
|
|
|
|
'. "$topsrcdir/browser/config/mozconfigs/win64/common-win64"',
|
|
|
|
]
|
2013-07-15 17:27:12 +00:00
|
|
|
|
|
|
|
for platform in all_platforms:
|
|
|
|
whitelist['release'][platform] = [
|
|
|
|
'ac_add_options --enable-update-channel=release',
|
|
|
|
'ac_add_options --enable-official-branding',
|
|
|
|
'export BUILDING_RELEASE=1',
|
2015-10-24 02:59:54 +00:00
|
|
|
'if [ -n "$ENABLE_RELEASE_PROMOTION" ]; then',
|
|
|
|
'MOZ_AUTOMATION_UPDATE_PACKAGING=1',
|
|
|
|
'fi',
|
2013-07-15 17:27:12 +00:00
|
|
|
]
|
2017-11-07 23:13:02 +00:00
|
|
|
whitelist['release']['win32'] += ['ac_add_options MOZ_PGO=1']
|
|
|
|
whitelist['release']['win64'] += ['ac_add_options MOZ_PGO=1']
|
2014-01-23 18:54:10 +00:00
|
|
|
|
2013-07-15 17:27:12 +00:00
|
|
|
whitelist['release']['linux32'] += [
|
|
|
|
'export MOZILLA_OFFICIAL=1',
|
|
|
|
'export MOZ_TELEMETRY_REPORTING=1',
|
2017-11-07 23:13:02 +00:00
|
|
|
'ac_add_options MOZ_PGO=1',
|
2013-07-15 17:27:12 +00:00
|
|
|
]
|
|
|
|
whitelist['release']['linux64'] += [
|
|
|
|
'export MOZILLA_OFFICIAL=1',
|
|
|
|
'export MOZ_TELEMETRY_REPORTING=1',
|
2017-11-07 23:13:02 +00:00
|
|
|
'ac_add_options MOZ_PGO=1',
|
2013-07-15 17:27:12 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
import pprint
|
|
|
|
pprint.pprint(whitelist)
|