blob: 32e59c33a4517b5113cbad441341a2719256ecbb [file] [log] [blame]
Lei Zhange4bf8342015-10-21 17:11:04 -07001use_relative_paths = True
2
Dan Sinclaira03c3432016-03-16 15:35:20 -04003vars = {
4 'chromium_git': 'https://chromium.googlesource.com',
5 'pdfium_git': 'https://pdfium.googlesource.com',
6
thestig50feafc2016-11-09 23:45:50 -08007 'android_ndk_revision': '26d93ec07f3ce2ec2cdfeae1b21ee6f12ff868d8',
Lei Zhangb52b1b42017-09-19 00:26:37 -07008 'build_revision': 'fc826e6c8785c5bf8eefdd9cdf147adba3f97ff9',
Lei Zhang19319b72017-08-17 01:31:18 -07009 'buildtools_revision': 'f90f6a5af3e8cf843395bfe6243cf606f71b5344',
Lei Zhangcf7df1b2017-09-06 17:41:03 -070010 'catapult_revision': '0cf3924bab2c2f66a412edda35f6e3572bd57623',
Tom Sepez95a9c9a2017-09-13 16:52:29 -070011 'clang_revision': '4db585405687222660050d58eb12784fe0852884',
Dan Sinclaira03c3432016-03-16 15:35:20 -040012 'cygwin_revision': 'c89e446b273697fadf3a10ff1007a97c0b7de6df',
Henrique Nakashima46744412017-10-24 15:18:51 -040013 'freetype_revision': '91015cb41d8f56777f93394f5a60914bc0c0f330',
Dan Sinclaira03c3432016-03-16 15:35:20 -040014 'gmock_revision': '29763965ab52f24565299976b936d1265cb6a271',
15 'gtest_revision': '8245545b6dc9c4703e6496d1efd19e975ad2b038',
Lei Zhangaec423b2017-08-17 10:30:43 -070016 'icu_revision': '08cb956852a5ccdba7f9c941728bb833529ba3c6',
Lei Zhanga0b16ec2017-08-17 10:36:43 -070017 'instrumented_lib_revision': '644afd349826cb68204226a16c38bde13abe9c3c',
Dale Curtisc758d9d2017-04-06 14:10:09 -070018 'jinja2_revision': 'd34383206fa42d52faa10bb9931d6d538f3a57e0',
Lei Zhang0e5d8922017-04-06 21:43:50 -070019 'jpeg_turbo_revision': '7260e4d8b8e1e40b17f03fafdf1cd83296900f76',
Dale Curtisc758d9d2017-04-06 14:10:09 -070020 'markupsafe_revision': '8f45f5cfa0009d2a70589bcda0349b8cb2b72783',
Henrique Nakashima53d443f2017-10-26 11:12:09 -040021 'pdfium_tests_revision': '3fcb05df32dd74f46b1ce68c957c0452bce404c0',
Lei Zhangb5df8a52017-08-17 10:40:43 -070022 'skia_revision': 'e0e20755f6c09b71038ced2bf4a00b4c4593f504',
dsinclairfb969002016-05-31 12:55:32 -070023 'tools_memory_revision': '427f10475e1a8d72424c29d00bf689122b738e5d',
thestig08959c62016-11-10 13:19:23 -080024 'trace_event_revision': '06294c8a4a6f744ef284cd63cfe54dbf61eea290',
Lei Zhang00ff0b32017-08-17 01:39:52 -070025 'v8_revision': '4931eb42e8a934941dc60d8f7dc510c08d7bc2c6',
Lei Zhange20e80a2017-08-17 12:23:40 -070026 'yasm_source_revision': 'b98114e18d8b9b84586b10d24353ab8616d4c5fc',
Nicolas Penab1a794a2017-08-11 16:14:28 -040027 'zlib_revision': '718f686437b89038ac83525f4f1b1888aadd9bfc',
Dan Sinclaira03c3432016-03-16 15:35:20 -040028}
29
Aneesh Mulye2ee9c3a2014-08-06 18:11:02 -070030deps = {
thestig5fec5972016-08-30 06:39:40 -070031 "base/trace_event/common":
32 Var('chromium_git') + "/chromium/src/base/trace_event/common.git@" +
33 Var('trace_event_revision'),
34
dsinclair685bb882016-04-20 07:32:39 -070035 "build":
36 Var('chromium_git') + "/chromium/src/build.git@" + Var('build_revision'),
Aneesh Mulye2ee9c3a2014-08-06 18:11:02 -070037
Tom Sepez4c0e2752015-06-05 13:46:08 -070038 "buildtools":
Lei Zhangeb39cdb2017-03-31 12:26:15 -070039 Var('chromium_git') + "/chromium/buildtools.git@" +
40 Var('buildtools_revision'),
Tom Sepez4c0e2752015-06-05 13:46:08 -070041
Tom Sepez9519ab22015-03-16 15:27:19 -070042 "testing/corpus":
Dan Sinclaira03c3432016-03-16 15:35:20 -040043 Var('pdfium_git') + "/pdfium_tests@" + Var('pdfium_tests_revision'),
Tom Sepez9519ab22015-03-16 15:27:19 -070044
Tom Sepeza310e002015-02-27 13:03:07 -080045 "testing/gmock":
Dan Sinclaira03c3432016-03-16 15:35:20 -040046 Var('chromium_git') + "/external/googlemock.git@" + Var('gmock_revision'),
Tom Sepeza310e002015-02-27 13:03:07 -080047
Tom Sepez22ee2482015-01-07 10:04:16 -080048 "testing/gtest":
Dan Sinclaira03c3432016-03-16 15:35:20 -040049 Var('chromium_git') + "/external/googletest.git@" + Var('gtest_revision'),
50
Lei Zhangeb39cdb2017-03-31 12:26:15 -070051 "third_party/freetype/src":
52 Var('chromium_git') + '/chromium/src/third_party/freetype2.git@' +
53 Var('freetype_revision'),
54
dsinclair685bb882016-04-20 07:32:39 -070055 "third_party/icu":
56 Var('chromium_git') + "/chromium/deps/icu.git@" + Var('icu_revision'),
57
weili62f36732016-10-14 16:59:40 -070058 "third_party/instrumented_libraries":
Lei Zhangeb39cdb2017-03-31 12:26:15 -070059 Var('chromium_git') +
60 "/chromium/src/third_party/instrumented_libraries.git@" +
61 Var('instrumented_lib_revision'),
weili62f36732016-10-14 16:59:40 -070062
Dale Curtisc758d9d2017-04-06 14:10:09 -070063 "third_party/jinja2":
64 Var('chromium_git') + "/chromium/src/third_party/jinja2.git@" +
65 Var('jinja2_revision'),
66
67 "third_party/markupsafe":
68 Var('chromium_git') + "/chromium/src/third_party/markupsafe.git@" +
69 Var('markupsafe_revision'),
70
Lei Zhang0e5d8922017-04-06 21:43:50 -070071 "third_party/libjpeg_turbo":
72 Var('chromium_git') + "/chromium/deps/libjpeg_turbo.git@" +
73 Var('jpeg_turbo_revision'),
74
Dan Sinclaira03c3432016-03-16 15:35:20 -040075 "third_party/skia":
Lei Zhangeb39cdb2017-03-31 12:26:15 -070076 Var('chromium_git') + '/skia.git@' + Var('skia_revision'),
Tom Sepez22ee2482015-01-07 10:04:16 -080077
Lei Zhanga2af7de2017-03-31 13:33:12 -070078 "third_party/zlib":
79 Var('chromium_git') + "/chromium/src/third_party/zlib.git@" +
80 Var('zlib_revision'),
81
Lei Zhang0e5d8922017-04-06 21:43:50 -070082 'third_party/yasm/source/patched-yasm':
83 Var('chromium_git') + '/chromium/deps/yasm/patched-yasm.git@' +
84 Var('yasm_source_revision'),
85
Oliver Changafaa98e2015-10-21 15:29:47 -070086 "tools/clang":
weilib34d72b2016-04-18 12:24:36 -070087 Var('chromium_git') + "/chromium/src/tools/clang@" + Var('clang_revision'),
Oliver Changafaa98e2015-10-21 15:29:47 -070088
Tom Anderson19817af2017-07-18 18:00:18 -070089 # TODO(GYP): Remove this when no tools rely on GYP anymore.
90 "tools/gyp":
91 Var('chromium_git') + '/external/gyp.git@' +
92 'eb296f67da078ec01f5e3a9ea9cdc6d26d680161',
93
dsinclairfb969002016-05-31 12:55:32 -070094 "tools/memory":
95 Var('chromium_git') + "/chromium/src/tools/memory@" +
96 Var('tools_memory_revision'),
97
John Abd-El-Malekfe453722014-10-16 15:32:26 -070098 "v8":
Dan Sinclaira03c3432016-03-16 15:35:20 -040099 Var('chromium_git') + "/v8/v8.git@" + Var('v8_revision'),
Aneesh Mulye2ee9c3a2014-08-06 18:11:02 -0700100}
101
102deps_os = {
jbudorick7f3a15f2016-06-10 06:28:40 -0700103 "android": {
104 "third_party/android_ndk":
105 Var('chromium_git') + "/android_ndk.git@" + Var('android_ndk_revision'),
106 "third_party/catapult":
Lei Zhangeb39cdb2017-03-31 12:26:15 -0700107 Var('chromium_git') +
108 "/external/github.com/catapult-project/catapult.git@" +
109 Var('catapult_revision'),
jbudorick7f3a15f2016-06-10 06:28:40 -0700110 },
Aneesh Mulye2ee9c3a2014-08-06 18:11:02 -0700111 "win": {
John Abd-El-Malekfe453722014-10-16 15:32:26 -0700112 "v8/third_party/cygwin":
Dan Sinclaira03c3432016-03-16 15:35:20 -0400113 Var('chromium_git') + "/chromium/deps/cygwin@" + Var('cygwin_revision'),
Aneesh Mulye2ee9c3a2014-08-06 18:11:02 -0700114 },
115}
Tom Sepez4c0e2752015-06-05 13:46:08 -0700116
thestig3873f302016-09-28 17:39:26 -0700117recursedeps = [
118 # buildtools provides clang_format, libc++, and libc++abi
119 'buildtools',
120]
121
Tom Sepez4c0e2752015-06-05 13:46:08 -0700122include_rules = [
Lei Zhang8fec3e42015-11-04 15:32:02 -0800123 # Basic stuff that everyone can use.
124 # Note: public is not here because core cannot depend on public.
Tom Sepez0c1bd7c2015-06-17 15:56:43 -0700125 '+testing',
126 '+third_party/base',
Tom Sepez4c0e2752015-06-05 13:46:08 -0700127]
Tom Sepez0c1bd7c2015-06-17 15:56:43 -0700128
weili90c964f2016-04-22 15:25:14 -0700129specific_include_rules = {
130 # Allow embedder tests to use public APIs.
131 "(.*embeddertest\.cpp)": [
132 "+public",
133 ]
134}
135
Tom Sepez0c1bd7c2015-06-17 15:56:43 -0700136hooks = [
dsinclair685bb882016-04-20 07:32:39 -0700137 {
dsinclairb4e87082016-04-20 12:18:16 -0700138 'name': 'gn_win',
dsinclair685bb882016-04-20 07:32:39 -0700139 'action': [ 'download_from_google_storage',
140 '--no_resume',
141 '--platform=win32',
142 '--no_auth',
143 '--bucket', 'chromium-gn',
144 '-s', 'pdfium/buildtools/win/gn.exe.sha1',
145 ],
146 },
147 {
148 'name': 'gn_mac',
149 'pattern': '.',
150 'action': [ 'download_from_google_storage',
151 '--no_resume',
152 '--platform=darwin',
153 '--no_auth',
154 '--bucket', 'chromium-gn',
155 '-s', 'pdfium/buildtools/mac/gn.sha1',
156 ],
157 },
158 {
159 'name': 'gn_linux64',
160 'pattern': '.',
161 'action': [ 'download_from_google_storage',
162 '--no_resume',
163 '--platform=linux*',
164 '--no_auth',
165 '--bucket', 'chromium-gn',
166 '-s', 'pdfium/buildtools/linux64/gn.sha1',
167 ],
168 },
Tom Sepeze9446f82015-08-13 15:51:43 -0700169 # Pull clang-format binaries using checked-in hashes.
170 {
171 'name': 'clang_format_win',
172 'pattern': '.',
173 'action': [ 'download_from_google_storage',
174 '--no_resume',
175 '--platform=win32',
176 '--no_auth',
177 '--bucket', 'chromium-clang-format',
Oliver Chang5a21e142015-10-21 15:19:20 -0700178 '-s', 'pdfium/buildtools/win/clang-format.exe.sha1',
Tom Sepeze9446f82015-08-13 15:51:43 -0700179 ],
180 },
181 {
182 'name': 'clang_format_mac',
183 'pattern': '.',
184 'action': [ 'download_from_google_storage',
185 '--no_resume',
186 '--platform=darwin',
187 '--no_auth',
188 '--bucket', 'chromium-clang-format',
Oliver Chang5a21e142015-10-21 15:19:20 -0700189 '-s', 'pdfium/buildtools/mac/clang-format.sha1',
Tom Sepeze9446f82015-08-13 15:51:43 -0700190 ],
191 },
192 {
193 'name': 'clang_format_linux',
194 'pattern': '.',
195 'action': [ 'download_from_google_storage',
196 '--no_resume',
197 '--platform=linux*',
198 '--no_auth',
199 '--bucket', 'chromium-clang-format',
Oliver Chang5a21e142015-10-21 15:19:20 -0700200 '-s', 'pdfium/buildtools/linux64/clang-format.sha1',
Tom Sepeze9446f82015-08-13 15:51:43 -0700201 ],
202 },
Oliver Changafaa98e2015-10-21 15:29:47 -0700203 {
dsinclairb12fbdde2016-09-19 10:45:14 -0700204 # Pull clang
Oliver Changafaa98e2015-10-21 15:29:47 -0700205 'name': 'clang',
206 'pattern': '.',
dsinclair685bb882016-04-20 07:32:39 -0700207 'action': ['python',
dsinclairb12fbdde2016-09-19 10:45:14 -0700208 'pdfium/tools/clang/scripts/update.py'
dsinclair685bb882016-04-20 07:32:39 -0700209 ],
Oliver Changafaa98e2015-10-21 15:29:47 -0700210 },
weili9a1b6652016-04-28 15:26:45 -0700211 {
Tom Anderson19817af2017-07-18 18:00:18 -0700212 # Downloads the current stable linux sysroot to build/linux/ if needed.
213 # This sysroot updates at about the same rate that the chrome build deps
214 # change.
215 'name': 'sysroot',
216 'pattern': '.',
217 'action': ['python', 'pdfium/build/linux/sysroot_scripts/install-sysroot.py',
218 '--running-as-hook'],
219 },
220 {
weili9a1b6652016-04-28 15:26:45 -0700221 # Update the Windows toolchain if necessary.
222 'name': 'win_toolchain',
223 'pattern': '.',
weili5593bb82016-04-29 20:14:55 -0700224 'action': ['python', 'pdfium/build/vs_toolchain.py', 'update'],
weili9a1b6652016-04-28 15:26:45 -0700225 },
weili62f36732016-10-14 16:59:40 -0700226 {
weili9053f192016-11-18 14:03:49 -0800227 # Update the Mac toolchain if necessary.
228 'name': 'mac_toolchain',
229 'pattern': '.',
230 'action': ['python', 'pdfium/build/mac_toolchain.py'],
231 },
Tom Anderson4e8edf52017-03-30 18:27:21 -0700232 {
233 # Pull sanitizer-instrumented third-party libraries if requested via
234 # GYP_DEFINES.
235 'name': 'instrumented_libraries',
236 'pattern': '\\.sha1',
237 'action': ['python', 'pdfium/third_party/instrumented_libraries/scripts/download_binaries.py'],
238 },
weili62f36732016-10-14 16:59:40 -0700239
Tom Sepeze9446f82015-08-13 15:51:43 -0700240]