browser/config/mozconfigs/whitelist

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/browser/config/mozconfigs/whitelist	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,97 @@
     1.4 +# 'nightly' contains things that are in nightly mozconfigs and allowed to be missing from release builds.
     1.5 +# Other keys in whitelist contain things are in that branches mozconfigs and allowed to be missing from nightly builds.
     1.6 +whitelist = {
     1.7 +    'release': {},
     1.8 +    'nightly': {},
     1.9 +    }
    1.10 +
    1.11 +all_platforms = ['win64', 'win32', 'linux32', 'linux64', 'macosx-universal']
    1.12 +
    1.13 +for platform in all_platforms:
    1.14 +    whitelist['nightly'][platform] = [
    1.15 +        'ac_add_options --enable-update-channel=nightly',
    1.16 +        'ac_add_options --enable-profiling',
    1.17 +        '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"'
    1.18 +    ]
    1.19 +
    1.20 +for platform in ['linux32', 'linux64', 'macosx-universal']:
    1.21 +    whitelist['nightly'][platform] += [
    1.22 +        'mk_add_options MOZ_MAKE_FLAGS="-j4"',
    1.23 +    ]
    1.24 +
    1.25 +for platform in ['linux32', 'linux64', 'macosx-universal', 'win32', 'win64']:
    1.26 +    whitelist['nightly'][platform] += ['ac_add_options --enable-signmar']
    1.27 +    whitelist['nightly'][platform] += ['ac_add_options --enable-js-diagnostics']
    1.28 +
    1.29 +whitelist['nightly']['linux32'] += [
    1.30 +    'CXX=$REAL_CXX',
    1.31 +    'CXX="ccache $REAL_CXX"',
    1.32 +    'CC="ccache $REAL_CC"',
    1.33 +    'mk_add_options PROFILE_GEN_SCRIPT=@TOPSRCDIR@/build/profile_pageloader.pl',
    1.34 +    'ac_add_options --with-ccache=/usr/bin/ccache',
    1.35 +    '. "$topsrcdir/build/mozconfig.cache"',
    1.36 +    'export MOZILLA_OFFICIAL=1',
    1.37 +    'export MOZ_TELEMETRY_REPORTING=1',
    1.38 +    "mk_add_options PROFILE_GEN_SCRIPT='$(PYTHON) @MOZ_OBJDIR@/_profile/pgo/profileserver.py 10'",
    1.39 +    'STRIP_FLAGS="--strip-debug"',
    1.40 +    'ac_add_options --disable-elf-hack # --enable-elf-hack conflicts with --enable-profiling',
    1.41 +]
    1.42 +
    1.43 +whitelist['nightly']['linux64'] += [
    1.44 +    'export MOZILLA_OFFICIAL=1',
    1.45 +    'export MOZ_TELEMETRY_REPORTING=1',
    1.46 +    "mk_add_options PROFILE_GEN_SCRIPT='$(PYTHON) @MOZ_OBJDIR@/_profile/pgo/profileserver.py 10'",
    1.47 +    'STRIP_FLAGS="--strip-debug"',
    1.48 +    'ac_add_options --with-ccache=/usr/bin/ccache',
    1.49 +    '. "$topsrcdir/build/mozconfig.cache"',
    1.50 +    'ac_add_options --disable-elf-hack # --enable-elf-hack conflicts with --enable-profiling',
    1.51 +]
    1.52 +
    1.53 +whitelist['nightly']['macosx-universal'] += [
    1.54 +    'ac_add_options --with-macbundlename-prefix=Firefox',
    1.55 +    'mk_add_options MOZ_MAKE_FLAGS="-j12"',
    1.56 +    'ac_add_options --with-ccache',
    1.57 +    '. "$topsrcdir/build/mozconfig.cache"',
    1.58 +    'ac_add_options --disable-install-strip',
    1.59 +    'ac_add_options --enable-instruments',
    1.60 +    'ac_add_options --enable-dtrace',
    1.61 +]
    1.62 +
    1.63 +whitelist['nightly']['win32'] += [
    1.64 +    '. $topsrcdir/configs/mozilla2/win32/include/choose-make-flags',
    1.65 +    'mk_add_options MOZ_MAKE_FLAGS=-j1',
    1.66 +    '. "$topsrcdir/build/mozconfig.cache"',
    1.67 +    'if test "$IS_NIGHTLY" != ""; then',
    1.68 +    'ac_add_options --disable-auto-deps',
    1.69 +    'fi',
    1.70 +]
    1.71 +whitelist['nightly']['win64'] += [
    1.72 +    '. "$topsrcdir/browser/config/mozconfigs/win64/common-win64"',
    1.73 +]
    1.74 +
    1.75 +for platform in all_platforms:
    1.76 +    whitelist['release'][platform] = [
    1.77 +        'ac_add_options --enable-update-channel=release',
    1.78 +        'ac_add_options --enable-official-branding',
    1.79 +        'mk_add_options MOZ_MAKE_FLAGS="-j4"',
    1.80 +        'export BUILDING_RELEASE=1',
    1.81 +    ]
    1.82 +whitelist['release']['win32'] += ['mk_add_options MOZ_PGO=1']
    1.83 +whitelist['release']['win64'] += ['mk_add_options MOZ_PGO=1']
    1.84 +
    1.85 +whitelist['release']['linux32'] += [
    1.86 +    'export MOZILLA_OFFICIAL=1',
    1.87 +    'export MOZ_TELEMETRY_REPORTING=1',
    1.88 +    'mk_add_options MOZ_PGO=1',
    1.89 +    "mk_add_options PROFILE_GEN_SCRIPT='$(PYTHON) @MOZ_OBJDIR@/_profile/pgo/profileserver.py 10'",
    1.90 +]
    1.91 +whitelist['release']['linux64'] += [
    1.92 +    'export MOZILLA_OFFICIAL=1',
    1.93 +    'export MOZ_TELEMETRY_REPORTING=1',
    1.94 +    'mk_add_options MOZ_PGO=1',
    1.95 +    "mk_add_options PROFILE_GEN_SCRIPT='$(PYTHON) @MOZ_OBJDIR@/_profile/pgo/profileserver.py 10'",
    1.96 +]
    1.97 +
    1.98 +if __name__ == '__main__':
    1.99 +    import pprint
   1.100 +    pprint.pprint(whitelist)

mercurial