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 | |
jbudorick | 7f3a15f | 2016-06-10 06:28:40 -0700 | [diff] [blame] | 7 | 'android_ndk_revision': '5022f40f12953c02b2614c5f7beb981ec5d0e833', |
thestig | c65e11e | 2016-08-30 21:56:33 -0700 | [diff] [blame] | 8 | 'build_revision': 'b73bafdd0ff0efc8835de6e646b47eec0a2a38a4', |
thestig | 3873f30 | 2016-09-28 17:39:26 -0700 | [diff] [blame] | 9 | 'buildtools_revision': '5fd66957f08bb752dca714a591c84587c9d70762', |
thestig | 2798a7a | 2016-07-01 20:26:54 -0700 | [diff] [blame] | 10 | 'catapult_revision': '327256cb1c387e62a2c7e6960e2398867665fb51', |
thestig | 3af1b8d | 2016-08-26 09:30:25 -0700 | [diff] [blame] | 11 | 'clang_revision': '797371be0a75c9892d6acb486d0430915ea538a6', |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame] | 12 | 'cygwin_revision': 'c89e446b273697fadf3a10ff1007a97c0b7de6df', |
dsinclair | 11988d7 | 2016-05-04 10:17:00 -0700 | [diff] [blame] | 13 | 'gen_library_loader_revision': '916d4acd8b2cde67a390737dfba90b3c37de23a1', |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame] | 14 | 'gmock_revision': '29763965ab52f24565299976b936d1265cb6a271', |
| 15 | 'gtest_revision': '8245545b6dc9c4703e6496d1efd19e975ad2b038', |
thestig | 71e6e35 | 2016-08-26 09:40:19 -0700 | [diff] [blame] | 16 | 'icu_revision': '2341038bf72869a5683a893a2b319a48ffec7f62', |
weili | ad2b20d | 2016-10-03 17:22:32 -0700 | [diff] [blame] | 17 | 'pdfium_tests_revision': '06411790a46e6497e5293f921ea9aa9fb2615e41', |
caryclark | aa6e8b5 | 2016-10-06 12:28:55 -0700 | [diff] [blame] | 18 | 'skia_revision': 'b55ebf071dce33794f5518dcdc3a9af006285796', |
dsinclair | fb96900 | 2016-05-31 12:55:32 -0700 | [diff] [blame] | 19 | 'tools_memory_revision': '427f10475e1a8d72424c29d00bf689122b738e5d', |
thestig | b036d9c | 2016-09-29 05:10:36 -0700 | [diff] [blame] | 20 | 'trace_event_revision': '6232c13e4edb36c84c61653fdae5a4afb5af9745', |
| 21 | 'v8_revision': 'a964163e6ac4f1124b22ea7e46b8afe26dec02e0', |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame] | 22 | } |
| 23 | |
Aneesh Mulye | 2ee9c3a | 2014-08-06 18:11:02 -0700 | [diff] [blame] | 24 | deps = { |
thestig | 5fec597 | 2016-08-30 06:39:40 -0700 | [diff] [blame] | 25 | "base/trace_event/common": |
| 26 | Var('chromium_git') + "/chromium/src/base/trace_event/common.git@" + |
| 27 | Var('trace_event_revision'), |
| 28 | |
dsinclair | 685bb88 | 2016-04-20 07:32:39 -0700 | [diff] [blame] | 29 | "build": |
| 30 | Var('chromium_git') + "/chromium/src/build.git@" + Var('build_revision'), |
Aneesh Mulye | 2ee9c3a | 2014-08-06 18:11:02 -0700 | [diff] [blame] | 31 | |
Tom Sepez | 4c0e275 | 2015-06-05 13:46:08 -0700 | [diff] [blame] | 32 | "buildtools": |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame] | 33 | Var('chromium_git') + "/chromium/buildtools.git@" + Var('buildtools_revision'), |
Tom Sepez | 4c0e275 | 2015-06-05 13:46:08 -0700 | [diff] [blame] | 34 | |
Tom Sepez | 9519ab2 | 2015-03-16 15:27:19 -0700 | [diff] [blame] | 35 | "testing/corpus": |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame] | 36 | Var('pdfium_git') + "/pdfium_tests@" + Var('pdfium_tests_revision'), |
Tom Sepez | 9519ab2 | 2015-03-16 15:27:19 -0700 | [diff] [blame] | 37 | |
Tom Sepez | a310e00 | 2015-02-27 13:03:07 -0800 | [diff] [blame] | 38 | "testing/gmock": |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame] | 39 | Var('chromium_git') + "/external/googlemock.git@" + Var('gmock_revision'), |
Tom Sepez | a310e00 | 2015-02-27 13:03:07 -0800 | [diff] [blame] | 40 | |
Tom Sepez | 22ee248 | 2015-01-07 10:04:16 -0800 | [diff] [blame] | 41 | "testing/gtest": |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame] | 42 | Var('chromium_git') + "/external/googletest.git@" + Var('gtest_revision'), |
| 43 | |
dsinclair | 685bb88 | 2016-04-20 07:32:39 -0700 | [diff] [blame] | 44 | "third_party/icu": |
| 45 | Var('chromium_git') + "/chromium/deps/icu.git@" + Var('icu_revision'), |
| 46 | |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame] | 47 | "third_party/skia": |
| 48 | Var('chromium_git') + '/skia.git' + '@' + Var('skia_revision'), |
Tom Sepez | 22ee248 | 2015-01-07 10:04:16 -0800 | [diff] [blame] | 49 | |
Oliver Chang | afaa98e | 2015-10-21 15:29:47 -0700 | [diff] [blame] | 50 | "tools/clang": |
weili | b34d72b | 2016-04-18 12:24:36 -0700 | [diff] [blame] | 51 | Var('chromium_git') + "/chromium/src/tools/clang@" + Var('clang_revision'), |
Oliver Chang | afaa98e | 2015-10-21 15:29:47 -0700 | [diff] [blame] | 52 | |
dsinclair | 11988d7 | 2016-05-04 10:17:00 -0700 | [diff] [blame] | 53 | "tools/generate_library_loader": |
| 54 | Var('chromium_git') + "/chromium/src/tools/generate_library_loader@" + |
| 55 | Var('gen_library_loader_revision'), |
| 56 | |
thestig | b7fb1fd | 2016-08-26 14:39:31 -0700 | [diff] [blame] | 57 | # TODO(GYP): Remove this when no tools rely on GYP anymore. |
dsinclair | 685bb88 | 2016-04-20 07:32:39 -0700 | [diff] [blame] | 58 | "tools/gyp": |
thestig | 2798a7a | 2016-07-01 20:26:54 -0700 | [diff] [blame] | 59 | Var('chromium_git') + '/external/gyp.git' + '@' + 'c61b0b35c8396bfd59efc6cfc11401d912b0f510', |
dsinclair | 685bb88 | 2016-04-20 07:32:39 -0700 | [diff] [blame] | 60 | |
dsinclair | fb96900 | 2016-05-31 12:55:32 -0700 | [diff] [blame] | 61 | "tools/memory": |
| 62 | Var('chromium_git') + "/chromium/src/tools/memory@" + |
| 63 | Var('tools_memory_revision'), |
| 64 | |
John Abd-El-Malek | fe45372 | 2014-10-16 15:32:26 -0700 | [diff] [blame] | 65 | "v8": |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame] | 66 | Var('chromium_git') + "/v8/v8.git@" + Var('v8_revision'), |
Aneesh Mulye | 2ee9c3a | 2014-08-06 18:11:02 -0700 | [diff] [blame] | 67 | } |
| 68 | |
| 69 | deps_os = { |
jbudorick | 7f3a15f | 2016-06-10 06:28:40 -0700 | [diff] [blame] | 70 | "android": { |
| 71 | "third_party/android_ndk": |
| 72 | Var('chromium_git') + "/android_ndk.git@" + Var('android_ndk_revision'), |
| 73 | "third_party/catapult": |
| 74 | Var('chromium_git') + "/external/github.com/catapult-project/catapult.git@" + Var('catapult_revision'), |
| 75 | }, |
Aneesh Mulye | 2ee9c3a | 2014-08-06 18:11:02 -0700 | [diff] [blame] | 76 | "win": { |
John Abd-El-Malek | fe45372 | 2014-10-16 15:32:26 -0700 | [diff] [blame] | 77 | "v8/third_party/cygwin": |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame] | 78 | Var('chromium_git') + "/chromium/deps/cygwin@" + Var('cygwin_revision'), |
Aneesh Mulye | 2ee9c3a | 2014-08-06 18:11:02 -0700 | [diff] [blame] | 79 | }, |
| 80 | } |
Tom Sepez | 4c0e275 | 2015-06-05 13:46:08 -0700 | [diff] [blame] | 81 | |
thestig | 3873f30 | 2016-09-28 17:39:26 -0700 | [diff] [blame] | 82 | recursedeps = [ |
| 83 | # buildtools provides clang_format, libc++, and libc++abi |
| 84 | 'buildtools', |
| 85 | ] |
| 86 | |
Tom Sepez | 4c0e275 | 2015-06-05 13:46:08 -0700 | [diff] [blame] | 87 | include_rules = [ |
Lei Zhang | 8fec3e4 | 2015-11-04 15:32:02 -0800 | [diff] [blame] | 88 | # Basic stuff that everyone can use. |
| 89 | # Note: public is not here because core cannot depend on public. |
Tom Sepez | 0c1bd7c | 2015-06-17 15:56:43 -0700 | [diff] [blame] | 90 | '+testing', |
| 91 | '+third_party/base', |
Tom Sepez | 4c0e275 | 2015-06-05 13:46:08 -0700 | [diff] [blame] | 92 | ] |
Tom Sepez | 0c1bd7c | 2015-06-17 15:56:43 -0700 | [diff] [blame] | 93 | |
weili | 90c964f | 2016-04-22 15:25:14 -0700 | [diff] [blame] | 94 | specific_include_rules = { |
| 95 | # Allow embedder tests to use public APIs. |
| 96 | "(.*embeddertest\.cpp)": [ |
| 97 | "+public", |
| 98 | ] |
| 99 | } |
| 100 | |
Tom Sepez | 0c1bd7c | 2015-06-17 15:56:43 -0700 | [diff] [blame] | 101 | hooks = [ |
dsinclair | 685bb88 | 2016-04-20 07:32:39 -0700 | [diff] [blame] | 102 | # Pull GN binaries. This needs to be before running GYP below. |
| 103 | { |
dsinclair | b4e8708 | 2016-04-20 12:18:16 -0700 | [diff] [blame] | 104 | 'name': 'gn_win', |
dsinclair | 685bb88 | 2016-04-20 07:32:39 -0700 | [diff] [blame] | 105 | 'action': [ 'download_from_google_storage', |
| 106 | '--no_resume', |
| 107 | '--platform=win32', |
| 108 | '--no_auth', |
| 109 | '--bucket', 'chromium-gn', |
| 110 | '-s', 'pdfium/buildtools/win/gn.exe.sha1', |
| 111 | ], |
| 112 | }, |
| 113 | { |
| 114 | 'name': 'gn_mac', |
| 115 | 'pattern': '.', |
| 116 | 'action': [ 'download_from_google_storage', |
| 117 | '--no_resume', |
| 118 | '--platform=darwin', |
| 119 | '--no_auth', |
| 120 | '--bucket', 'chromium-gn', |
| 121 | '-s', 'pdfium/buildtools/mac/gn.sha1', |
| 122 | ], |
| 123 | }, |
| 124 | { |
| 125 | 'name': 'gn_linux64', |
| 126 | 'pattern': '.', |
| 127 | 'action': [ 'download_from_google_storage', |
| 128 | '--no_resume', |
| 129 | '--platform=linux*', |
| 130 | '--no_auth', |
| 131 | '--bucket', 'chromium-gn', |
| 132 | '-s', 'pdfium/buildtools/linux64/gn.sha1', |
| 133 | ], |
| 134 | }, |
Tom Sepez | e9446f8 | 2015-08-13 15:51:43 -0700 | [diff] [blame] | 135 | # Pull clang-format binaries using checked-in hashes. |
| 136 | { |
| 137 | 'name': 'clang_format_win', |
| 138 | 'pattern': '.', |
| 139 | 'action': [ 'download_from_google_storage', |
| 140 | '--no_resume', |
| 141 | '--platform=win32', |
| 142 | '--no_auth', |
| 143 | '--bucket', 'chromium-clang-format', |
Oliver Chang | 5a21e14 | 2015-10-21 15:19:20 -0700 | [diff] [blame] | 144 | '-s', 'pdfium/buildtools/win/clang-format.exe.sha1', |
Tom Sepez | e9446f8 | 2015-08-13 15:51:43 -0700 | [diff] [blame] | 145 | ], |
| 146 | }, |
| 147 | { |
| 148 | 'name': 'clang_format_mac', |
| 149 | 'pattern': '.', |
| 150 | 'action': [ 'download_from_google_storage', |
| 151 | '--no_resume', |
| 152 | '--platform=darwin', |
| 153 | '--no_auth', |
| 154 | '--bucket', 'chromium-clang-format', |
Oliver Chang | 5a21e14 | 2015-10-21 15:19:20 -0700 | [diff] [blame] | 155 | '-s', 'pdfium/buildtools/mac/clang-format.sha1', |
Tom Sepez | e9446f8 | 2015-08-13 15:51:43 -0700 | [diff] [blame] | 156 | ], |
| 157 | }, |
| 158 | { |
| 159 | 'name': 'clang_format_linux', |
| 160 | 'pattern': '.', |
| 161 | 'action': [ 'download_from_google_storage', |
| 162 | '--no_resume', |
| 163 | '--platform=linux*', |
| 164 | '--no_auth', |
| 165 | '--bucket', 'chromium-clang-format', |
Oliver Chang | 5a21e14 | 2015-10-21 15:19:20 -0700 | [diff] [blame] | 166 | '-s', 'pdfium/buildtools/linux64/clang-format.sha1', |
Tom Sepez | e9446f8 | 2015-08-13 15:51:43 -0700 | [diff] [blame] | 167 | ], |
| 168 | }, |
Oliver Chang | afaa98e | 2015-10-21 15:29:47 -0700 | [diff] [blame] | 169 | { |
dsinclair | b12fbdde | 2016-09-19 10:45:14 -0700 | [diff] [blame] | 170 | # Pull clang |
Oliver Chang | afaa98e | 2015-10-21 15:29:47 -0700 | [diff] [blame] | 171 | 'name': 'clang', |
| 172 | 'pattern': '.', |
dsinclair | 685bb88 | 2016-04-20 07:32:39 -0700 | [diff] [blame] | 173 | 'action': ['python', |
dsinclair | b12fbdde | 2016-09-19 10:45:14 -0700 | [diff] [blame] | 174 | 'pdfium/tools/clang/scripts/update.py' |
dsinclair | 685bb88 | 2016-04-20 07:32:39 -0700 | [diff] [blame] | 175 | ], |
Oliver Chang | afaa98e | 2015-10-21 15:29:47 -0700 | [diff] [blame] | 176 | }, |
weili | 9a1b665 | 2016-04-28 15:26:45 -0700 | [diff] [blame] | 177 | { |
| 178 | # Update the Windows toolchain if necessary. |
| 179 | 'name': 'win_toolchain', |
| 180 | 'pattern': '.', |
weili | 5593bb8 | 2016-04-29 20:14:55 -0700 | [diff] [blame] | 181 | 'action': ['python', 'pdfium/build/vs_toolchain.py', 'update'], |
weili | 9a1b665 | 2016-04-28 15:26:45 -0700 | [diff] [blame] | 182 | }, |
Tom Sepez | e9446f8 | 2015-08-13 15:51:43 -0700 | [diff] [blame] | 183 | ] |