-
Notifications
You must be signed in to change notification settings - Fork 54
/
mozconfig_whitelist
191 lines (173 loc) · 8.34 KB
/
mozconfig_whitelist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
# '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 = {
'mozilla-release': {},
'mozilla-beta': {},
'comm-beta': {},
'comm-esr52': {},
'nightly': {},
}
all_desktop_platforms = ['win32', 'linux', 'linux64', 'macosx64', 'win64']
all_mobile_platforms = ['android', 'android-api-9', 'android-api-11', 'android-api-15', 'android-x86']
all_platforms = all_desktop_platforms + all_mobile_platforms
for platform in all_platforms:
whitelist['nightly'][platform] = [
'ac_add_options --enable-update-channel=nightly',
'ac_add_options --enable-profiling',
'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"'
]
for platform in ['linux', 'linux64']:
whitelist['nightly'][platform] += [
'ac_add_options --disable-elf-hack # --enable-elf-hack conflicts with --enable-profiling',
'. "$topsrcdir/build/mozconfig.cache"',
]
for platform in ['linux', 'linux64', 'macosx64']:
whitelist['nightly'][platform] += [
'ac_add_options --enable-codesighs',
'mk_add_options MOZ_MAKE_FLAGS="-j4"',
]
for platform in ['linux', 'linux64', 'macosx64', 'win32', 'win64']:
whitelist['nightly'][platform] += ['ac_add_options --enable-signmar']
whitelist['nightly'][platform] += ['ac_add_options --enable-js-diagnostics']
whitelist['nightly'][platform] += ['ac_add_options --with-branding=browser/branding/nightly']
whitelist['nightly'][platform] += ['. "$commtopsrcdir/build/mozconfig.sccache"']
whitelist['nightly']['linux'] += [
'CXX=$REAL_CXX',
'CXX="ccache $REAL_CXX"',
'CC="ccache $REAL_CC"',
'mk_add_options PROFILE_GEN_SCRIPT=@TOPSRCDIR@/build/profile_pageloader.pl',
'ac_add_options --with-ccache=/usr/bin/ccache',
'export MOZILLA_OFFICIAL=1',
'export MOZ_TELEMETRY_REPORTING=1',
"mk_add_options PROFILE_GEN_SCRIPT='$(PYTHON) @MOZ_OBJDIR@/_profile/pgo/profileserver.py 10'",
'STRIP_FLAGS="--strip-debug"',
]
whitelist['nightly']['linux64'] += [
'export MOZILLA_OFFICIAL=1',
'export MOZ_TELEMETRY_REPORTING=1',
"mk_add_options PROFILE_GEN_SCRIPT='$(PYTHON) @MOZ_OBJDIR@/_profile/pgo/profileserver.py 10'",
'STRIP_FLAGS="--strip-debug"',
'ac_add_options --with-ccache=/usr/bin/ccache',
]
whitelist['nightly']['macosx64'] += [
'if test "${MOZ_UPDATE_CHANNEL}" = "nightly"; then',
'ac_add_options --with-macbundlename-prefix=Firefox',
'fi',
'mk_add_options MOZ_MAKE_FLAGS="-j12"',
'ac_add_options --with-ccache',
'ac_add_options --disable-install-strip',
'ac_add_options --enable-instruments',
'ac_add_options --enable-dtrace',
]
whitelist['nightly']['win32'] += [
'mk_add_options MOZ_MAKE_FLAGS=-j1',
'if test "$IS_NIGHTLY" != ""; then',
'ac_add_options --disable-auto-deps',
'fi',
'ac_add_options --enable-metro',
'. "$topsrcdir/build/mozconfig.cache"',
]
whitelist['nightly']['win64'] += [
'mk_add_options MOZ_MAKE_FLAGS=-j1',
'if test "$IS_NIGHTLY" != ""; then',
'ac_add_options --disable-auto-deps',
'fi',
'ac_add_options --enable-metro',
'. "$topsrcdir/build/mozconfig.cache"',
]
# TODO - remove 'android-api-11' once gecko 46 is on aurora
for p in ('android', 'android-api-9', 'android-api-11', 'android-api-15'):
whitelist['nightly'][p] += [
'ac_add_options --enable-update-channel=${MOZ_UPDATE_CHANNEL}',
'ac_add_options --enable-warnings-as-errors',
'ac_add_options --with-ccache=/usr/bin/ccache',
'ac_add_options --enable-profiling',
'ac_add_options --disable-elf-hack # --enable-elf-hack conflicts with --enable-profiling',
'STRIP_FLAGS="--strip-debug"',
'ac_add_options --with-branding=mobile/android/branding/nightly',
]
# TODO - remove 'android-api-11' once gecko 46 is on aurora
whitelist['nightly']['android-api-11'] += ['MOZ_ANDROID_GECKOLIBS_AAR=1']
whitelist['nightly']['android-api-15'] += ['MOZ_ANDROID_GECKOLIBS_AAR=1']
whitelist['nightly']['android-x86'] += [
'ac_add_options --enable-update-channel=${MOZ_UPDATE_CHANNEL}',
'ac_add_options --enable-warnings-as-errors',
'ac_add_options --with-ccache=/usr/bin/ccache',
'ac_add_options --enable-profiling',
'ac_add_options --disable-elf-hack # --enable-elf-hack conflicts with --enable-profiling',
'STRIP_FLAGS="--strip-debug"',
]
for branch in ('mozilla-beta', 'comm-beta'):
for platform in all_platforms:
whitelist[branch][platform] = [
'ac_add_options --enable-update-channel=beta',
'ac_add_options --enable-official-branding',
'mk_add_options MOZ_MAKE_FLAGS="-j4"',
'if [ -n "$ENABLE_RELEASE_PROMOTION" ]; then',
'MOZ_AUTOMATION_UPLOAD_SYMBOLS=1',
'MOZ_AUTOMATION_UPDATE_PACKAGING=1',
'fi',
]
for platform in all_desktop_platforms:
whitelist[branch][platform] += ['MOZ_AUTOMATION_SDK=${MOZ_AUTOMATION_SDK-1}']
whitelist[branch]['linux'] += [
'export MOZILLA_OFFICIAL=1',
'export MOZ_TELEMETRY_REPORTING=1',
'mk_add_options MOZ_PGO=1',
"mk_add_options PROFILE_GEN_SCRIPT='$(PYTHON) @MOZ_OBJDIR@/_profile/pgo/profileserver.py 10'",
]
whitelist[branch]['linux64'] += [
'export MOZILLA_OFFICIAL=1',
'export MOZ_TELEMETRY_REPORTING=1',
'mk_add_options MOZ_PGO=1',
"mk_add_options PROFILE_GEN_SCRIPT='$(PYTHON) @MOZ_OBJDIR@/_profile/pgo/profileserver.py 10'",
]
whitelist[branch]['win32'] += ['mk_add_options MOZ_PGO=1']
whitelist[branch]['win64'] += ['mk_add_options MOZ_PGO=1']
whitelist[branch]['android'] += ['ac_add_options --enable-updater']
whitelist[branch]['android-api-9'] += ['ac_add_options --enable-updater']
# TODO - remove api-11 once gecko 46 is on beta
whitelist[branch]['android-api-11'] += ['ac_add_options --enable-updater']
whitelist[branch]['android-api-15'] += ['ac_add_options --enable-updater']
whitelist[branch]['android-x86'] += ['ac_add_options --enable-updater']
whitelist[branch]['android-api-9'] += ['ac_add_options --with-branding=mobile/android/branding/beta']
# TODO - remove api-11 once gecko 46 is on beta
whitelist[branch]['android-api-11'] += ['ac_add_options --with-branding=mobile/android/branding/beta']
whitelist[branch]['android-api-15'] += ['ac_add_options --with-branding=mobile/android/branding/beta']
for branch in ('mozilla-release', 'comm-esr52'):
for platform in all_platforms:
whitelist[branch][platform] = [
'ac_add_options --enable-update-channel=release',
'ac_add_options --enable-official-branding',
'mk_add_options MOZ_MAKE_FLAGS="-j4"',
'if [ -n "$ENABLE_RELEASE_PROMOTION" ]; then',
'MOZ_AUTOMATION_UPLOAD_SYMBOLS=1',
'MOZ_AUTOMATION_UPDATE_PACKAGING=1',
'fi',
'export BUILDING_RELEASE=1',
]
for platform in all_desktop_platforms:
whitelist[branch][platform] += ['MOZ_AUTOMATION_SDK=${MOZ_AUTOMATION_SDK-1}']
whitelist[branch]['win32'] += ['mk_add_options MOZ_PGO=1',]
whitelist[branch]['win64'] += ['mk_add_options MOZ_PGO=1',]
whitelist[branch]['linux'] += [
'export MOZILLA_OFFICIAL=1',
'export MOZ_TELEMETRY_REPORTING=1',
'mk_add_options MOZ_PGO=1',
"mk_add_options PROFILE_GEN_SCRIPT='$(PYTHON) @MOZ_OBJDIR@/_profile/pgo/profileserver.py 10'",
]
whitelist[branch]['linux64'] += [
'export MOZILLA_OFFICIAL=1',
'export MOZ_TELEMETRY_REPORTING=1',
'mk_add_options MOZ_PGO=1',
"mk_add_options PROFILE_GEN_SCRIPT='$(PYTHON) @MOZ_OBJDIR@/_profile/pgo/profileserver.py 10'",
]
whitelist[branch]['android'] += ['ac_add_options --enable-updater']
whitelist[branch]['android-api-9'] += ['ac_add_options --enable-updater']
# TODO - remove 'android-api-11' once gecko 46 is on release
whitelist[branch]['android-api-11'] += ['ac_add_options --enable-updater']
whitelist[branch]['android-api-15'] += ['ac_add_options --enable-updater']
whitelist[branch]['android-x86'] += ['ac_add_options --enable-updater']
if __name__ == '__main__':
import pprint
pprint.pprint(whitelist)