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 | 253186c | 2016-07-01 19:11:30 -0700 | [diff] [blame] | 8 | 'build_revision': '76d9f8b4fcae07fb82f28295468cf92bade935bd', |
thestig | 2798a7a | 2016-07-01 20:26:54 -0700 | [diff] [blame] | 9 | 'buildtools_revision': 'db6179b29f90d28026b0cb23ef71d56ec31b8bd6', |
| 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', |
jaepark | c38de11 | 2016-08-22 17:54:56 -0700 | [diff] [blame] | 17 | 'pdfium_tests_revision': 'afbac944ba4b41252e4bd16372f27806bc0ed924', |
caryclark | 3421d2b | 2016-08-16 06:27:32 -0700 | [diff] [blame] | 18 | 'skia_revision': '36c38cbb29744e0b5390a38367e47c0c74287c2d', |
dsinclair | fb96900 | 2016-05-31 12:55:32 -0700 | [diff] [blame] | 19 | 'tools_memory_revision': '427f10475e1a8d72424c29d00bf689122b738e5d', |
jochen | 9e077d2 | 2016-06-09 02:51:13 -0700 | [diff] [blame] | 20 | 'trace_event_revision': '54b8455be9505c2cb0cf5c26bb86739c236471aa', |
jbudorick | 3ecdbff | 2016-07-08 16:36:06 -0700 | [diff] [blame] | 21 | 'v8_revision': '75f10f91b1b0b392d2a29a7a480bf079db6f43fa', |
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 = { |
dsinclair | 685bb88 | 2016-04-20 07:32:39 -0700 | [diff] [blame] | 25 | "build": |
| 26 | Var('chromium_git') + "/chromium/src/build.git@" + Var('build_revision'), |
Aneesh Mulye | 2ee9c3a | 2014-08-06 18:11:02 -0700 | [diff] [blame] | 27 | |
Tom Sepez | 4c0e275 | 2015-06-05 13:46:08 -0700 | [diff] [blame] | 28 | "buildtools": |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame] | 29 | Var('chromium_git') + "/chromium/buildtools.git@" + Var('buildtools_revision'), |
Tom Sepez | 4c0e275 | 2015-06-05 13:46:08 -0700 | [diff] [blame] | 30 | |
Tom Sepez | 9519ab2 | 2015-03-16 15:27:19 -0700 | [diff] [blame] | 31 | "testing/corpus": |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame] | 32 | Var('pdfium_git') + "/pdfium_tests@" + Var('pdfium_tests_revision'), |
Tom Sepez | 9519ab2 | 2015-03-16 15:27:19 -0700 | [diff] [blame] | 33 | |
Tom Sepez | a310e00 | 2015-02-27 13:03:07 -0800 | [diff] [blame] | 34 | "testing/gmock": |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame] | 35 | Var('chromium_git') + "/external/googlemock.git@" + Var('gmock_revision'), |
Tom Sepez | a310e00 | 2015-02-27 13:03:07 -0800 | [diff] [blame] | 36 | |
Tom Sepez | 22ee248 | 2015-01-07 10:04:16 -0800 | [diff] [blame] | 37 | "testing/gtest": |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame] | 38 | Var('chromium_git') + "/external/googletest.git@" + Var('gtest_revision'), |
| 39 | |
dsinclair | 685bb88 | 2016-04-20 07:32:39 -0700 | [diff] [blame] | 40 | "third_party/icu": |
| 41 | Var('chromium_git') + "/chromium/deps/icu.git@" + Var('icu_revision'), |
| 42 | |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame] | 43 | "third_party/skia": |
| 44 | Var('chromium_git') + '/skia.git' + '@' + Var('skia_revision'), |
Tom Sepez | 22ee248 | 2015-01-07 10:04:16 -0800 | [diff] [blame] | 45 | |
Oliver Chang | afaa98e | 2015-10-21 15:29:47 -0700 | [diff] [blame] | 46 | "tools/clang": |
weili | b34d72b | 2016-04-18 12:24:36 -0700 | [diff] [blame] | 47 | Var('chromium_git') + "/chromium/src/tools/clang@" + Var('clang_revision'), |
Oliver Chang | afaa98e | 2015-10-21 15:29:47 -0700 | [diff] [blame] | 48 | |
dsinclair | 11988d7 | 2016-05-04 10:17:00 -0700 | [diff] [blame] | 49 | "tools/generate_library_loader": |
| 50 | Var('chromium_git') + "/chromium/src/tools/generate_library_loader@" + |
| 51 | Var('gen_library_loader_revision'), |
| 52 | |
dsinclair | 685bb88 | 2016-04-20 07:32:39 -0700 | [diff] [blame] | 53 | "tools/gyp": |
thestig | 2798a7a | 2016-07-01 20:26:54 -0700 | [diff] [blame] | 54 | Var('chromium_git') + '/external/gyp.git' + '@' + 'c61b0b35c8396bfd59efc6cfc11401d912b0f510', |
dsinclair | 685bb88 | 2016-04-20 07:32:39 -0700 | [diff] [blame] | 55 | |
dsinclair | fb96900 | 2016-05-31 12:55:32 -0700 | [diff] [blame] | 56 | "tools/memory": |
| 57 | Var('chromium_git') + "/chromium/src/tools/memory@" + |
| 58 | Var('tools_memory_revision'), |
| 59 | |
John Abd-El-Malek | fe45372 | 2014-10-16 15:32:26 -0700 | [diff] [blame] | 60 | "v8": |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame] | 61 | Var('chromium_git') + "/v8/v8.git@" + Var('v8_revision'), |
Lei Zhang | 0ef109f | 2016-01-11 12:24:16 -0800 | [diff] [blame] | 62 | |
| 63 | "v8/base/trace_event/common": |
dsinclair | fb96900 | 2016-05-31 12:55:32 -0700 | [diff] [blame] | 64 | Var('chromium_git') + "/chromium/src/base/trace_event/common.git@" + |
| 65 | Var('trace_event_revision'), |
Aneesh Mulye | 2ee9c3a | 2014-08-06 18:11:02 -0700 | [diff] [blame] | 66 | } |
| 67 | |
| 68 | deps_os = { |
jbudorick | 7f3a15f | 2016-06-10 06:28:40 -0700 | [diff] [blame] | 69 | "android": { |
| 70 | "third_party/android_ndk": |
| 71 | Var('chromium_git') + "/android_ndk.git@" + Var('android_ndk_revision'), |
| 72 | "third_party/catapult": |
| 73 | Var('chromium_git') + "/external/github.com/catapult-project/catapult.git@" + Var('catapult_revision'), |
| 74 | }, |
Aneesh Mulye | 2ee9c3a | 2014-08-06 18:11:02 -0700 | [diff] [blame] | 75 | "win": { |
John Abd-El-Malek | fe45372 | 2014-10-16 15:32:26 -0700 | [diff] [blame] | 76 | "v8/third_party/cygwin": |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame] | 77 | Var('chromium_git') + "/chromium/deps/cygwin@" + Var('cygwin_revision'), |
Aneesh Mulye | 2ee9c3a | 2014-08-06 18:11:02 -0700 | [diff] [blame] | 78 | }, |
| 79 | } |
Tom Sepez | 4c0e275 | 2015-06-05 13:46:08 -0700 | [diff] [blame] | 80 | |
| 81 | include_rules = [ |
Lei Zhang | 8fec3e4 | 2015-11-04 15:32:02 -0800 | [diff] [blame] | 82 | # Basic stuff that everyone can use. |
| 83 | # Note: public is not here because core cannot depend on public. |
Tom Sepez | 0c1bd7c | 2015-06-17 15:56:43 -0700 | [diff] [blame] | 84 | '+testing', |
| 85 | '+third_party/base', |
Tom Sepez | 4c0e275 | 2015-06-05 13:46:08 -0700 | [diff] [blame] | 86 | ] |
Tom Sepez | 0c1bd7c | 2015-06-17 15:56:43 -0700 | [diff] [blame] | 87 | |
weili | 90c964f | 2016-04-22 15:25:14 -0700 | [diff] [blame] | 88 | specific_include_rules = { |
| 89 | # Allow embedder tests to use public APIs. |
| 90 | "(.*embeddertest\.cpp)": [ |
| 91 | "+public", |
| 92 | ] |
| 93 | } |
| 94 | |
Tom Sepez | 0c1bd7c | 2015-06-17 15:56:43 -0700 | [diff] [blame] | 95 | hooks = [ |
dsinclair | 685bb88 | 2016-04-20 07:32:39 -0700 | [diff] [blame] | 96 | # Pull GN binaries. This needs to be before running GYP below. |
| 97 | { |
dsinclair | b4e8708 | 2016-04-20 12:18:16 -0700 | [diff] [blame] | 98 | 'name': 'gn_win', |
dsinclair | 685bb88 | 2016-04-20 07:32:39 -0700 | [diff] [blame] | 99 | 'action': [ 'download_from_google_storage', |
| 100 | '--no_resume', |
| 101 | '--platform=win32', |
| 102 | '--no_auth', |
| 103 | '--bucket', 'chromium-gn', |
| 104 | '-s', 'pdfium/buildtools/win/gn.exe.sha1', |
| 105 | ], |
| 106 | }, |
| 107 | { |
| 108 | 'name': 'gn_mac', |
| 109 | 'pattern': '.', |
| 110 | 'action': [ 'download_from_google_storage', |
| 111 | '--no_resume', |
| 112 | '--platform=darwin', |
| 113 | '--no_auth', |
| 114 | '--bucket', 'chromium-gn', |
| 115 | '-s', 'pdfium/buildtools/mac/gn.sha1', |
| 116 | ], |
| 117 | }, |
| 118 | { |
| 119 | 'name': 'gn_linux64', |
| 120 | 'pattern': '.', |
| 121 | 'action': [ 'download_from_google_storage', |
| 122 | '--no_resume', |
| 123 | '--platform=linux*', |
| 124 | '--no_auth', |
| 125 | '--bucket', 'chromium-gn', |
| 126 | '-s', 'pdfium/buildtools/linux64/gn.sha1', |
| 127 | ], |
| 128 | }, |
| 129 | { |
| 130 | # Downloads the current stable linux sysroot to build/linux/ if needed. |
| 131 | # This sysroot updates at about the same rate that the chrome build deps |
| 132 | # change. This script is a no-op except for linux users who are doing |
| 133 | # official chrome builds or cross compiling. |
| 134 | 'name': 'sysroot', |
| 135 | 'pattern': '.', |
| 136 | 'action': ['python', |
| 137 | 'pdfium/build/linux/sysroot_scripts/install-sysroot.py', |
| 138 | '--running-as-hook' |
| 139 | ], |
| 140 | }, |
Tom Sepez | 0c1bd7c | 2015-06-17 15:56:43 -0700 | [diff] [blame] | 141 | { |
| 142 | # A change to a .gyp, .gypi, or to GYP itself should run the generator. |
| 143 | 'name': 'gyp', |
| 144 | 'pattern': '.', |
dsinclair | c37b04e | 2016-04-19 11:04:01 -0700 | [diff] [blame] | 145 | 'action': ['python', 'pdfium/build_gyp/gyp_pdfium'], |
Tom Sepez | 0c1bd7c | 2015-06-17 15:56:43 -0700 | [diff] [blame] | 146 | }, |
Tom Sepez | e9446f8 | 2015-08-13 15:51:43 -0700 | [diff] [blame] | 147 | # Pull clang-format binaries using checked-in hashes. |
| 148 | { |
| 149 | 'name': 'clang_format_win', |
| 150 | 'pattern': '.', |
| 151 | 'action': [ 'download_from_google_storage', |
| 152 | '--no_resume', |
| 153 | '--platform=win32', |
| 154 | '--no_auth', |
| 155 | '--bucket', 'chromium-clang-format', |
Oliver Chang | 5a21e14 | 2015-10-21 15:19:20 -0700 | [diff] [blame] | 156 | '-s', 'pdfium/buildtools/win/clang-format.exe.sha1', |
Tom Sepez | e9446f8 | 2015-08-13 15:51:43 -0700 | [diff] [blame] | 157 | ], |
| 158 | }, |
| 159 | { |
| 160 | 'name': 'clang_format_mac', |
| 161 | 'pattern': '.', |
| 162 | 'action': [ 'download_from_google_storage', |
| 163 | '--no_resume', |
| 164 | '--platform=darwin', |
| 165 | '--no_auth', |
| 166 | '--bucket', 'chromium-clang-format', |
Oliver Chang | 5a21e14 | 2015-10-21 15:19:20 -0700 | [diff] [blame] | 167 | '-s', 'pdfium/buildtools/mac/clang-format.sha1', |
Tom Sepez | e9446f8 | 2015-08-13 15:51:43 -0700 | [diff] [blame] | 168 | ], |
| 169 | }, |
| 170 | { |
| 171 | 'name': 'clang_format_linux', |
| 172 | 'pattern': '.', |
| 173 | 'action': [ 'download_from_google_storage', |
| 174 | '--no_resume', |
| 175 | '--platform=linux*', |
| 176 | '--no_auth', |
| 177 | '--bucket', 'chromium-clang-format', |
Oliver Chang | 5a21e14 | 2015-10-21 15:19:20 -0700 | [diff] [blame] | 178 | '-s', 'pdfium/buildtools/linux64/clang-format.sha1', |
Tom Sepez | e9446f8 | 2015-08-13 15:51:43 -0700 | [diff] [blame] | 179 | ], |
| 180 | }, |
Oliver Chang | afaa98e | 2015-10-21 15:29:47 -0700 | [diff] [blame] | 181 | { |
| 182 | # Pull clang if needed or requested via GYP_DEFINES. |
| 183 | 'name': 'clang', |
| 184 | 'pattern': '.', |
dsinclair | 685bb88 | 2016-04-20 07:32:39 -0700 | [diff] [blame] | 185 | 'action': ['python', |
| 186 | 'pdfium/tools/clang/scripts/update.py', |
| 187 | '--if-needed' |
| 188 | ], |
Oliver Chang | afaa98e | 2015-10-21 15:29:47 -0700 | [diff] [blame] | 189 | }, |
weili | 9a1b665 | 2016-04-28 15:26:45 -0700 | [diff] [blame] | 190 | { |
| 191 | # Update the Windows toolchain if necessary. |
| 192 | 'name': 'win_toolchain', |
| 193 | 'pattern': '.', |
weili | 5593bb8 | 2016-04-29 20:14:55 -0700 | [diff] [blame] | 194 | 'action': ['python', 'pdfium/build/vs_toolchain.py', 'update'], |
weili | 9a1b665 | 2016-04-28 15:26:45 -0700 | [diff] [blame] | 195 | }, |
Tom Sepez | e9446f8 | 2015-08-13 15:51:43 -0700 | [diff] [blame] | 196 | ] |