Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | # 'nightly' contains things that are in nightly mozconfigs and allowed to be missing from release builds. |
michael@0 | 2 | # Other keys in whitelist contain things are in that branches mozconfigs and allowed to be missing from nightly builds. |
michael@0 | 3 | whitelist = { |
michael@0 | 4 | 'release': {}, |
michael@0 | 5 | 'nightly': {}, |
michael@0 | 6 | } |
michael@0 | 7 | |
michael@0 | 8 | all_platforms = ['win64', 'win32', 'linux32', 'linux64', 'macosx-universal'] |
michael@0 | 9 | |
michael@0 | 10 | for platform in all_platforms: |
michael@0 | 11 | whitelist['nightly'][platform] = [ |
michael@0 | 12 | 'ac_add_options --enable-update-channel=nightly', |
michael@0 | 13 | 'ac_add_options --enable-profiling', |
michael@0 | 14 | 'mk_add_options CLIENT_PY_ARGS="--hg-options=\'--verbose --time\' --hgtool=../tools/buildfarm/utils/hgtool.py --skip-chatzilla --skip-comm --skip-inspector --skip-venkman --tinderbox-print"' |
michael@0 | 15 | ] |
michael@0 | 16 | |
michael@0 | 17 | for platform in ['linux32', 'linux64', 'macosx-universal']: |
michael@0 | 18 | whitelist['nightly'][platform] += [ |
michael@0 | 19 | 'mk_add_options MOZ_MAKE_FLAGS="-j4"', |
michael@0 | 20 | ] |
michael@0 | 21 | |
michael@0 | 22 | for platform in ['linux32', 'linux64', 'macosx-universal', 'win32', 'win64']: |
michael@0 | 23 | whitelist['nightly'][platform] += ['ac_add_options --enable-signmar'] |
michael@0 | 24 | whitelist['nightly'][platform] += ['ac_add_options --enable-js-diagnostics'] |
michael@0 | 25 | |
michael@0 | 26 | whitelist['nightly']['linux32'] += [ |
michael@0 | 27 | 'CXX=$REAL_CXX', |
michael@0 | 28 | 'CXX="ccache $REAL_CXX"', |
michael@0 | 29 | 'CC="ccache $REAL_CC"', |
michael@0 | 30 | 'mk_add_options PROFILE_GEN_SCRIPT=@TOPSRCDIR@/build/profile_pageloader.pl', |
michael@0 | 31 | 'ac_add_options --with-ccache=/usr/bin/ccache', |
michael@0 | 32 | '. "$topsrcdir/build/mozconfig.cache"', |
michael@0 | 33 | 'export MOZILLA_OFFICIAL=1', |
michael@0 | 34 | 'export MOZ_TELEMETRY_REPORTING=1', |
michael@0 | 35 | "mk_add_options PROFILE_GEN_SCRIPT='$(PYTHON) @MOZ_OBJDIR@/_profile/pgo/profileserver.py 10'", |
michael@0 | 36 | 'STRIP_FLAGS="--strip-debug"', |
michael@0 | 37 | 'ac_add_options --disable-elf-hack # --enable-elf-hack conflicts with --enable-profiling', |
michael@0 | 38 | ] |
michael@0 | 39 | |
michael@0 | 40 | whitelist['nightly']['linux64'] += [ |
michael@0 | 41 | 'export MOZILLA_OFFICIAL=1', |
michael@0 | 42 | 'export MOZ_TELEMETRY_REPORTING=1', |
michael@0 | 43 | "mk_add_options PROFILE_GEN_SCRIPT='$(PYTHON) @MOZ_OBJDIR@/_profile/pgo/profileserver.py 10'", |
michael@0 | 44 | 'STRIP_FLAGS="--strip-debug"', |
michael@0 | 45 | 'ac_add_options --with-ccache=/usr/bin/ccache', |
michael@0 | 46 | '. "$topsrcdir/build/mozconfig.cache"', |
michael@0 | 47 | 'ac_add_options --disable-elf-hack # --enable-elf-hack conflicts with --enable-profiling', |
michael@0 | 48 | ] |
michael@0 | 49 | |
michael@0 | 50 | whitelist['nightly']['macosx-universal'] += [ |
michael@0 | 51 | 'ac_add_options --with-macbundlename-prefix=Firefox', |
michael@0 | 52 | 'mk_add_options MOZ_MAKE_FLAGS="-j12"', |
michael@0 | 53 | 'ac_add_options --with-ccache', |
michael@0 | 54 | '. "$topsrcdir/build/mozconfig.cache"', |
michael@0 | 55 | 'ac_add_options --disable-install-strip', |
michael@0 | 56 | 'ac_add_options --enable-instruments', |
michael@0 | 57 | 'ac_add_options --enable-dtrace', |
michael@0 | 58 | ] |
michael@0 | 59 | |
michael@0 | 60 | whitelist['nightly']['win32'] += [ |
michael@0 | 61 | '. $topsrcdir/configs/mozilla2/win32/include/choose-make-flags', |
michael@0 | 62 | 'mk_add_options MOZ_MAKE_FLAGS=-j1', |
michael@0 | 63 | '. "$topsrcdir/build/mozconfig.cache"', |
michael@0 | 64 | 'if test "$IS_NIGHTLY" != ""; then', |
michael@0 | 65 | 'ac_add_options --disable-auto-deps', |
michael@0 | 66 | 'fi', |
michael@0 | 67 | ] |
michael@0 | 68 | whitelist['nightly']['win64'] += [ |
michael@0 | 69 | '. "$topsrcdir/browser/config/mozconfigs/win64/common-win64"', |
michael@0 | 70 | ] |
michael@0 | 71 | |
michael@0 | 72 | for platform in all_platforms: |
michael@0 | 73 | whitelist['release'][platform] = [ |
michael@0 | 74 | 'ac_add_options --enable-update-channel=release', |
michael@0 | 75 | 'ac_add_options --enable-official-branding', |
michael@0 | 76 | 'mk_add_options MOZ_MAKE_FLAGS="-j4"', |
michael@0 | 77 | 'export BUILDING_RELEASE=1', |
michael@0 | 78 | ] |
michael@0 | 79 | whitelist['release']['win32'] += ['mk_add_options MOZ_PGO=1'] |
michael@0 | 80 | whitelist['release']['win64'] += ['mk_add_options MOZ_PGO=1'] |
michael@0 | 81 | |
michael@0 | 82 | whitelist['release']['linux32'] += [ |
michael@0 | 83 | 'export MOZILLA_OFFICIAL=1', |
michael@0 | 84 | 'export MOZ_TELEMETRY_REPORTING=1', |
michael@0 | 85 | 'mk_add_options MOZ_PGO=1', |
michael@0 | 86 | "mk_add_options PROFILE_GEN_SCRIPT='$(PYTHON) @MOZ_OBJDIR@/_profile/pgo/profileserver.py 10'", |
michael@0 | 87 | ] |
michael@0 | 88 | whitelist['release']['linux64'] += [ |
michael@0 | 89 | 'export MOZILLA_OFFICIAL=1', |
michael@0 | 90 | 'export MOZ_TELEMETRY_REPORTING=1', |
michael@0 | 91 | 'mk_add_options MOZ_PGO=1', |
michael@0 | 92 | "mk_add_options PROFILE_GEN_SCRIPT='$(PYTHON) @MOZ_OBJDIR@/_profile/pgo/profileserver.py 10'", |
michael@0 | 93 | ] |
michael@0 | 94 | |
michael@0 | 95 | if __name__ == '__main__': |
michael@0 | 96 | import pprint |
michael@0 | 97 | pprint.pprint(whitelist) |