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 | |
dsinclair | 685bb88 | 2016-04-20 07:32:39 -0700 | [diff] [blame^] | 7 | 'build_revision': '4d35c0d78ccf35b1597b9dd4adad52203916a01f', |
| 8 | 'buildtools_revision': '5378d73123b64907773cc5c1bb027b2f765ff00a', |
weili | 360caf6 | 2016-04-18 15:42:25 -0700 | [diff] [blame] | 9 | 'clang_revision': '9dc1904d214a77f081362c1b848b5f28d2192748', |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame] | 10 | 'cygwin_revision': 'c89e446b273697fadf3a10ff1007a97c0b7de6df', |
| 11 | 'gmock_revision': '29763965ab52f24565299976b936d1265cb6a271', |
| 12 | 'gtest_revision': '8245545b6dc9c4703e6496d1efd19e975ad2b038', |
thestig | f1accf6 | 2016-04-12 16:54:56 -0700 | [diff] [blame] | 13 | 'icu_revision': 'c291cde264469b20ca969ce8832088acb21e0c48', |
tsepez | 86d945b | 2016-04-18 17:15:42 -0700 | [diff] [blame] | 14 | 'pdfium_tests_revision': '7ef8719fac859e1d23d667d4c3038ae8b38e4d36', |
Cary Clark | 029ea3e | 2016-03-23 15:31:37 -0400 | [diff] [blame] | 15 | 'skia_revision': '0a291c7b7eea1807bd58bdaa60c258fd0ebeb257', |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame] | 16 | 'trace_event_revision': 'd83d44b13d07c2fd0a40101a7deef9b93b841732', |
thestig | fa6382f | 2016-04-12 11:29:28 -0700 | [diff] [blame] | 17 | 'v8_revision': '47bcec782b752ba411bd8bba6e390d1cc1c3226e', |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame] | 18 | |
| 19 | } |
| 20 | |
Aneesh Mulye | 2ee9c3a | 2014-08-06 18:11:02 -0700 | [diff] [blame] | 21 | deps = { |
dsinclair | 685bb88 | 2016-04-20 07:32:39 -0700 | [diff] [blame^] | 22 | "build": |
| 23 | Var('chromium_git') + "/chromium/src/build.git@" + Var('build_revision'), |
Aneesh Mulye | 2ee9c3a | 2014-08-06 18:11:02 -0700 | [diff] [blame] | 24 | |
Tom Sepez | 4c0e275 | 2015-06-05 13:46:08 -0700 | [diff] [blame] | 25 | "buildtools": |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame] | 26 | Var('chromium_git') + "/chromium/buildtools.git@" + Var('buildtools_revision'), |
Tom Sepez | 4c0e275 | 2015-06-05 13:46:08 -0700 | [diff] [blame] | 27 | |
Tom Sepez | 9519ab2 | 2015-03-16 15:27:19 -0700 | [diff] [blame] | 28 | "testing/corpus": |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame] | 29 | Var('pdfium_git') + "/pdfium_tests@" + Var('pdfium_tests_revision'), |
Tom Sepez | 9519ab2 | 2015-03-16 15:27:19 -0700 | [diff] [blame] | 30 | |
Tom Sepez | a310e00 | 2015-02-27 13:03:07 -0800 | [diff] [blame] | 31 | "testing/gmock": |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame] | 32 | Var('chromium_git') + "/external/googlemock.git@" + Var('gmock_revision'), |
Tom Sepez | a310e00 | 2015-02-27 13:03:07 -0800 | [diff] [blame] | 33 | |
Tom Sepez | 22ee248 | 2015-01-07 10:04:16 -0800 | [diff] [blame] | 34 | "testing/gtest": |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame] | 35 | Var('chromium_git') + "/external/googletest.git@" + Var('gtest_revision'), |
| 36 | |
dsinclair | 685bb88 | 2016-04-20 07:32:39 -0700 | [diff] [blame^] | 37 | "third_party/icu": |
| 38 | Var('chromium_git') + "/chromium/deps/icu.git@" + Var('icu_revision'), |
| 39 | |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame] | 40 | "third_party/skia": |
| 41 | Var('chromium_git') + '/skia.git' + '@' + Var('skia_revision'), |
Tom Sepez | 22ee248 | 2015-01-07 10:04:16 -0800 | [diff] [blame] | 42 | |
Oliver Chang | afaa98e | 2015-10-21 15:29:47 -0700 | [diff] [blame] | 43 | "tools/clang": |
weili | b34d72b | 2016-04-18 12:24:36 -0700 | [diff] [blame] | 44 | Var('chromium_git') + "/chromium/src/tools/clang@" + Var('clang_revision'), |
Oliver Chang | afaa98e | 2015-10-21 15:29:47 -0700 | [diff] [blame] | 45 | |
dsinclair | 685bb88 | 2016-04-20 07:32:39 -0700 | [diff] [blame^] | 46 | "tools/gyp": |
| 47 | Var('chromium_git') + "/external/gyp", |
| 48 | |
John Abd-El-Malek | fe45372 | 2014-10-16 15:32:26 -0700 | [diff] [blame] | 49 | "v8": |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame] | 50 | Var('chromium_git') + "/v8/v8.git@" + Var('v8_revision'), |
Lei Zhang | 0ef109f | 2016-01-11 12:24:16 -0800 | [diff] [blame] | 51 | |
| 52 | "v8/base/trace_event/common": |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame] | 53 | Var('chromium_git') + "/chromium/src/base/trace_event/common.git@" + Var('trace_event_revision'), |
Aneesh Mulye | 2ee9c3a | 2014-08-06 18:11:02 -0700 | [diff] [blame] | 54 | } |
| 55 | |
| 56 | deps_os = { |
| 57 | "win": { |
John Abd-El-Malek | fe45372 | 2014-10-16 15:32:26 -0700 | [diff] [blame] | 58 | "v8/third_party/cygwin": |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame] | 59 | Var('chromium_git') + "/chromium/deps/cygwin@" + Var('cygwin_revision'), |
Aneesh Mulye | 2ee9c3a | 2014-08-06 18:11:02 -0700 | [diff] [blame] | 60 | }, |
| 61 | } |
Tom Sepez | 4c0e275 | 2015-06-05 13:46:08 -0700 | [diff] [blame] | 62 | |
| 63 | include_rules = [ |
Lei Zhang | 8fec3e4 | 2015-11-04 15:32:02 -0800 | [diff] [blame] | 64 | # Basic stuff that everyone can use. |
| 65 | # Note: public is not here because core cannot depend on public. |
Tom Sepez | 0c1bd7c | 2015-06-17 15:56:43 -0700 | [diff] [blame] | 66 | '+testing', |
| 67 | '+third_party/base', |
Tom Sepez | 4c0e275 | 2015-06-05 13:46:08 -0700 | [diff] [blame] | 68 | ] |
Tom Sepez | 0c1bd7c | 2015-06-17 15:56:43 -0700 | [diff] [blame] | 69 | |
| 70 | hooks = [ |
dsinclair | 685bb88 | 2016-04-20 07:32:39 -0700 | [diff] [blame^] | 71 | # Pull GN binaries. This needs to be before running GYP below. |
| 72 | { |
| 73 | 'action': [ 'download_from_google_storage', |
| 74 | '--no_resume', |
| 75 | '--platform=win32', |
| 76 | '--no_auth', |
| 77 | '--bucket', 'chromium-gn', |
| 78 | '-s', 'pdfium/buildtools/win/gn.exe.sha1', |
| 79 | ], |
| 80 | }, |
| 81 | { |
| 82 | 'name': 'gn_mac', |
| 83 | 'pattern': '.', |
| 84 | 'action': [ 'download_from_google_storage', |
| 85 | '--no_resume', |
| 86 | '--platform=darwin', |
| 87 | '--no_auth', |
| 88 | '--bucket', 'chromium-gn', |
| 89 | '-s', 'pdfium/buildtools/mac/gn.sha1', |
| 90 | ], |
| 91 | }, |
| 92 | { |
| 93 | 'name': 'gn_linux64', |
| 94 | 'pattern': '.', |
| 95 | 'action': [ 'download_from_google_storage', |
| 96 | '--no_resume', |
| 97 | '--platform=linux*', |
| 98 | '--no_auth', |
| 99 | '--bucket', 'chromium-gn', |
| 100 | '-s', 'pdfium/buildtools/linux64/gn.sha1', |
| 101 | ], |
| 102 | }, |
| 103 | { |
| 104 | # Downloads the current stable linux sysroot to build/linux/ if needed. |
| 105 | # This sysroot updates at about the same rate that the chrome build deps |
| 106 | # change. This script is a no-op except for linux users who are doing |
| 107 | # official chrome builds or cross compiling. |
| 108 | 'name': 'sysroot', |
| 109 | 'pattern': '.', |
| 110 | 'action': ['python', |
| 111 | 'pdfium/build/linux/sysroot_scripts/install-sysroot.py', |
| 112 | '--running-as-hook' |
| 113 | ], |
| 114 | }, |
Tom Sepez | 0c1bd7c | 2015-06-17 15:56:43 -0700 | [diff] [blame] | 115 | { |
| 116 | # A change to a .gyp, .gypi, or to GYP itself should run the generator. |
| 117 | 'name': 'gyp', |
| 118 | 'pattern': '.', |
dsinclair | c37b04e | 2016-04-19 11:04:01 -0700 | [diff] [blame] | 119 | 'action': ['python', 'pdfium/build_gyp/gyp_pdfium'], |
Tom Sepez | 0c1bd7c | 2015-06-17 15:56:43 -0700 | [diff] [blame] | 120 | }, |
dan sinclair | 0ac5250 | 2016-03-22 19:42:29 -0400 | [diff] [blame] | 121 | # Pull GN binaries. This needs to be before running GYP below. |
| 122 | { |
| 123 | 'name': 'gn_win', |
| 124 | 'pattern': '.', |
| 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 | { |
| 190 | # Pull clang if needed or requested via GYP_DEFINES. |
| 191 | 'name': 'clang', |
| 192 | 'pattern': '.', |
dsinclair | 685bb88 | 2016-04-20 07:32:39 -0700 | [diff] [blame^] | 193 | 'action': ['python', |
| 194 | 'pdfium/tools/clang/scripts/update.py', |
| 195 | '--if-needed' |
| 196 | ], |
Oliver Chang | afaa98e | 2015-10-21 15:29:47 -0700 | [diff] [blame] | 197 | }, |
Tom Sepez | e9446f8 | 2015-08-13 15:51:43 -0700 | [diff] [blame] | 198 | ] |