browser/config/mozconfigs/whitelist

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 # 'nightly' contains things that are in nightly mozconfigs and allowed to be missing from release builds.
     2 # Other keys in whitelist contain things are in that branches mozconfigs and allowed to be missing from nightly builds.
     3 whitelist = {
     4     'release': {},
     5     'nightly': {},
     6     }
     8 all_platforms = ['win64', 'win32', 'linux32', 'linux64', 'macosx-universal']
    10 for platform in all_platforms:
    11     whitelist['nightly'][platform] = [
    12         'ac_add_options --enable-update-channel=nightly',
    13         'ac_add_options --enable-profiling',
    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"'
    15     ]
    17 for platform in ['linux32', 'linux64', 'macosx-universal']:
    18     whitelist['nightly'][platform] += [
    19         'mk_add_options MOZ_MAKE_FLAGS="-j4"',
    20     ]
    22 for platform in ['linux32', 'linux64', 'macosx-universal', 'win32', 'win64']:
    23     whitelist['nightly'][platform] += ['ac_add_options --enable-signmar']
    24     whitelist['nightly'][platform] += ['ac_add_options --enable-js-diagnostics']
    26 whitelist['nightly']['linux32'] += [
    27     'CXX=$REAL_CXX',
    28     'CXX="ccache $REAL_CXX"',
    29     'CC="ccache $REAL_CC"',
    30     'mk_add_options PROFILE_GEN_SCRIPT=@TOPSRCDIR@/build/profile_pageloader.pl',
    31     'ac_add_options --with-ccache=/usr/bin/ccache',
    32     '. "$topsrcdir/build/mozconfig.cache"',
    33     'export MOZILLA_OFFICIAL=1',
    34     'export MOZ_TELEMETRY_REPORTING=1',
    35     "mk_add_options PROFILE_GEN_SCRIPT='$(PYTHON) @MOZ_OBJDIR@/_profile/pgo/profileserver.py 10'",
    36     'STRIP_FLAGS="--strip-debug"',
    37     'ac_add_options --disable-elf-hack # --enable-elf-hack conflicts with --enable-profiling',
    38 ]
    40 whitelist['nightly']['linux64'] += [
    41     'export MOZILLA_OFFICIAL=1',
    42     'export MOZ_TELEMETRY_REPORTING=1',
    43     "mk_add_options PROFILE_GEN_SCRIPT='$(PYTHON) @MOZ_OBJDIR@/_profile/pgo/profileserver.py 10'",
    44     'STRIP_FLAGS="--strip-debug"',
    45     'ac_add_options --with-ccache=/usr/bin/ccache',
    46     '. "$topsrcdir/build/mozconfig.cache"',
    47     'ac_add_options --disable-elf-hack # --enable-elf-hack conflicts with --enable-profiling',
    48 ]
    50 whitelist['nightly']['macosx-universal'] += [
    51     'ac_add_options --with-macbundlename-prefix=Firefox',
    52     'mk_add_options MOZ_MAKE_FLAGS="-j12"',
    53     'ac_add_options --with-ccache',
    54     '. "$topsrcdir/build/mozconfig.cache"',
    55     'ac_add_options --disable-install-strip',
    56     'ac_add_options --enable-instruments',
    57     'ac_add_options --enable-dtrace',
    58 ]
    60 whitelist['nightly']['win32'] += [
    61     '. $topsrcdir/configs/mozilla2/win32/include/choose-make-flags',
    62     'mk_add_options MOZ_MAKE_FLAGS=-j1',
    63     '. "$topsrcdir/build/mozconfig.cache"',
    64     'if test "$IS_NIGHTLY" != ""; then',
    65     'ac_add_options --disable-auto-deps',
    66     'fi',
    67 ]
    68 whitelist['nightly']['win64'] += [
    69     '. "$topsrcdir/browser/config/mozconfigs/win64/common-win64"',
    70 ]
    72 for platform in all_platforms:
    73     whitelist['release'][platform] = [
    74         'ac_add_options --enable-update-channel=release',
    75         'ac_add_options --enable-official-branding',
    76         'mk_add_options MOZ_MAKE_FLAGS="-j4"',
    77         'export BUILDING_RELEASE=1',
    78     ]
    79 whitelist['release']['win32'] += ['mk_add_options MOZ_PGO=1']
    80 whitelist['release']['win64'] += ['mk_add_options MOZ_PGO=1']
    82 whitelist['release']['linux32'] += [
    83     'export MOZILLA_OFFICIAL=1',
    84     'export MOZ_TELEMETRY_REPORTING=1',
    85     'mk_add_options MOZ_PGO=1',
    86     "mk_add_options PROFILE_GEN_SCRIPT='$(PYTHON) @MOZ_OBJDIR@/_profile/pgo/profileserver.py 10'",
    87 ]
    88 whitelist['release']['linux64'] += [
    89     'export MOZILLA_OFFICIAL=1',
    90     'export MOZ_TELEMETRY_REPORTING=1',
    91     'mk_add_options MOZ_PGO=1',
    92     "mk_add_options PROFILE_GEN_SCRIPT='$(PYTHON) @MOZ_OBJDIR@/_profile/pgo/profileserver.py 10'",
    93 ]
    95 if __name__ == '__main__':
    96     import pprint
    97     pprint.pprint(whitelist)

mercurial