blob: 7abc60f16e48155e4fd7ff275ceef99a6abf625d [file] [log] [blame]
Lei Zhange4bf8342015-10-21 17:11:04 -07001use_relative_paths = True
2
Dan Sinclaira03c3432016-03-16 15:35:20 -04003vars = {
Lei Zhangab384ed2017-12-21 08:00:44 +00004 # By default, we should check out everything needed to run on the main
5 # chromium waterfalls. This var can be also be set to "small", in order
6 # to skip things are not strictly needed to build chromium for development
7 # purposes.
8 'checkout_configuration': 'default',
9
10 # TODO(dpranke): change to != "small" once != is supported.
11 'checkout_instrumented_libraries': 'checkout_linux and checkout_configuration == "default"',
12
Dan Sinclaira03c3432016-03-16 15:35:20 -040013 'chromium_git': 'https://chromium.googlesource.com',
14 'pdfium_git': 'https://pdfium.googlesource.com',
15
Lei Zhang3c855cf2017-12-20 02:43:39 +000016 'android_ndk_revision': 'd57523210239b867fa4fb9d05c2aacc3f1802fe0',
Lei Zhangdfc08432017-12-21 07:37:15 +000017 'binutils_revision': 'e146228c20af6af922887d0be2d3641cbffb33c5',
Lei Zhangab384ed2017-12-21 08:00:44 +000018 'build_revision': '097c79babc9b2ce40b61c3e33da1c6681acf837c',
19 'buildtools_revision': 'b36c7b60ed73919b157c7d23ec5fce2aa69ab05e',
Lei Zhangda25b842017-12-09 07:21:07 +000020 'catapult_revision': 'd624b3ced2c81d4fb4ea98a8dbb4532272cc1e0a',
Vlad Tsyrklevichdc36f992018-01-04 16:39:45 -080021 'clang_revision': 'ac1e5f78c39dc2a262af149404dd36c140eecdc1',
Dan Sinclaira03c3432016-03-16 15:35:20 -040022 'cygwin_revision': 'c89e446b273697fadf3a10ff1007a97c0b7de6df',
Lei Zhangab384ed2017-12-21 08:00:44 +000023 'depot_tools_revision': '2e8d8348b8574f06c26dbf3ef959b5df11ba5148',
Nicolas Pena1228ae22017-12-12 20:54:19 +000024 'freetype_revision': '2c048a8a622e9f44f255aa3316026f124ac9ecbc',
Dan Sinclaira03c3432016-03-16 15:35:20 -040025 'gmock_revision': '29763965ab52f24565299976b936d1265cb6a271',
26 'gtest_revision': '8245545b6dc9c4703e6496d1efd19e975ad2b038',
Lei Zhangba5c9312017-12-09 07:21:46 +000027 'icu_revision': 'e3b480d3be4446ea17011c0cdc9c4cd380a5c58f',
Lei Zhangab384ed2017-12-21 08:00:44 +000028 'instrumented_lib_revision': '28417458ac4dc79f68915079d0f283f682504cc0',
Dale Curtisc758d9d2017-04-06 14:10:09 -070029 'jinja2_revision': 'd34383206fa42d52faa10bb9931d6d538f3a57e0',
Lei Zhang0e5d8922017-04-06 21:43:50 -070030 'jpeg_turbo_revision': '7260e4d8b8e1e40b17f03fafdf1cd83296900f76',
Dale Curtisc758d9d2017-04-06 14:10:09 -070031 'markupsafe_revision': '8f45f5cfa0009d2a70589bcda0349b8cb2b72783',
Nicolas Pena3636a852017-11-23 20:25:13 +000032 'pdfium_tests_revision': '3d6228da656a3974d72223a702e6804df494703e',
Lei Zhang4b004932017-12-12 18:50:39 +000033 'skia_revision': '40ca2087ef0752d78fd2e0995471102fe96fe9fe',
dsinclairfb969002016-05-31 12:55:32 -070034 'tools_memory_revision': '427f10475e1a8d72424c29d00bf689122b738e5d',
Lei Zhangda25b842017-12-09 07:21:07 +000035 'trace_event_revision': '0e9a47d74970bee1bbfc063c47215406f8918699',
Lei Zhang601ecc42018-01-08 15:26:50 -080036 'v8_revision': '0c287882ea233f299a91f6b72b56d8faaecf52c0',
Lei Zhange20e80a2017-08-17 12:23:40 -070037 'yasm_source_revision': 'b98114e18d8b9b84586b10d24353ab8616d4c5fc',
Lei Zhang5e99d622017-12-12 01:38:39 +000038 'zlib_revision': '91155b5d0737713fc7f0499cf0ba2c4f2af24014',
Dan Sinclaira03c3432016-03-16 15:35:20 -040039}
40
Aneesh Mulye2ee9c3a2014-08-06 18:11:02 -070041deps = {
thestig5fec5972016-08-30 06:39:40 -070042 "base/trace_event/common":
43 Var('chromium_git') + "/chromium/src/base/trace_event/common.git@" +
44 Var('trace_event_revision'),
45
dsinclair685bb882016-04-20 07:32:39 -070046 "build":
47 Var('chromium_git') + "/chromium/src/build.git@" + Var('build_revision'),
Aneesh Mulye2ee9c3a2014-08-06 18:11:02 -070048
Tom Sepez4c0e2752015-06-05 13:46:08 -070049 "buildtools":
Lei Zhangeb39cdb2017-03-31 12:26:15 -070050 Var('chromium_git') + "/chromium/buildtools.git@" +
51 Var('buildtools_revision'),
Tom Sepez4c0e2752015-06-05 13:46:08 -070052
Tom Sepez9519ab22015-03-16 15:27:19 -070053 "testing/corpus":
Dan Sinclaira03c3432016-03-16 15:35:20 -040054 Var('pdfium_git') + "/pdfium_tests@" + Var('pdfium_tests_revision'),
Tom Sepez9519ab22015-03-16 15:27:19 -070055
Tom Sepeza310e002015-02-27 13:03:07 -080056 "testing/gmock":
Dan Sinclaira03c3432016-03-16 15:35:20 -040057 Var('chromium_git') + "/external/googlemock.git@" + Var('gmock_revision'),
Tom Sepeza310e002015-02-27 13:03:07 -080058
Tom Sepez22ee2482015-01-07 10:04:16 -080059 "testing/gtest":
Dan Sinclaira03c3432016-03-16 15:35:20 -040060 Var('chromium_git') + "/external/googletest.git@" + Var('gtest_revision'),
61
Lei Zhangdfc08432017-12-21 07:37:15 +000062 "third_party/binutils":
63 Var('chromium_git') + "/chromium/src/third_party/binutils.git@" +
64 Var('binutils_revision'),
65
Lei Zhangab384ed2017-12-21 08:00:44 +000066 'third_party/depot_tools':
67 Var('chromium_git') + '/chromium/tools/depot_tools.git' + '@' +
68 Var('depot_tools_revision'),
69
Lei Zhangeb39cdb2017-03-31 12:26:15 -070070 "third_party/freetype/src":
71 Var('chromium_git') + '/chromium/src/third_party/freetype2.git@' +
72 Var('freetype_revision'),
73
dsinclair685bb882016-04-20 07:32:39 -070074 "third_party/icu":
75 Var('chromium_git') + "/chromium/deps/icu.git@" + Var('icu_revision'),
76
weili62f36732016-10-14 16:59:40 -070077 "third_party/instrumented_libraries":
Lei Zhangeb39cdb2017-03-31 12:26:15 -070078 Var('chromium_git') +
79 "/chromium/src/third_party/instrumented_libraries.git@" +
80 Var('instrumented_lib_revision'),
weili62f36732016-10-14 16:59:40 -070081
Dale Curtisc758d9d2017-04-06 14:10:09 -070082 "third_party/jinja2":
83 Var('chromium_git') + "/chromium/src/third_party/jinja2.git@" +
84 Var('jinja2_revision'),
85
86 "third_party/markupsafe":
87 Var('chromium_git') + "/chromium/src/third_party/markupsafe.git@" +
88 Var('markupsafe_revision'),
89
Lei Zhang0e5d8922017-04-06 21:43:50 -070090 "third_party/libjpeg_turbo":
91 Var('chromium_git') + "/chromium/deps/libjpeg_turbo.git@" +
92 Var('jpeg_turbo_revision'),
93
Dan Sinclaira03c3432016-03-16 15:35:20 -040094 "third_party/skia":
Lei Zhangeb39cdb2017-03-31 12:26:15 -070095 Var('chromium_git') + '/skia.git@' + Var('skia_revision'),
Tom Sepez22ee2482015-01-07 10:04:16 -080096
Lei Zhanga2af7de2017-03-31 13:33:12 -070097 "third_party/zlib":
98 Var('chromium_git') + "/chromium/src/third_party/zlib.git@" +
99 Var('zlib_revision'),
100
Lei Zhang0e5d8922017-04-06 21:43:50 -0700101 'third_party/yasm/source/patched-yasm':
102 Var('chromium_git') + '/chromium/deps/yasm/patched-yasm.git@' +
103 Var('yasm_source_revision'),
104
Oliver Changafaa98e2015-10-21 15:29:47 -0700105 "tools/clang":
weilib34d72b2016-04-18 12:24:36 -0700106 Var('chromium_git') + "/chromium/src/tools/clang@" + Var('clang_revision'),
Oliver Changafaa98e2015-10-21 15:29:47 -0700107
Tom Anderson19817af2017-07-18 18:00:18 -0700108 # TODO(GYP): Remove this when no tools rely on GYP anymore.
109 "tools/gyp":
110 Var('chromium_git') + '/external/gyp.git@' +
111 'eb296f67da078ec01f5e3a9ea9cdc6d26d680161',
112
dsinclairfb969002016-05-31 12:55:32 -0700113 "tools/memory":
114 Var('chromium_git') + "/chromium/src/tools/memory@" +
115 Var('tools_memory_revision'),
116
John Abd-El-Malekfe453722014-10-16 15:32:26 -0700117 "v8":
Dan Sinclaira03c3432016-03-16 15:35:20 -0400118 Var('chromium_git') + "/v8/v8.git@" + Var('v8_revision'),
Aneesh Mulye2ee9c3a2014-08-06 18:11:02 -0700119}
120
121deps_os = {
jbudorick7f3a15f2016-06-10 06:28:40 -0700122 "android": {
123 "third_party/android_ndk":
124 Var('chromium_git') + "/android_ndk.git@" + Var('android_ndk_revision'),
125 "third_party/catapult":
Lei Zhangeb39cdb2017-03-31 12:26:15 -0700126 Var('chromium_git') +
127 "/external/github.com/catapult-project/catapult.git@" +
128 Var('catapult_revision'),
jbudorick7f3a15f2016-06-10 06:28:40 -0700129 },
Aneesh Mulye2ee9c3a2014-08-06 18:11:02 -0700130 "win": {
John Abd-El-Malekfe453722014-10-16 15:32:26 -0700131 "v8/third_party/cygwin":
Dan Sinclaira03c3432016-03-16 15:35:20 -0400132 Var('chromium_git') + "/chromium/deps/cygwin@" + Var('cygwin_revision'),
Aneesh Mulye2ee9c3a2014-08-06 18:11:02 -0700133 },
134}
Tom Sepez4c0e2752015-06-05 13:46:08 -0700135
thestig3873f302016-09-28 17:39:26 -0700136recursedeps = [
137 # buildtools provides clang_format, libc++, and libc++abi
138 'buildtools',
139]
140
Tom Sepez4c0e2752015-06-05 13:46:08 -0700141include_rules = [
Lei Zhang8fec3e42015-11-04 15:32:02 -0800142 # Basic stuff that everyone can use.
143 # Note: public is not here because core cannot depend on public.
Tom Sepez0c1bd7c2015-06-17 15:56:43 -0700144 '+testing',
145 '+third_party/base',
Tom Sepez4c0e2752015-06-05 13:46:08 -0700146]
Tom Sepez0c1bd7c2015-06-17 15:56:43 -0700147
weili90c964f2016-04-22 15:25:14 -0700148specific_include_rules = {
149 # Allow embedder tests to use public APIs.
150 "(.*embeddertest\.cpp)": [
151 "+public",
152 ]
153}
154
Tom Sepez0c1bd7c2015-06-17 15:56:43 -0700155hooks = [
dsinclair685bb882016-04-20 07:32:39 -0700156 {
dsinclairb4e87082016-04-20 12:18:16 -0700157 'name': 'gn_win',
dsinclair685bb882016-04-20 07:32:39 -0700158 'action': [ 'download_from_google_storage',
159 '--no_resume',
160 '--platform=win32',
161 '--no_auth',
162 '--bucket', 'chromium-gn',
163 '-s', 'pdfium/buildtools/win/gn.exe.sha1',
164 ],
165 },
166 {
167 'name': 'gn_mac',
168 'pattern': '.',
169 'action': [ 'download_from_google_storage',
170 '--no_resume',
171 '--platform=darwin',
172 '--no_auth',
173 '--bucket', 'chromium-gn',
174 '-s', 'pdfium/buildtools/mac/gn.sha1',
175 ],
176 },
177 {
178 'name': 'gn_linux64',
179 'pattern': '.',
180 'action': [ 'download_from_google_storage',
181 '--no_resume',
182 '--platform=linux*',
183 '--no_auth',
184 '--bucket', 'chromium-gn',
185 '-s', 'pdfium/buildtools/linux64/gn.sha1',
186 ],
187 },
Tom Sepeze9446f82015-08-13 15:51:43 -0700188 # Pull clang-format binaries using checked-in hashes.
189 {
190 'name': 'clang_format_win',
191 'pattern': '.',
192 'action': [ 'download_from_google_storage',
193 '--no_resume',
194 '--platform=win32',
195 '--no_auth',
196 '--bucket', 'chromium-clang-format',
Oliver Chang5a21e142015-10-21 15:19:20 -0700197 '-s', 'pdfium/buildtools/win/clang-format.exe.sha1',
Tom Sepeze9446f82015-08-13 15:51:43 -0700198 ],
199 },
200 {
201 'name': 'clang_format_mac',
202 'pattern': '.',
203 'action': [ 'download_from_google_storage',
204 '--no_resume',
205 '--platform=darwin',
206 '--no_auth',
207 '--bucket', 'chromium-clang-format',
Oliver Chang5a21e142015-10-21 15:19:20 -0700208 '-s', 'pdfium/buildtools/mac/clang-format.sha1',
Tom Sepeze9446f82015-08-13 15:51:43 -0700209 ],
210 },
211 {
212 'name': 'clang_format_linux',
213 'pattern': '.',
214 'action': [ 'download_from_google_storage',
215 '--no_resume',
216 '--platform=linux*',
217 '--no_auth',
218 '--bucket', 'chromium-clang-format',
Oliver Chang5a21e142015-10-21 15:19:20 -0700219 '-s', 'pdfium/buildtools/linux64/clang-format.sha1',
Tom Sepeze9446f82015-08-13 15:51:43 -0700220 ],
221 },
Oliver Changafaa98e2015-10-21 15:29:47 -0700222 {
dsinclairb12fbdde2016-09-19 10:45:14 -0700223 # Pull clang
Oliver Changafaa98e2015-10-21 15:29:47 -0700224 'name': 'clang',
225 'pattern': '.',
dsinclair685bb882016-04-20 07:32:39 -0700226 'action': ['python',
dsinclairb12fbdde2016-09-19 10:45:14 -0700227 'pdfium/tools/clang/scripts/update.py'
dsinclair685bb882016-04-20 07:32:39 -0700228 ],
Oliver Changafaa98e2015-10-21 15:29:47 -0700229 },
weili9a1b6652016-04-28 15:26:45 -0700230 {
Lei Zhangdfc08432017-12-21 07:37:15 +0000231 'name': 'binutils',
232 'pattern': 'src/third_party/binutils',
233 'condition': 'host_os == "linux"',
234 'action': [
235 'python',
236 'pdfium/third_party/binutils/download.py',
237 ],
238 },
239 {
Tom Anderson19817af2017-07-18 18:00:18 -0700240 # Downloads the current stable linux sysroot to build/linux/ if needed.
241 # This sysroot updates at about the same rate that the chrome build deps
242 # change.
243 'name': 'sysroot',
244 'pattern': '.',
245 'action': ['python', 'pdfium/build/linux/sysroot_scripts/install-sysroot.py',
246 '--running-as-hook'],
247 },
248 {
weili9a1b6652016-04-28 15:26:45 -0700249 # Update the Windows toolchain if necessary.
250 'name': 'win_toolchain',
251 'pattern': '.',
Lei Zhang63579f92017-12-21 19:18:00 -0800252 'condition': 'checkout_win',
253 'action': ['vpython', 'pdfium/build/vs_toolchain.py', 'update', '--force'],
weili9a1b6652016-04-28 15:26:45 -0700254 },
weili62f36732016-10-14 16:59:40 -0700255 {
weili9053f192016-11-18 14:03:49 -0800256 # Update the Mac toolchain if necessary.
257 'name': 'mac_toolchain',
258 'pattern': '.',
259 'action': ['python', 'pdfium/build/mac_toolchain.py'],
260 },
Tom Anderson4e8edf52017-03-30 18:27:21 -0700261 {
Lei Zhangab384ed2017-12-21 08:00:44 +0000262 'name': 'msan_chained_origins',
263 'pattern': '.',
264 'condition': 'checkout_instrumented_libraries',
265 'action': [ 'python',
266 'pdfium/third_party/depot_tools/download_from_google_storage.py',
267 "--no_resume",
268 "--no_auth",
269 "--bucket", "chromium-instrumented-libraries",
270 "-s", "pdfium/third_party/instrumented_libraries/binaries/msan-chained-origins-trusty.tgz.sha1",
271 ],
272 },
273 {
274 'name': 'msan_no_origins',
275 'pattern': '.',
276 'condition': 'checkout_instrumented_libraries',
277 'action': [ 'python',
278 'pdfium/third_party/depot_tools/download_from_google_storage.py',
279 "--no_resume",
280 "--no_auth",
281 "--bucket", "chromium-instrumented-libraries",
282 "-s", "pdfium/third_party/instrumented_libraries/binaries/msan-no-origins-trusty.tgz.sha1",
283 ],
Tom Anderson4e8edf52017-03-30 18:27:21 -0700284 },
Tom Sepeze9446f82015-08-13 15:51:43 -0700285]