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 | cf7df1b | 2017-09-06 17:41:03 -0700 | [diff] [blame^] | 8 | 'build_revision': '34f9a2ba2ac2bdc70dbdf11644753d81d7ebfeda', |
Lei Zhang | 19319b7 | 2017-08-17 01:31:18 -0700 | [diff] [blame] | 9 | 'buildtools_revision': 'f90f6a5af3e8cf843395bfe6243cf606f71b5344', |
Lei Zhang | cf7df1b | 2017-09-06 17:41:03 -0700 | [diff] [blame^] | 10 | 'catapult_revision': '0cf3924bab2c2f66a412edda35f6e3572bd57623', |
Lei Zhang | 1748c4f | 2017-08-17 01:47:20 -0700 | [diff] [blame] | 11 | 'clang_revision': 'a1420b85586c1fa3eaf68808bbb095334d2d271d', |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame] | 12 | 'cygwin_revision': 'c89e446b273697fadf3a10ff1007a97c0b7de6df', |
Nicolas Pena | 964e56b | 2017-08-03 11:48:11 -0400 | [diff] [blame] | 13 | 'freetype_revision': '7e50824288fac5a36c2938fdb3e1c949ea53f982', |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame] | 14 | 'gmock_revision': '29763965ab52f24565299976b936d1265cb6a271', |
| 15 | 'gtest_revision': '8245545b6dc9c4703e6496d1efd19e975ad2b038', |
Lei Zhang | aec423b | 2017-08-17 10:30:43 -0700 | [diff] [blame] | 16 | 'icu_revision': '08cb956852a5ccdba7f9c941728bb833529ba3c6', |
Lei Zhang | a0b16ec | 2017-08-17 10:36:43 -0700 | [diff] [blame] | 17 | 'instrumented_lib_revision': '644afd349826cb68204226a16c38bde13abe9c3c', |
Dale Curtis | c758d9d | 2017-04-06 14:10:09 -0700 | [diff] [blame] | 18 | 'jinja2_revision': 'd34383206fa42d52faa10bb9931d6d538f3a57e0', |
Lei Zhang | 0e5d892 | 2017-04-06 21:43:50 -0700 | [diff] [blame] | 19 | 'jpeg_turbo_revision': '7260e4d8b8e1e40b17f03fafdf1cd83296900f76', |
Dale Curtis | c758d9d | 2017-04-06 14:10:09 -0700 | [diff] [blame] | 20 | 'markupsafe_revision': '8f45f5cfa0009d2a70589bcda0349b8cb2b72783', |
Dan Sinclair | 68eefa6 | 2017-08-30 12:16:16 -0400 | [diff] [blame] | 21 | 'pdfium_tests_revision': '14606ac642de57bea9aae0d07aa76f5e0ac50dba', |
Lei Zhang | b5df8a5 | 2017-08-17 10:40:43 -0700 | [diff] [blame] | 22 | 'skia_revision': 'e0e20755f6c09b71038ced2bf4a00b4c4593f504', |
dsinclair | fb96900 | 2016-05-31 12:55:32 -0700 | [diff] [blame] | 23 | 'tools_memory_revision': '427f10475e1a8d72424c29d00bf689122b738e5d', |
thestig | 08959c6 | 2016-11-10 13:19:23 -0800 | [diff] [blame] | 24 | 'trace_event_revision': '06294c8a4a6f744ef284cd63cfe54dbf61eea290', |
Lei Zhang | 00ff0b3 | 2017-08-17 01:39:52 -0700 | [diff] [blame] | 25 | 'v8_revision': '4931eb42e8a934941dc60d8f7dc510c08d7bc2c6', |
Lei Zhang | e20e80a | 2017-08-17 12:23:40 -0700 | [diff] [blame] | 26 | 'yasm_source_revision': 'b98114e18d8b9b84586b10d24353ab8616d4c5fc', |
Nicolas Pena | b1a794a | 2017-08-11 16:14:28 -0400 | [diff] [blame] | 27 | 'zlib_revision': '718f686437b89038ac83525f4f1b1888aadd9bfc', |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame] | 28 | } |
| 29 | |
Aneesh Mulye | 2ee9c3a | 2014-08-06 18:11:02 -0700 | [diff] [blame] | 30 | deps = { |
thestig | 5fec597 | 2016-08-30 06:39:40 -0700 | [diff] [blame] | 31 | "base/trace_event/common": |
| 32 | Var('chromium_git') + "/chromium/src/base/trace_event/common.git@" + |
| 33 | Var('trace_event_revision'), |
| 34 | |
dsinclair | 685bb88 | 2016-04-20 07:32:39 -0700 | [diff] [blame] | 35 | "build": |
| 36 | Var('chromium_git') + "/chromium/src/build.git@" + Var('build_revision'), |
Aneesh Mulye | 2ee9c3a | 2014-08-06 18:11:02 -0700 | [diff] [blame] | 37 | |
Tom Sepez | 4c0e275 | 2015-06-05 13:46:08 -0700 | [diff] [blame] | 38 | "buildtools": |
Lei Zhang | eb39cdb | 2017-03-31 12:26:15 -0700 | [diff] [blame] | 39 | Var('chromium_git') + "/chromium/buildtools.git@" + |
| 40 | Var('buildtools_revision'), |
Tom Sepez | 4c0e275 | 2015-06-05 13:46:08 -0700 | [diff] [blame] | 41 | |
Tom Sepez | 9519ab2 | 2015-03-16 15:27:19 -0700 | [diff] [blame] | 42 | "testing/corpus": |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame] | 43 | Var('pdfium_git') + "/pdfium_tests@" + Var('pdfium_tests_revision'), |
Tom Sepez | 9519ab2 | 2015-03-16 15:27:19 -0700 | [diff] [blame] | 44 | |
Tom Sepez | a310e00 | 2015-02-27 13:03:07 -0800 | [diff] [blame] | 45 | "testing/gmock": |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame] | 46 | Var('chromium_git') + "/external/googlemock.git@" + Var('gmock_revision'), |
Tom Sepez | a310e00 | 2015-02-27 13:03:07 -0800 | [diff] [blame] | 47 | |
Tom Sepez | 22ee248 | 2015-01-07 10:04:16 -0800 | [diff] [blame] | 48 | "testing/gtest": |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame] | 49 | Var('chromium_git') + "/external/googletest.git@" + Var('gtest_revision'), |
| 50 | |
Lei Zhang | eb39cdb | 2017-03-31 12:26:15 -0700 | [diff] [blame] | 51 | "third_party/freetype/src": |
| 52 | Var('chromium_git') + '/chromium/src/third_party/freetype2.git@' + |
| 53 | Var('freetype_revision'), |
| 54 | |
dsinclair | 685bb88 | 2016-04-20 07:32:39 -0700 | [diff] [blame] | 55 | "third_party/icu": |
| 56 | Var('chromium_git') + "/chromium/deps/icu.git@" + Var('icu_revision'), |
| 57 | |
weili | 62f3673 | 2016-10-14 16:59:40 -0700 | [diff] [blame] | 58 | "third_party/instrumented_libraries": |
Lei Zhang | eb39cdb | 2017-03-31 12:26:15 -0700 | [diff] [blame] | 59 | Var('chromium_git') + |
| 60 | "/chromium/src/third_party/instrumented_libraries.git@" + |
| 61 | Var('instrumented_lib_revision'), |
weili | 62f3673 | 2016-10-14 16:59:40 -0700 | [diff] [blame] | 62 | |
Dale Curtis | c758d9d | 2017-04-06 14:10:09 -0700 | [diff] [blame] | 63 | "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 Zhang | 0e5d892 | 2017-04-06 21:43:50 -0700 | [diff] [blame] | 71 | "third_party/libjpeg_turbo": |
| 72 | Var('chromium_git') + "/chromium/deps/libjpeg_turbo.git@" + |
| 73 | Var('jpeg_turbo_revision'), |
| 74 | |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame] | 75 | "third_party/skia": |
Lei Zhang | eb39cdb | 2017-03-31 12:26:15 -0700 | [diff] [blame] | 76 | Var('chromium_git') + '/skia.git@' + Var('skia_revision'), |
Tom Sepez | 22ee248 | 2015-01-07 10:04:16 -0800 | [diff] [blame] | 77 | |
Lei Zhang | a2af7de | 2017-03-31 13:33:12 -0700 | [diff] [blame] | 78 | "third_party/zlib": |
| 79 | Var('chromium_git') + "/chromium/src/third_party/zlib.git@" + |
| 80 | Var('zlib_revision'), |
| 81 | |
Lei Zhang | 0e5d892 | 2017-04-06 21:43:50 -0700 | [diff] [blame] | 82 | 'third_party/yasm/source/patched-yasm': |
| 83 | Var('chromium_git') + '/chromium/deps/yasm/patched-yasm.git@' + |
| 84 | Var('yasm_source_revision'), |
| 85 | |
Oliver Chang | afaa98e | 2015-10-21 15:29:47 -0700 | [diff] [blame] | 86 | "tools/clang": |
weili | b34d72b | 2016-04-18 12:24:36 -0700 | [diff] [blame] | 87 | Var('chromium_git') + "/chromium/src/tools/clang@" + Var('clang_revision'), |
Oliver Chang | afaa98e | 2015-10-21 15:29:47 -0700 | [diff] [blame] | 88 | |
Tom Anderson | 19817af | 2017-07-18 18:00:18 -0700 | [diff] [blame] | 89 | # TODO(GYP): Remove this when no tools rely on GYP anymore. |
| 90 | "tools/gyp": |
| 91 | Var('chromium_git') + '/external/gyp.git@' + |
| 92 | 'eb296f67da078ec01f5e3a9ea9cdc6d26d680161', |
| 93 | |
dsinclair | fb96900 | 2016-05-31 12:55:32 -0700 | [diff] [blame] | 94 | "tools/memory": |
| 95 | Var('chromium_git') + "/chromium/src/tools/memory@" + |
| 96 | Var('tools_memory_revision'), |
| 97 | |
John Abd-El-Malek | fe45372 | 2014-10-16 15:32:26 -0700 | [diff] [blame] | 98 | "v8": |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame] | 99 | Var('chromium_git') + "/v8/v8.git@" + Var('v8_revision'), |
Aneesh Mulye | 2ee9c3a | 2014-08-06 18:11:02 -0700 | [diff] [blame] | 100 | } |
| 101 | |
| 102 | deps_os = { |
jbudorick | 7f3a15f | 2016-06-10 06:28:40 -0700 | [diff] [blame] | 103 | "android": { |
| 104 | "third_party/android_ndk": |
| 105 | Var('chromium_git') + "/android_ndk.git@" + Var('android_ndk_revision'), |
| 106 | "third_party/catapult": |
Lei Zhang | eb39cdb | 2017-03-31 12:26:15 -0700 | [diff] [blame] | 107 | Var('chromium_git') + |
| 108 | "/external/github.com/catapult-project/catapult.git@" + |
| 109 | Var('catapult_revision'), |
jbudorick | 7f3a15f | 2016-06-10 06:28:40 -0700 | [diff] [blame] | 110 | }, |
Aneesh Mulye | 2ee9c3a | 2014-08-06 18:11:02 -0700 | [diff] [blame] | 111 | "win": { |
John Abd-El-Malek | fe45372 | 2014-10-16 15:32:26 -0700 | [diff] [blame] | 112 | "v8/third_party/cygwin": |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame] | 113 | Var('chromium_git') + "/chromium/deps/cygwin@" + Var('cygwin_revision'), |
Aneesh Mulye | 2ee9c3a | 2014-08-06 18:11:02 -0700 | [diff] [blame] | 114 | }, |
| 115 | } |
Tom Sepez | 4c0e275 | 2015-06-05 13:46:08 -0700 | [diff] [blame] | 116 | |
thestig | 3873f30 | 2016-09-28 17:39:26 -0700 | [diff] [blame] | 117 | recursedeps = [ |
| 118 | # buildtools provides clang_format, libc++, and libc++abi |
| 119 | 'buildtools', |
| 120 | ] |
| 121 | |
Tom Sepez | 4c0e275 | 2015-06-05 13:46:08 -0700 | [diff] [blame] | 122 | include_rules = [ |
Lei Zhang | 8fec3e4 | 2015-11-04 15:32:02 -0800 | [diff] [blame] | 123 | # Basic stuff that everyone can use. |
| 124 | # Note: public is not here because core cannot depend on public. |
Tom Sepez | 0c1bd7c | 2015-06-17 15:56:43 -0700 | [diff] [blame] | 125 | '+testing', |
| 126 | '+third_party/base', |
Tom Sepez | 4c0e275 | 2015-06-05 13:46:08 -0700 | [diff] [blame] | 127 | ] |
Tom Sepez | 0c1bd7c | 2015-06-17 15:56:43 -0700 | [diff] [blame] | 128 | |
weili | 90c964f | 2016-04-22 15:25:14 -0700 | [diff] [blame] | 129 | specific_include_rules = { |
| 130 | # Allow embedder tests to use public APIs. |
| 131 | "(.*embeddertest\.cpp)": [ |
| 132 | "+public", |
| 133 | ] |
| 134 | } |
| 135 | |
Tom Sepez | 0c1bd7c | 2015-06-17 15:56:43 -0700 | [diff] [blame] | 136 | hooks = [ |
dsinclair | 685bb88 | 2016-04-20 07:32:39 -0700 | [diff] [blame] | 137 | { |
dsinclair | b4e8708 | 2016-04-20 12:18:16 -0700 | [diff] [blame] | 138 | 'name': 'gn_win', |
dsinclair | 685bb88 | 2016-04-20 07:32:39 -0700 | [diff] [blame] | 139 | '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 Sepez | e9446f8 | 2015-08-13 15:51:43 -0700 | [diff] [blame] | 169 | # 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 Chang | 5a21e14 | 2015-10-21 15:19:20 -0700 | [diff] [blame] | 178 | '-s', 'pdfium/buildtools/win/clang-format.exe.sha1', |
Tom Sepez | e9446f8 | 2015-08-13 15:51:43 -0700 | [diff] [blame] | 179 | ], |
| 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 Chang | 5a21e14 | 2015-10-21 15:19:20 -0700 | [diff] [blame] | 189 | '-s', 'pdfium/buildtools/mac/clang-format.sha1', |
Tom Sepez | e9446f8 | 2015-08-13 15:51:43 -0700 | [diff] [blame] | 190 | ], |
| 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 Chang | 5a21e14 | 2015-10-21 15:19:20 -0700 | [diff] [blame] | 200 | '-s', 'pdfium/buildtools/linux64/clang-format.sha1', |
Tom Sepez | e9446f8 | 2015-08-13 15:51:43 -0700 | [diff] [blame] | 201 | ], |
| 202 | }, |
Oliver Chang | afaa98e | 2015-10-21 15:29:47 -0700 | [diff] [blame] | 203 | { |
dsinclair | b12fbdde | 2016-09-19 10:45:14 -0700 | [diff] [blame] | 204 | # Pull clang |
Oliver Chang | afaa98e | 2015-10-21 15:29:47 -0700 | [diff] [blame] | 205 | 'name': 'clang', |
| 206 | 'pattern': '.', |
dsinclair | 685bb88 | 2016-04-20 07:32:39 -0700 | [diff] [blame] | 207 | 'action': ['python', |
dsinclair | b12fbdde | 2016-09-19 10:45:14 -0700 | [diff] [blame] | 208 | 'pdfium/tools/clang/scripts/update.py' |
dsinclair | 685bb88 | 2016-04-20 07:32:39 -0700 | [diff] [blame] | 209 | ], |
Oliver Chang | afaa98e | 2015-10-21 15:29:47 -0700 | [diff] [blame] | 210 | }, |
weili | 9a1b665 | 2016-04-28 15:26:45 -0700 | [diff] [blame] | 211 | { |
Tom Anderson | 19817af | 2017-07-18 18:00:18 -0700 | [diff] [blame] | 212 | # 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 | { |
weili | 9a1b665 | 2016-04-28 15:26:45 -0700 | [diff] [blame] | 221 | # Update the Windows toolchain if necessary. |
| 222 | 'name': 'win_toolchain', |
| 223 | 'pattern': '.', |
weili | 5593bb8 | 2016-04-29 20:14:55 -0700 | [diff] [blame] | 224 | 'action': ['python', 'pdfium/build/vs_toolchain.py', 'update'], |
weili | 9a1b665 | 2016-04-28 15:26:45 -0700 | [diff] [blame] | 225 | }, |
weili | 62f3673 | 2016-10-14 16:59:40 -0700 | [diff] [blame] | 226 | { |
weili | 9053f19 | 2016-11-18 14:03:49 -0800 | [diff] [blame] | 227 | # Update the Mac toolchain if necessary. |
| 228 | 'name': 'mac_toolchain', |
| 229 | 'pattern': '.', |
| 230 | 'action': ['python', 'pdfium/build/mac_toolchain.py'], |
| 231 | }, |
Tom Anderson | 4e8edf5 | 2017-03-30 18:27:21 -0700 | [diff] [blame] | 232 | { |
| 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 | }, |
weili | 62f3673 | 2016-10-14 16:59:40 -0700 | [diff] [blame] | 239 | |
Tom Sepez | e9446f8 | 2015-08-13 15:51:43 -0700 | [diff] [blame] | 240 | ] |