Lei Zhang | e4bf834 | 2015-10-21 17:11:04 -0700 | [diff] [blame] | 1 | use_relative_paths = True |
| 2 | |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame] | 3 | vars = { |
| 4 | 'chromium_git': 'https://chromium.googlesource.com', |
| 5 | 'pdfium_git': 'https://pdfium.googlesource.com', |
| 6 | |
thestig | 50feafc | 2016-11-09 23:45:50 -0800 | [diff] [blame] | 7 | 'android_ndk_revision': '26d93ec07f3ce2ec2cdfeae1b21ee6f12ff868d8', |
Lei Zhang | 1831ca9 | 2017-03-29 22:55:08 -0700 | [diff] [blame] | 8 | 'build_revision': 'a634e44492100123636cd2e66cc3cadd828f7031', |
| 9 | 'buildtools_revision': 'e6b510a9daf822bbe9f922c200c58150803d2fd8', |
jbudorick | 2430b30 | 2016-11-23 15:43:09 -0800 | [diff] [blame] | 10 | 'catapult_revision': '86352b966b0245d6883e5f7df27687856978b6d7', |
Lei Zhang | 1831ca9 | 2017-03-29 22:55:08 -0700 | [diff] [blame] | 11 | 'clang_revision': 'c55112ff399f9ad6958b4bb58ca031b8ada63628', |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame] | 12 | 'cygwin_revision': 'c89e446b273697fadf3a10ff1007a97c0b7de6df', |
Lei Zhang | eb39cdb | 2017-03-31 12:26:15 -0700 | [diff] [blame] | 13 | 'freetype_revision': '66725768cdf758cfb3f9abf03cbf5e5a77f42088', |
dsinclair | 11988d7 | 2016-05-04 10:17:00 -0700 | [diff] [blame] | 14 | 'gen_library_loader_revision': '916d4acd8b2cde67a390737dfba90b3c37de23a1', |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame] | 15 | 'gmock_revision': '29763965ab52f24565299976b936d1265cb6a271', |
| 16 | 'gtest_revision': '8245545b6dc9c4703e6496d1efd19e975ad2b038', |
dsinclair | 9468639 | 2016-12-12 08:38:09 -0800 | [diff] [blame] | 17 | 'icu_revision': '73e24736676b4b438270fda44e5b2c83b49fdd80', |
Tom Anderson | 4e8edf5 | 2017-03-30 18:27:21 -0700 | [diff] [blame] | 18 | 'instrumented_lib_revision': '45f5814b1543e41ea0be54c771e3840ea52cca4a', |
Lei Zhang | c0cf369 | 2017-03-30 23:34:45 -0700 | [diff] [blame] | 19 | 'pdfium_tests_revision': '2c5a02609900c6cc67341f67ab49d3073a7081c3', |
Ben Wanger | 9d5fd1d | 2017-02-09 11:21:11 -0500 | [diff] [blame] | 20 | 'skia_revision': '90e3cd78991ef337dbd0023efb30ece864694308', |
dsinclair | fb96900 | 2016-05-31 12:55:32 -0700 | [diff] [blame] | 21 | 'tools_memory_revision': '427f10475e1a8d72424c29d00bf689122b738e5d', |
thestig | 08959c6 | 2016-11-10 13:19:23 -0800 | [diff] [blame] | 22 | 'trace_event_revision': '06294c8a4a6f744ef284cd63cfe54dbf61eea290', |
Dan Sinclair | 3c4f2a1 | 2017-03-23 14:31:50 -0400 | [diff] [blame] | 23 | 'v8_revision': '01498094d09202413aab3ab513785261f82b755d', |
Lei Zhang | a2af7de | 2017-03-31 13:33:12 -0700 | [diff] [blame^] | 24 | 'zlib_revision': 'eed2732a73838fd581cb25819ab1c4f478d6b38f', |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame] | 25 | } |
| 26 | |
Aneesh Mulye | 2ee9c3a | 2014-08-06 18:11:02 -0700 | [diff] [blame] | 27 | deps = { |
thestig | 5fec597 | 2016-08-30 06:39:40 -0700 | [diff] [blame] | 28 | "base/trace_event/common": |
| 29 | Var('chromium_git') + "/chromium/src/base/trace_event/common.git@" + |
| 30 | Var('trace_event_revision'), |
| 31 | |
dsinclair | 685bb88 | 2016-04-20 07:32:39 -0700 | [diff] [blame] | 32 | "build": |
| 33 | Var('chromium_git') + "/chromium/src/build.git@" + Var('build_revision'), |
Aneesh Mulye | 2ee9c3a | 2014-08-06 18:11:02 -0700 | [diff] [blame] | 34 | |
Tom Sepez | 4c0e275 | 2015-06-05 13:46:08 -0700 | [diff] [blame] | 35 | "buildtools": |
Lei Zhang | eb39cdb | 2017-03-31 12:26:15 -0700 | [diff] [blame] | 36 | Var('chromium_git') + "/chromium/buildtools.git@" + |
| 37 | Var('buildtools_revision'), |
Tom Sepez | 4c0e275 | 2015-06-05 13:46:08 -0700 | [diff] [blame] | 38 | |
Tom Sepez | 9519ab2 | 2015-03-16 15:27:19 -0700 | [diff] [blame] | 39 | "testing/corpus": |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame] | 40 | Var('pdfium_git') + "/pdfium_tests@" + Var('pdfium_tests_revision'), |
Tom Sepez | 9519ab2 | 2015-03-16 15:27:19 -0700 | [diff] [blame] | 41 | |
Tom Sepez | a310e00 | 2015-02-27 13:03:07 -0800 | [diff] [blame] | 42 | "testing/gmock": |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame] | 43 | Var('chromium_git') + "/external/googlemock.git@" + Var('gmock_revision'), |
Tom Sepez | a310e00 | 2015-02-27 13:03:07 -0800 | [diff] [blame] | 44 | |
Tom Sepez | 22ee248 | 2015-01-07 10:04:16 -0800 | [diff] [blame] | 45 | "testing/gtest": |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame] | 46 | Var('chromium_git') + "/external/googletest.git@" + Var('gtest_revision'), |
| 47 | |
Lei Zhang | eb39cdb | 2017-03-31 12:26:15 -0700 | [diff] [blame] | 48 | "third_party/freetype/src": |
| 49 | Var('chromium_git') + '/chromium/src/third_party/freetype2.git@' + |
| 50 | Var('freetype_revision'), |
| 51 | |
dsinclair | 685bb88 | 2016-04-20 07:32:39 -0700 | [diff] [blame] | 52 | "third_party/icu": |
| 53 | Var('chromium_git') + "/chromium/deps/icu.git@" + Var('icu_revision'), |
| 54 | |
weili | 62f3673 | 2016-10-14 16:59:40 -0700 | [diff] [blame] | 55 | "third_party/instrumented_libraries": |
Lei Zhang | eb39cdb | 2017-03-31 12:26:15 -0700 | [diff] [blame] | 56 | Var('chromium_git') + |
| 57 | "/chromium/src/third_party/instrumented_libraries.git@" + |
| 58 | Var('instrumented_lib_revision'), |
weili | 62f3673 | 2016-10-14 16:59:40 -0700 | [diff] [blame] | 59 | |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame] | 60 | "third_party/skia": |
Lei Zhang | eb39cdb | 2017-03-31 12:26:15 -0700 | [diff] [blame] | 61 | Var('chromium_git') + '/skia.git@' + Var('skia_revision'), |
Tom Sepez | 22ee248 | 2015-01-07 10:04:16 -0800 | [diff] [blame] | 62 | |
Lei Zhang | a2af7de | 2017-03-31 13:33:12 -0700 | [diff] [blame^] | 63 | "third_party/zlib": |
| 64 | Var('chromium_git') + "/chromium/src/third_party/zlib.git@" + |
| 65 | Var('zlib_revision'), |
| 66 | |
Oliver Chang | afaa98e | 2015-10-21 15:29:47 -0700 | [diff] [blame] | 67 | "tools/clang": |
weili | b34d72b | 2016-04-18 12:24:36 -0700 | [diff] [blame] | 68 | Var('chromium_git') + "/chromium/src/tools/clang@" + Var('clang_revision'), |
Oliver Chang | afaa98e | 2015-10-21 15:29:47 -0700 | [diff] [blame] | 69 | |
dsinclair | 11988d7 | 2016-05-04 10:17:00 -0700 | [diff] [blame] | 70 | "tools/generate_library_loader": |
| 71 | Var('chromium_git') + "/chromium/src/tools/generate_library_loader@" + |
| 72 | Var('gen_library_loader_revision'), |
| 73 | |
dsinclair | fb96900 | 2016-05-31 12:55:32 -0700 | [diff] [blame] | 74 | "tools/memory": |
| 75 | Var('chromium_git') + "/chromium/src/tools/memory@" + |
| 76 | Var('tools_memory_revision'), |
| 77 | |
John Abd-El-Malek | fe45372 | 2014-10-16 15:32:26 -0700 | [diff] [blame] | 78 | "v8": |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame] | 79 | Var('chromium_git') + "/v8/v8.git@" + Var('v8_revision'), |
Aneesh Mulye | 2ee9c3a | 2014-08-06 18:11:02 -0700 | [diff] [blame] | 80 | } |
| 81 | |
| 82 | deps_os = { |
jbudorick | 7f3a15f | 2016-06-10 06:28:40 -0700 | [diff] [blame] | 83 | "android": { |
| 84 | "third_party/android_ndk": |
| 85 | Var('chromium_git') + "/android_ndk.git@" + Var('android_ndk_revision'), |
| 86 | "third_party/catapult": |
Lei Zhang | eb39cdb | 2017-03-31 12:26:15 -0700 | [diff] [blame] | 87 | Var('chromium_git') + |
| 88 | "/external/github.com/catapult-project/catapult.git@" + |
| 89 | Var('catapult_revision'), |
jbudorick | 7f3a15f | 2016-06-10 06:28:40 -0700 | [diff] [blame] | 90 | }, |
Aneesh Mulye | 2ee9c3a | 2014-08-06 18:11:02 -0700 | [diff] [blame] | 91 | "win": { |
Lei Zhang | ce88e77 | 2017-03-16 16:34:54 -0700 | [diff] [blame] | 92 | # TODO(GYP): Remove this when no tools rely on GYP anymore. |
| 93 | "tools/gyp": |
Lei Zhang | eb39cdb | 2017-03-31 12:26:15 -0700 | [diff] [blame] | 94 | Var('chromium_git') + '/external/gyp.git@' + |
| 95 | 'c61b0b35c8396bfd59efc6cfc11401d912b0f510', |
Lei Zhang | ce88e77 | 2017-03-16 16:34:54 -0700 | [diff] [blame] | 96 | |
John Abd-El-Malek | fe45372 | 2014-10-16 15:32:26 -0700 | [diff] [blame] | 97 | "v8/third_party/cygwin": |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame] | 98 | Var('chromium_git') + "/chromium/deps/cygwin@" + Var('cygwin_revision'), |
Aneesh Mulye | 2ee9c3a | 2014-08-06 18:11:02 -0700 | [diff] [blame] | 99 | }, |
| 100 | } |
Tom Sepez | 4c0e275 | 2015-06-05 13:46:08 -0700 | [diff] [blame] | 101 | |
thestig | 3873f30 | 2016-09-28 17:39:26 -0700 | [diff] [blame] | 102 | recursedeps = [ |
| 103 | # buildtools provides clang_format, libc++, and libc++abi |
| 104 | 'buildtools', |
| 105 | ] |
| 106 | |
Tom Sepez | 4c0e275 | 2015-06-05 13:46:08 -0700 | [diff] [blame] | 107 | include_rules = [ |
Lei Zhang | 8fec3e4 | 2015-11-04 15:32:02 -0800 | [diff] [blame] | 108 | # Basic stuff that everyone can use. |
| 109 | # Note: public is not here because core cannot depend on public. |
Tom Sepez | 0c1bd7c | 2015-06-17 15:56:43 -0700 | [diff] [blame] | 110 | '+testing', |
| 111 | '+third_party/base', |
Tom Sepez | 4c0e275 | 2015-06-05 13:46:08 -0700 | [diff] [blame] | 112 | ] |
Tom Sepez | 0c1bd7c | 2015-06-17 15:56:43 -0700 | [diff] [blame] | 113 | |
weili | 90c964f | 2016-04-22 15:25:14 -0700 | [diff] [blame] | 114 | specific_include_rules = { |
| 115 | # Allow embedder tests to use public APIs. |
| 116 | "(.*embeddertest\.cpp)": [ |
| 117 | "+public", |
| 118 | ] |
| 119 | } |
| 120 | |
Tom Sepez | 0c1bd7c | 2015-06-17 15:56:43 -0700 | [diff] [blame] | 121 | hooks = [ |
dsinclair | 685bb88 | 2016-04-20 07:32:39 -0700 | [diff] [blame] | 122 | # Pull GN binaries. This needs to be before running GYP below. |
| 123 | { |
dsinclair | b4e8708 | 2016-04-20 12:18:16 -0700 | [diff] [blame] | 124 | 'name': 'gn_win', |
dsinclair | 685bb88 | 2016-04-20 07:32:39 -0700 | [diff] [blame] | 125 | 'action': [ 'download_from_google_storage', |
| 126 | '--no_resume', |
| 127 | '--platform=win32', |
| 128 | '--no_auth', |
| 129 | '--bucket', 'chromium-gn', |
| 130 | '-s', 'pdfium/buildtools/win/gn.exe.sha1', |
| 131 | ], |
| 132 | }, |
| 133 | { |
| 134 | 'name': 'gn_mac', |
| 135 | 'pattern': '.', |
| 136 | 'action': [ 'download_from_google_storage', |
| 137 | '--no_resume', |
| 138 | '--platform=darwin', |
| 139 | '--no_auth', |
| 140 | '--bucket', 'chromium-gn', |
| 141 | '-s', 'pdfium/buildtools/mac/gn.sha1', |
| 142 | ], |
| 143 | }, |
| 144 | { |
| 145 | 'name': 'gn_linux64', |
| 146 | 'pattern': '.', |
| 147 | 'action': [ 'download_from_google_storage', |
| 148 | '--no_resume', |
| 149 | '--platform=linux*', |
| 150 | '--no_auth', |
| 151 | '--bucket', 'chromium-gn', |
| 152 | '-s', 'pdfium/buildtools/linux64/gn.sha1', |
| 153 | ], |
| 154 | }, |
Tom Sepez | e9446f8 | 2015-08-13 15:51:43 -0700 | [diff] [blame] | 155 | # Pull clang-format binaries using checked-in hashes. |
| 156 | { |
| 157 | 'name': 'clang_format_win', |
| 158 | 'pattern': '.', |
| 159 | 'action': [ 'download_from_google_storage', |
| 160 | '--no_resume', |
| 161 | '--platform=win32', |
| 162 | '--no_auth', |
| 163 | '--bucket', 'chromium-clang-format', |
Oliver Chang | 5a21e14 | 2015-10-21 15:19:20 -0700 | [diff] [blame] | 164 | '-s', 'pdfium/buildtools/win/clang-format.exe.sha1', |
Tom Sepez | e9446f8 | 2015-08-13 15:51:43 -0700 | [diff] [blame] | 165 | ], |
| 166 | }, |
| 167 | { |
| 168 | 'name': 'clang_format_mac', |
| 169 | 'pattern': '.', |
| 170 | 'action': [ 'download_from_google_storage', |
| 171 | '--no_resume', |
| 172 | '--platform=darwin', |
| 173 | '--no_auth', |
| 174 | '--bucket', 'chromium-clang-format', |
Oliver Chang | 5a21e14 | 2015-10-21 15:19:20 -0700 | [diff] [blame] | 175 | '-s', 'pdfium/buildtools/mac/clang-format.sha1', |
Tom Sepez | e9446f8 | 2015-08-13 15:51:43 -0700 | [diff] [blame] | 176 | ], |
| 177 | }, |
| 178 | { |
| 179 | 'name': 'clang_format_linux', |
| 180 | 'pattern': '.', |
| 181 | 'action': [ 'download_from_google_storage', |
| 182 | '--no_resume', |
| 183 | '--platform=linux*', |
| 184 | '--no_auth', |
| 185 | '--bucket', 'chromium-clang-format', |
Oliver Chang | 5a21e14 | 2015-10-21 15:19:20 -0700 | [diff] [blame] | 186 | '-s', 'pdfium/buildtools/linux64/clang-format.sha1', |
Tom Sepez | e9446f8 | 2015-08-13 15:51:43 -0700 | [diff] [blame] | 187 | ], |
| 188 | }, |
Oliver Chang | afaa98e | 2015-10-21 15:29:47 -0700 | [diff] [blame] | 189 | { |
dsinclair | b12fbdde | 2016-09-19 10:45:14 -0700 | [diff] [blame] | 190 | # Pull clang |
Oliver Chang | afaa98e | 2015-10-21 15:29:47 -0700 | [diff] [blame] | 191 | 'name': 'clang', |
| 192 | 'pattern': '.', |
dsinclair | 685bb88 | 2016-04-20 07:32:39 -0700 | [diff] [blame] | 193 | 'action': ['python', |
dsinclair | b12fbdde | 2016-09-19 10:45:14 -0700 | [diff] [blame] | 194 | 'pdfium/tools/clang/scripts/update.py' |
dsinclair | 685bb88 | 2016-04-20 07:32:39 -0700 | [diff] [blame] | 195 | ], |
Oliver Chang | afaa98e | 2015-10-21 15:29:47 -0700 | [diff] [blame] | 196 | }, |
weili | 9a1b665 | 2016-04-28 15:26:45 -0700 | [diff] [blame] | 197 | { |
| 198 | # Update the Windows toolchain if necessary. |
| 199 | 'name': 'win_toolchain', |
| 200 | 'pattern': '.', |
weili | 5593bb8 | 2016-04-29 20:14:55 -0700 | [diff] [blame] | 201 | 'action': ['python', 'pdfium/build/vs_toolchain.py', 'update'], |
weili | 9a1b665 | 2016-04-28 15:26:45 -0700 | [diff] [blame] | 202 | }, |
weili | 62f3673 | 2016-10-14 16:59:40 -0700 | [diff] [blame] | 203 | { |
weili | 9053f19 | 2016-11-18 14:03:49 -0800 | [diff] [blame] | 204 | # Update the Mac toolchain if necessary. |
| 205 | 'name': 'mac_toolchain', |
| 206 | 'pattern': '.', |
| 207 | 'action': ['python', 'pdfium/build/mac_toolchain.py'], |
| 208 | }, |
Tom Anderson | 4e8edf5 | 2017-03-30 18:27:21 -0700 | [diff] [blame] | 209 | { |
| 210 | # Pull sanitizer-instrumented third-party libraries if requested via |
| 211 | # GYP_DEFINES. |
| 212 | 'name': 'instrumented_libraries', |
| 213 | 'pattern': '\\.sha1', |
| 214 | 'action': ['python', 'pdfium/third_party/instrumented_libraries/scripts/download_binaries.py'], |
| 215 | }, |
weili | 62f3673 | 2016-10-14 16:59:40 -0700 | [diff] [blame] | 216 | |
Tom Sepez | e9446f8 | 2015-08-13 15:51:43 -0700 | [diff] [blame] | 217 | ] |