blob: 9729f77e04a129364cc5b0d66ba429d1c69bae62 [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 Zhangba91bed2017-04-15 16:39:27 -07008 'build_revision': 'a9eff4d3d2a7c61a9315ab67780413f20962e541',
Lei Zhang1831ca92017-03-29 22:55:08 -07009 'buildtools_revision': 'e6b510a9daf822bbe9f922c200c58150803d2fd8',
jbudorick2430b302016-11-23 15:43:09 -080010 'catapult_revision': '86352b966b0245d6883e5f7df27687856978b6d7',
Lei Zhang041cbcf2017-04-15 16:08:55 -070011 'clang_revision': 'd5516794ee576ab181f1a2e334f47186f671ad9e',
Dan Sinclaira03c3432016-03-16 15:35:20 -040012 'cygwin_revision': 'c89e446b273697fadf3a10ff1007a97c0b7de6df',
Lei Zhangeb39cdb2017-03-31 12:26:15 -070013 'freetype_revision': '66725768cdf758cfb3f9abf03cbf5e5a77f42088',
dsinclair11988d72016-05-04 10:17:00 -070014 'gen_library_loader_revision': '916d4acd8b2cde67a390737dfba90b3c37de23a1',
Dan Sinclaira03c3432016-03-16 15:35:20 -040015 'gmock_revision': '29763965ab52f24565299976b936d1265cb6a271',
16 'gtest_revision': '8245545b6dc9c4703e6496d1efd19e975ad2b038',
dsinclair94686392016-12-12 08:38:09 -080017 'icu_revision': '73e24736676b4b438270fda44e5b2c83b49fdd80',
Tom Anderson4e8edf52017-03-30 18:27:21 -070018 'instrumented_lib_revision': '45f5814b1543e41ea0be54c771e3840ea52cca4a',
Dale Curtisc758d9d2017-04-06 14:10:09 -070019 'jinja2_revision': 'd34383206fa42d52faa10bb9931d6d538f3a57e0',
Lei Zhang0e5d8922017-04-06 21:43:50 -070020 'jpeg_turbo_revision': '7260e4d8b8e1e40b17f03fafdf1cd83296900f76',
Dale Curtisc758d9d2017-04-06 14:10:09 -070021 'markupsafe_revision': '8f45f5cfa0009d2a70589bcda0349b8cb2b72783',
Wei Licdb7e1f2017-04-08 13:37:27 -070022 'pdfium_tests_revision': '7c6a0e40f9e4f6f69f75adeae974f86f4ee98f96',
Ben Wanger9d5fd1d2017-02-09 11:21:11 -050023 'skia_revision': '90e3cd78991ef337dbd0023efb30ece864694308',
dsinclairfb969002016-05-31 12:55:32 -070024 'tools_memory_revision': '427f10475e1a8d72424c29d00bf689122b738e5d',
thestig08959c62016-11-10 13:19:23 -080025 'trace_event_revision': '06294c8a4a6f744ef284cd63cfe54dbf61eea290',
Dale Curtisc758d9d2017-04-06 14:10:09 -070026 'v8_revision': '07b2253a044bffa43697c6a43aaccb68c7e82af4',
Lei Zhang0e5d8922017-04-06 21:43:50 -070027 'yasm_binary_revision': '52f9b3f4b0aa06da24ef8b123058bb61ee468881',
28 'yasm_source_revision': '7da28c6c7c6a1387217352ce02b31754deb54d2a',
Lei Zhanga2af7de2017-03-31 13:33:12 -070029 'zlib_revision': 'eed2732a73838fd581cb25819ab1c4f478d6b38f',
Dan Sinclaira03c3432016-03-16 15:35:20 -040030}
31
Aneesh Mulye2ee9c3a2014-08-06 18:11:02 -070032deps = {
thestig5fec5972016-08-30 06:39:40 -070033 "base/trace_event/common":
34 Var('chromium_git') + "/chromium/src/base/trace_event/common.git@" +
35 Var('trace_event_revision'),
36
dsinclair685bb882016-04-20 07:32:39 -070037 "build":
38 Var('chromium_git') + "/chromium/src/build.git@" + Var('build_revision'),
Aneesh Mulye2ee9c3a2014-08-06 18:11:02 -070039
Tom Sepez4c0e2752015-06-05 13:46:08 -070040 "buildtools":
Lei Zhangeb39cdb2017-03-31 12:26:15 -070041 Var('chromium_git') + "/chromium/buildtools.git@" +
42 Var('buildtools_revision'),
Tom Sepez4c0e2752015-06-05 13:46:08 -070043
Tom Sepez9519ab22015-03-16 15:27:19 -070044 "testing/corpus":
Dan Sinclaira03c3432016-03-16 15:35:20 -040045 Var('pdfium_git') + "/pdfium_tests@" + Var('pdfium_tests_revision'),
Tom Sepez9519ab22015-03-16 15:27:19 -070046
Tom Sepeza310e002015-02-27 13:03:07 -080047 "testing/gmock":
Dan Sinclaira03c3432016-03-16 15:35:20 -040048 Var('chromium_git') + "/external/googlemock.git@" + Var('gmock_revision'),
Tom Sepeza310e002015-02-27 13:03:07 -080049
Tom Sepez22ee2482015-01-07 10:04:16 -080050 "testing/gtest":
Dan Sinclaira03c3432016-03-16 15:35:20 -040051 Var('chromium_git') + "/external/googletest.git@" + Var('gtest_revision'),
52
Lei Zhangeb39cdb2017-03-31 12:26:15 -070053 "third_party/freetype/src":
54 Var('chromium_git') + '/chromium/src/third_party/freetype2.git@' +
55 Var('freetype_revision'),
56
dsinclair685bb882016-04-20 07:32:39 -070057 "third_party/icu":
58 Var('chromium_git') + "/chromium/deps/icu.git@" + Var('icu_revision'),
59
weili62f36732016-10-14 16:59:40 -070060 "third_party/instrumented_libraries":
Lei Zhangeb39cdb2017-03-31 12:26:15 -070061 Var('chromium_git') +
62 "/chromium/src/third_party/instrumented_libraries.git@" +
63 Var('instrumented_lib_revision'),
weili62f36732016-10-14 16:59:40 -070064
Dale Curtisc758d9d2017-04-06 14:10:09 -070065 "third_party/jinja2":
66 Var('chromium_git') + "/chromium/src/third_party/jinja2.git@" +
67 Var('jinja2_revision'),
68
69 "third_party/markupsafe":
70 Var('chromium_git') + "/chromium/src/third_party/markupsafe.git@" +
71 Var('markupsafe_revision'),
72
Lei Zhang0e5d8922017-04-06 21:43:50 -070073 "third_party/libjpeg_turbo":
74 Var('chromium_git') + "/chromium/deps/libjpeg_turbo.git@" +
75 Var('jpeg_turbo_revision'),
76
Dan Sinclaira03c3432016-03-16 15:35:20 -040077 "third_party/skia":
Lei Zhangeb39cdb2017-03-31 12:26:15 -070078 Var('chromium_git') + '/skia.git@' + Var('skia_revision'),
Tom Sepez22ee2482015-01-07 10:04:16 -080079
Lei Zhanga2af7de2017-03-31 13:33:12 -070080 "third_party/zlib":
81 Var('chromium_git') + "/chromium/src/third_party/zlib.git@" +
82 Var('zlib_revision'),
83
Lei Zhang0e5d8922017-04-06 21:43:50 -070084 'third_party/yasm/source/patched-yasm':
85 Var('chromium_git') + '/chromium/deps/yasm/patched-yasm.git@' +
86 Var('yasm_source_revision'),
87
Oliver Changafaa98e2015-10-21 15:29:47 -070088 "tools/clang":
weilib34d72b2016-04-18 12:24:36 -070089 Var('chromium_git') + "/chromium/src/tools/clang@" + Var('clang_revision'),
Oliver Changafaa98e2015-10-21 15:29:47 -070090
dsinclair11988d72016-05-04 10:17:00 -070091 "tools/generate_library_loader":
92 Var('chromium_git') + "/chromium/src/tools/generate_library_loader@" +
93 Var('gen_library_loader_revision'),
94
dsinclairfb969002016-05-31 12:55:32 -070095 "tools/memory":
96 Var('chromium_git') + "/chromium/src/tools/memory@" +
97 Var('tools_memory_revision'),
98
John Abd-El-Malekfe453722014-10-16 15:32:26 -070099 "v8":
Dan Sinclaira03c3432016-03-16 15:35:20 -0400100 Var('chromium_git') + "/v8/v8.git@" + Var('v8_revision'),
Aneesh Mulye2ee9c3a2014-08-06 18:11:02 -0700101}
102
103deps_os = {
jbudorick7f3a15f2016-06-10 06:28:40 -0700104 "android": {
105 "third_party/android_ndk":
106 Var('chromium_git') + "/android_ndk.git@" + Var('android_ndk_revision'),
107 "third_party/catapult":
Lei Zhangeb39cdb2017-03-31 12:26:15 -0700108 Var('chromium_git') +
109 "/external/github.com/catapult-project/catapult.git@" +
110 Var('catapult_revision'),
jbudorick7f3a15f2016-06-10 06:28:40 -0700111 },
Aneesh Mulye2ee9c3a2014-08-06 18:11:02 -0700112 "win": {
Lei Zhang0e5d8922017-04-06 21:43:50 -0700113 'third_party/yasm/binaries':
114 Var('chromium_git') + '/chromium/deps/yasm/binaries.git' + '@' +
115 Var('yasm_binary_revision'),
116
Lei Zhangce88e772017-03-16 16:34:54 -0700117 # TODO(GYP): Remove this when no tools rely on GYP anymore.
118 "tools/gyp":
Lei Zhangeb39cdb2017-03-31 12:26:15 -0700119 Var('chromium_git') + '/external/gyp.git@' +
120 'c61b0b35c8396bfd59efc6cfc11401d912b0f510',
Lei Zhangce88e772017-03-16 16:34:54 -0700121
John Abd-El-Malekfe453722014-10-16 15:32:26 -0700122 "v8/third_party/cygwin":
Dan Sinclaira03c3432016-03-16 15:35:20 -0400123 Var('chromium_git') + "/chromium/deps/cygwin@" + Var('cygwin_revision'),
Aneesh Mulye2ee9c3a2014-08-06 18:11:02 -0700124 },
125}
Tom Sepez4c0e2752015-06-05 13:46:08 -0700126
thestig3873f302016-09-28 17:39:26 -0700127recursedeps = [
128 # buildtools provides clang_format, libc++, and libc++abi
129 'buildtools',
130]
131
Tom Sepez4c0e2752015-06-05 13:46:08 -0700132include_rules = [
Lei Zhang8fec3e42015-11-04 15:32:02 -0800133 # Basic stuff that everyone can use.
134 # Note: public is not here because core cannot depend on public.
Tom Sepez0c1bd7c2015-06-17 15:56:43 -0700135 '+testing',
136 '+third_party/base',
Tom Sepez4c0e2752015-06-05 13:46:08 -0700137]
Tom Sepez0c1bd7c2015-06-17 15:56:43 -0700138
weili90c964f2016-04-22 15:25:14 -0700139specific_include_rules = {
140 # Allow embedder tests to use public APIs.
141 "(.*embeddertest\.cpp)": [
142 "+public",
143 ]
144}
145
Tom Sepez0c1bd7c2015-06-17 15:56:43 -0700146hooks = [
dsinclair685bb882016-04-20 07:32:39 -0700147 {
dsinclairb4e87082016-04-20 12:18:16 -0700148 'name': 'gn_win',
dsinclair685bb882016-04-20 07:32:39 -0700149 'action': [ 'download_from_google_storage',
150 '--no_resume',
151 '--platform=win32',
152 '--no_auth',
153 '--bucket', 'chromium-gn',
154 '-s', 'pdfium/buildtools/win/gn.exe.sha1',
155 ],
156 },
157 {
158 'name': 'gn_mac',
159 'pattern': '.',
160 'action': [ 'download_from_google_storage',
161 '--no_resume',
162 '--platform=darwin',
163 '--no_auth',
164 '--bucket', 'chromium-gn',
165 '-s', 'pdfium/buildtools/mac/gn.sha1',
166 ],
167 },
168 {
169 'name': 'gn_linux64',
170 'pattern': '.',
171 'action': [ 'download_from_google_storage',
172 '--no_resume',
173 '--platform=linux*',
174 '--no_auth',
175 '--bucket', 'chromium-gn',
176 '-s', 'pdfium/buildtools/linux64/gn.sha1',
177 ],
178 },
Tom Sepeze9446f82015-08-13 15:51:43 -0700179 # Pull clang-format binaries using checked-in hashes.
180 {
181 'name': 'clang_format_win',
182 'pattern': '.',
183 'action': [ 'download_from_google_storage',
184 '--no_resume',
185 '--platform=win32',
186 '--no_auth',
187 '--bucket', 'chromium-clang-format',
Oliver Chang5a21e142015-10-21 15:19:20 -0700188 '-s', 'pdfium/buildtools/win/clang-format.exe.sha1',
Tom Sepeze9446f82015-08-13 15:51:43 -0700189 ],
190 },
191 {
192 'name': 'clang_format_mac',
193 'pattern': '.',
194 'action': [ 'download_from_google_storage',
195 '--no_resume',
196 '--platform=darwin',
197 '--no_auth',
198 '--bucket', 'chromium-clang-format',
Oliver Chang5a21e142015-10-21 15:19:20 -0700199 '-s', 'pdfium/buildtools/mac/clang-format.sha1',
Tom Sepeze9446f82015-08-13 15:51:43 -0700200 ],
201 },
202 {
203 'name': 'clang_format_linux',
204 'pattern': '.',
205 'action': [ 'download_from_google_storage',
206 '--no_resume',
207 '--platform=linux*',
208 '--no_auth',
209 '--bucket', 'chromium-clang-format',
Oliver Chang5a21e142015-10-21 15:19:20 -0700210 '-s', 'pdfium/buildtools/linux64/clang-format.sha1',
Tom Sepeze9446f82015-08-13 15:51:43 -0700211 ],
212 },
Oliver Changafaa98e2015-10-21 15:29:47 -0700213 {
dsinclairb12fbdde2016-09-19 10:45:14 -0700214 # Pull clang
Oliver Changafaa98e2015-10-21 15:29:47 -0700215 'name': 'clang',
216 'pattern': '.',
dsinclair685bb882016-04-20 07:32:39 -0700217 'action': ['python',
dsinclairb12fbdde2016-09-19 10:45:14 -0700218 'pdfium/tools/clang/scripts/update.py'
dsinclair685bb882016-04-20 07:32:39 -0700219 ],
Oliver Changafaa98e2015-10-21 15:29:47 -0700220 },
weili9a1b6652016-04-28 15:26:45 -0700221 {
222 # Update the Windows toolchain if necessary.
223 'name': 'win_toolchain',
224 'pattern': '.',
weili5593bb82016-04-29 20:14:55 -0700225 'action': ['python', 'pdfium/build/vs_toolchain.py', 'update'],
weili9a1b6652016-04-28 15:26:45 -0700226 },
weili62f36732016-10-14 16:59:40 -0700227 {
weili9053f192016-11-18 14:03:49 -0800228 # Update the Mac toolchain if necessary.
229 'name': 'mac_toolchain',
230 'pattern': '.',
231 'action': ['python', 'pdfium/build/mac_toolchain.py'],
232 },
Tom Anderson4e8edf52017-03-30 18:27:21 -0700233 {
234 # Pull sanitizer-instrumented third-party libraries if requested via
235 # GYP_DEFINES.
236 'name': 'instrumented_libraries',
237 'pattern': '\\.sha1',
238 'action': ['python', 'pdfium/third_party/instrumented_libraries/scripts/download_binaries.py'],
239 },
weili62f36732016-10-14 16:59:40 -0700240
Tom Sepeze9446f82015-08-13 15:51:43 -0700241]