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