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 | |
| 7 | 'buildtools_revision': 'c2f259809d5ede3275df5ea0842f0431990c4f98', |
weili | b34d72b | 2016-04-18 12:24:36 -0700 | [diff] [blame^] | 8 | 'clang_revision': '87058e09f9c547eb5d00cb8ca666c6aec203a117', |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame] | 9 | 'cygwin_revision': 'c89e446b273697fadf3a10ff1007a97c0b7de6df', |
| 10 | 'gmock_revision': '29763965ab52f24565299976b936d1265cb6a271', |
| 11 | 'gtest_revision': '8245545b6dc9c4703e6496d1efd19e975ad2b038', |
thestig | f1accf6 | 2016-04-12 16:54:56 -0700 | [diff] [blame] | 12 | 'icu_revision': 'c291cde264469b20ca969ce8832088acb21e0c48', |
tsepez | 86a61dc | 2016-03-25 10:00:11 -0700 | [diff] [blame] | 13 | 'pdfium_tests_revision': 'eb87214cb2088536e96aae517f3a281818fbf5b0', |
Cary Clark | 029ea3e | 2016-03-23 15:31:37 -0400 | [diff] [blame] | 14 | 'skia_revision': '0a291c7b7eea1807bd58bdaa60c258fd0ebeb257', |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame] | 15 | 'trace_event_revision': 'd83d44b13d07c2fd0a40101a7deef9b93b841732', |
thestig | fa6382f | 2016-04-12 11:29:28 -0700 | [diff] [blame] | 16 | 'v8_revision': '47bcec782b752ba411bd8bba6e390d1cc1c3226e', |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame] | 17 | |
| 18 | } |
| 19 | |
Aneesh Mulye | 2ee9c3a | 2014-08-06 18:11:02 -0700 | [diff] [blame] | 20 | deps = { |
John Abd-El-Malek | fe45372 | 2014-10-16 15:32:26 -0700 | [diff] [blame] | 21 | "build/gyp": |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame] | 22 | Var('chromium_git') + "/external/gyp", |
Aneesh Mulye | 2ee9c3a | 2014-08-06 18:11:02 -0700 | [diff] [blame] | 23 | |
Tom Sepez | 4c0e275 | 2015-06-05 13:46:08 -0700 | [diff] [blame] | 24 | "buildtools": |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame] | 25 | Var('chromium_git') + "/chromium/buildtools.git@" + Var('buildtools_revision'), |
Tom Sepez | 4c0e275 | 2015-06-05 13:46:08 -0700 | [diff] [blame] | 26 | |
Tom Sepez | 9519ab2 | 2015-03-16 15:27:19 -0700 | [diff] [blame] | 27 | "testing/corpus": |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame] | 28 | Var('pdfium_git') + "/pdfium_tests@" + Var('pdfium_tests_revision'), |
Tom Sepez | 9519ab2 | 2015-03-16 15:27:19 -0700 | [diff] [blame] | 29 | |
Tom Sepez | a310e00 | 2015-02-27 13:03:07 -0800 | [diff] [blame] | 30 | "testing/gmock": |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame] | 31 | Var('chromium_git') + "/external/googlemock.git@" + Var('gmock_revision'), |
Tom Sepez | a310e00 | 2015-02-27 13:03:07 -0800 | [diff] [blame] | 32 | |
Tom Sepez | 22ee248 | 2015-01-07 10:04:16 -0800 | [diff] [blame] | 33 | "testing/gtest": |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame] | 34 | Var('chromium_git') + "/external/googletest.git@" + Var('gtest_revision'), |
| 35 | |
| 36 | "third_party/skia": |
| 37 | Var('chromium_git') + '/skia.git' + '@' + Var('skia_revision'), |
Tom Sepez | 22ee248 | 2015-01-07 10:04:16 -0800 | [diff] [blame] | 38 | |
Oliver Chang | afaa98e | 2015-10-21 15:29:47 -0700 | [diff] [blame] | 39 | "tools/clang": |
weili | b34d72b | 2016-04-18 12:24:36 -0700 | [diff] [blame^] | 40 | Var('chromium_git') + "/chromium/src/tools/clang@" + Var('clang_revision'), |
Oliver Chang | afaa98e | 2015-10-21 15:29:47 -0700 | [diff] [blame] | 41 | |
John Abd-El-Malek | fe45372 | 2014-10-16 15:32:26 -0700 | [diff] [blame] | 42 | "v8": |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame] | 43 | Var('chromium_git') + "/v8/v8.git@" + Var('v8_revision'), |
Lei Zhang | 0ef109f | 2016-01-11 12:24:16 -0800 | [diff] [blame] | 44 | |
| 45 | "v8/base/trace_event/common": |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame] | 46 | 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] | 47 | |
John Abd-El-Malek | fe45372 | 2014-10-16 15:32:26 -0700 | [diff] [blame] | 48 | "v8/third_party/icu": |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame] | 49 | Var('chromium_git') + "/chromium/deps/icu.git@" + Var('icu_revision'), |
Aneesh Mulye | 2ee9c3a | 2014-08-06 18:11:02 -0700 | [diff] [blame] | 50 | } |
| 51 | |
| 52 | deps_os = { |
| 53 | "win": { |
John Abd-El-Malek | fe45372 | 2014-10-16 15:32:26 -0700 | [diff] [blame] | 54 | "v8/third_party/cygwin": |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame] | 55 | Var('chromium_git') + "/chromium/deps/cygwin@" + Var('cygwin_revision'), |
Aneesh Mulye | 2ee9c3a | 2014-08-06 18:11:02 -0700 | [diff] [blame] | 56 | }, |
| 57 | } |
Tom Sepez | 4c0e275 | 2015-06-05 13:46:08 -0700 | [diff] [blame] | 58 | |
| 59 | include_rules = [ |
Lei Zhang | 8fec3e4 | 2015-11-04 15:32:02 -0800 | [diff] [blame] | 60 | # Basic stuff that everyone can use. |
| 61 | # Note: public is not here because core cannot depend on public. |
Tom Sepez | 0c1bd7c | 2015-06-17 15:56:43 -0700 | [diff] [blame] | 62 | '+testing', |
| 63 | '+third_party/base', |
Tom Sepez | 4c0e275 | 2015-06-05 13:46:08 -0700 | [diff] [blame] | 64 | ] |
Tom Sepez | 0c1bd7c | 2015-06-17 15:56:43 -0700 | [diff] [blame] | 65 | |
| 66 | hooks = [ |
| 67 | { |
| 68 | # A change to a .gyp, .gypi, or to GYP itself should run the generator. |
| 69 | 'name': 'gyp', |
| 70 | 'pattern': '.', |
Oliver Chang | 5a21e14 | 2015-10-21 15:19:20 -0700 | [diff] [blame] | 71 | 'action': ['python', 'pdfium/build/gyp_pdfium'], |
Tom Sepez | 0c1bd7c | 2015-06-17 15:56:43 -0700 | [diff] [blame] | 72 | }, |
dan sinclair | 0ac5250 | 2016-03-22 19:42:29 -0400 | [diff] [blame] | 73 | # Pull GN binaries. This needs to be before running GYP below. |
| 74 | { |
| 75 | 'name': 'gn_win', |
| 76 | 'pattern': '.', |
| 77 | 'action': [ 'download_from_google_storage', |
| 78 | '--no_resume', |
| 79 | '--platform=win32', |
| 80 | '--no_auth', |
| 81 | '--bucket', 'chromium-gn', |
| 82 | '-s', 'pdfium/buildtools/win/gn.exe.sha1', |
| 83 | ], |
| 84 | }, |
| 85 | { |
| 86 | 'name': 'gn_mac', |
| 87 | 'pattern': '.', |
| 88 | 'action': [ 'download_from_google_storage', |
| 89 | '--no_resume', |
| 90 | '--platform=darwin', |
| 91 | '--no_auth', |
| 92 | '--bucket', 'chromium-gn', |
| 93 | '-s', 'pdfium/buildtools/mac/gn.sha1', |
| 94 | ], |
| 95 | }, |
| 96 | { |
| 97 | 'name': 'gn_linux64', |
| 98 | 'pattern': '.', |
| 99 | 'action': [ 'download_from_google_storage', |
| 100 | '--no_resume', |
| 101 | '--platform=linux*', |
| 102 | '--no_auth', |
| 103 | '--bucket', 'chromium-gn', |
| 104 | '-s', 'pdfium/buildtools/linux64/gn.sha1', |
| 105 | ], |
| 106 | }, |
Tom Sepez | e9446f8 | 2015-08-13 15:51:43 -0700 | [diff] [blame] | 107 | # Pull clang-format binaries using checked-in hashes. |
| 108 | { |
| 109 | 'name': 'clang_format_win', |
| 110 | 'pattern': '.', |
| 111 | 'action': [ 'download_from_google_storage', |
| 112 | '--no_resume', |
| 113 | '--platform=win32', |
| 114 | '--no_auth', |
| 115 | '--bucket', 'chromium-clang-format', |
Oliver Chang | 5a21e14 | 2015-10-21 15:19:20 -0700 | [diff] [blame] | 116 | '-s', 'pdfium/buildtools/win/clang-format.exe.sha1', |
Tom Sepez | e9446f8 | 2015-08-13 15:51:43 -0700 | [diff] [blame] | 117 | ], |
| 118 | }, |
| 119 | { |
| 120 | 'name': 'clang_format_mac', |
| 121 | 'pattern': '.', |
| 122 | 'action': [ 'download_from_google_storage', |
| 123 | '--no_resume', |
| 124 | '--platform=darwin', |
| 125 | '--no_auth', |
| 126 | '--bucket', 'chromium-clang-format', |
Oliver Chang | 5a21e14 | 2015-10-21 15:19:20 -0700 | [diff] [blame] | 127 | '-s', 'pdfium/buildtools/mac/clang-format.sha1', |
Tom Sepez | e9446f8 | 2015-08-13 15:51:43 -0700 | [diff] [blame] | 128 | ], |
| 129 | }, |
| 130 | { |
| 131 | 'name': 'clang_format_linux', |
| 132 | 'pattern': '.', |
| 133 | 'action': [ 'download_from_google_storage', |
| 134 | '--no_resume', |
| 135 | '--platform=linux*', |
| 136 | '--no_auth', |
| 137 | '--bucket', 'chromium-clang-format', |
Oliver Chang | 5a21e14 | 2015-10-21 15:19:20 -0700 | [diff] [blame] | 138 | '-s', 'pdfium/buildtools/linux64/clang-format.sha1', |
Tom Sepez | e9446f8 | 2015-08-13 15:51:43 -0700 | [diff] [blame] | 139 | ], |
| 140 | }, |
Oliver Chang | afaa98e | 2015-10-21 15:29:47 -0700 | [diff] [blame] | 141 | { |
| 142 | # Pull clang if needed or requested via GYP_DEFINES. |
| 143 | 'name': 'clang', |
| 144 | 'pattern': '.', |
| 145 | 'action': ['python', 'pdfium/tools/clang/scripts/update.py', '--if-needed'], |
| 146 | }, |
Tom Sepez | e9446f8 | 2015-08-13 15:51:43 -0700 | [diff] [blame] | 147 | ] |