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', |
| 8 | 'cygwin_revision': 'c89e446b273697fadf3a10ff1007a97c0b7de6df', |
| 9 | 'gmock_revision': '29763965ab52f24565299976b936d1265cb6a271', |
| 10 | 'gtest_revision': '8245545b6dc9c4703e6496d1efd19e975ad2b038', |
| 11 | 'icu_revision': '8d342a405be5ae8aacb1e16f0bc31c3a4fbf26a2', |
| 12 | 'pdfium_tests_revision': 'bafb069353f96d441c6a37786d18cd9f5407937f', |
| 13 | 'skia_revision': 'ed854fb897fa134f2f64738a75293502fdcf1af2', |
| 14 | 'trace_event_revision': 'd83d44b13d07c2fd0a40101a7deef9b93b841732', |
| 15 | 'v8_revision': '3c3d7e7be80f45eeea0dc74a71d7552e2afc2985', |
| 16 | |
| 17 | } |
| 18 | |
Aneesh Mulye | 2ee9c3a | 2014-08-06 18:11:02 -0700 | [diff] [blame] | 19 | deps = { |
John Abd-El-Malek | fe45372 | 2014-10-16 15:32:26 -0700 | [diff] [blame] | 20 | "build/gyp": |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame^] | 21 | Var('chromium_git') + "/external/gyp", |
Aneesh Mulye | 2ee9c3a | 2014-08-06 18:11:02 -0700 | [diff] [blame] | 22 | |
Tom Sepez | 4c0e275 | 2015-06-05 13:46:08 -0700 | [diff] [blame] | 23 | "buildtools": |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame^] | 24 | Var('chromium_git') + "/chromium/buildtools.git@" + Var('buildtools_revision'), |
Tom Sepez | 4c0e275 | 2015-06-05 13:46:08 -0700 | [diff] [blame] | 25 | |
Tom Sepez | 9519ab2 | 2015-03-16 15:27:19 -0700 | [diff] [blame] | 26 | "testing/corpus": |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame^] | 27 | Var('pdfium_git') + "/pdfium_tests@" + Var('pdfium_tests_revision'), |
Tom Sepez | 9519ab2 | 2015-03-16 15:27:19 -0700 | [diff] [blame] | 28 | |
Tom Sepez | a310e00 | 2015-02-27 13:03:07 -0800 | [diff] [blame] | 29 | "testing/gmock": |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame^] | 30 | Var('chromium_git') + "/external/googlemock.git@" + Var('gmock_revision'), |
Tom Sepez | a310e00 | 2015-02-27 13:03:07 -0800 | [diff] [blame] | 31 | |
Tom Sepez | 22ee248 | 2015-01-07 10:04:16 -0800 | [diff] [blame] | 32 | "testing/gtest": |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame^] | 33 | Var('chromium_git') + "/external/googletest.git@" + Var('gtest_revision'), |
| 34 | |
| 35 | "third_party/skia": |
| 36 | Var('chromium_git') + '/skia.git' + '@' + Var('skia_revision'), |
Tom Sepez | 22ee248 | 2015-01-07 10:04:16 -0800 | [diff] [blame] | 37 | |
Oliver Chang | afaa98e | 2015-10-21 15:29:47 -0700 | [diff] [blame] | 38 | "tools/clang": |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame^] | 39 | Var('chromium_git') + "/chromium/src/tools/clang", |
Oliver Chang | afaa98e | 2015-10-21 15:29:47 -0700 | [diff] [blame] | 40 | |
John Abd-El-Malek | fe45372 | 2014-10-16 15:32:26 -0700 | [diff] [blame] | 41 | "v8": |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame^] | 42 | Var('chromium_git') + "/v8/v8.git@" + Var('v8_revision'), |
Lei Zhang | 0ef109f | 2016-01-11 12:24:16 -0800 | [diff] [blame] | 43 | |
| 44 | "v8/base/trace_event/common": |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame^] | 45 | 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] | 46 | |
John Abd-El-Malek | fe45372 | 2014-10-16 15:32:26 -0700 | [diff] [blame] | 47 | "v8/third_party/icu": |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame^] | 48 | Var('chromium_git') + "/chromium/deps/icu.git@" + Var('icu_revision'), |
Aneesh Mulye | 2ee9c3a | 2014-08-06 18:11:02 -0700 | [diff] [blame] | 49 | } |
| 50 | |
| 51 | deps_os = { |
| 52 | "win": { |
John Abd-El-Malek | fe45372 | 2014-10-16 15:32:26 -0700 | [diff] [blame] | 53 | "v8/third_party/cygwin": |
Dan Sinclair | a03c343 | 2016-03-16 15:35:20 -0400 | [diff] [blame^] | 54 | Var('chromium_git') + "/chromium/deps/cygwin@" + Var('cygwin_revision'), |
Aneesh Mulye | 2ee9c3a | 2014-08-06 18:11:02 -0700 | [diff] [blame] | 55 | }, |
| 56 | } |
Tom Sepez | 4c0e275 | 2015-06-05 13:46:08 -0700 | [diff] [blame] | 57 | |
| 58 | include_rules = [ |
Lei Zhang | 8fec3e4 | 2015-11-04 15:32:02 -0800 | [diff] [blame] | 59 | # Basic stuff that everyone can use. |
| 60 | # Note: public is not here because core cannot depend on public. |
Tom Sepez | 0c1bd7c | 2015-06-17 15:56:43 -0700 | [diff] [blame] | 61 | '+testing', |
| 62 | '+third_party/base', |
Tom Sepez | 4c0e275 | 2015-06-05 13:46:08 -0700 | [diff] [blame] | 63 | ] |
Tom Sepez | 0c1bd7c | 2015-06-17 15:56:43 -0700 | [diff] [blame] | 64 | |
| 65 | hooks = [ |
| 66 | { |
| 67 | # A change to a .gyp, .gypi, or to GYP itself should run the generator. |
| 68 | 'name': 'gyp', |
| 69 | 'pattern': '.', |
Oliver Chang | 5a21e14 | 2015-10-21 15:19:20 -0700 | [diff] [blame] | 70 | 'action': ['python', 'pdfium/build/gyp_pdfium'], |
Tom Sepez | 0c1bd7c | 2015-06-17 15:56:43 -0700 | [diff] [blame] | 71 | }, |
Tom Sepez | e9446f8 | 2015-08-13 15:51:43 -0700 | [diff] [blame] | 72 | # Pull clang-format binaries using checked-in hashes. |
| 73 | { |
| 74 | 'name': 'clang_format_win', |
| 75 | 'pattern': '.', |
| 76 | 'action': [ 'download_from_google_storage', |
| 77 | '--no_resume', |
| 78 | '--platform=win32', |
| 79 | '--no_auth', |
| 80 | '--bucket', 'chromium-clang-format', |
Oliver Chang | 5a21e14 | 2015-10-21 15:19:20 -0700 | [diff] [blame] | 81 | '-s', 'pdfium/buildtools/win/clang-format.exe.sha1', |
Tom Sepez | e9446f8 | 2015-08-13 15:51:43 -0700 | [diff] [blame] | 82 | ], |
| 83 | }, |
| 84 | { |
| 85 | 'name': 'clang_format_mac', |
| 86 | 'pattern': '.', |
| 87 | 'action': [ 'download_from_google_storage', |
| 88 | '--no_resume', |
| 89 | '--platform=darwin', |
| 90 | '--no_auth', |
| 91 | '--bucket', 'chromium-clang-format', |
Oliver Chang | 5a21e14 | 2015-10-21 15:19:20 -0700 | [diff] [blame] | 92 | '-s', 'pdfium/buildtools/mac/clang-format.sha1', |
Tom Sepez | e9446f8 | 2015-08-13 15:51:43 -0700 | [diff] [blame] | 93 | ], |
| 94 | }, |
| 95 | { |
| 96 | 'name': 'clang_format_linux', |
| 97 | 'pattern': '.', |
| 98 | 'action': [ 'download_from_google_storage', |
| 99 | '--no_resume', |
| 100 | '--platform=linux*', |
| 101 | '--no_auth', |
| 102 | '--bucket', 'chromium-clang-format', |
Oliver Chang | 5a21e14 | 2015-10-21 15:19:20 -0700 | [diff] [blame] | 103 | '-s', 'pdfium/buildtools/linux64/clang-format.sha1', |
Tom Sepez | e9446f8 | 2015-08-13 15:51:43 -0700 | [diff] [blame] | 104 | ], |
| 105 | }, |
Oliver Chang | afaa98e | 2015-10-21 15:29:47 -0700 | [diff] [blame] | 106 | { |
| 107 | # Pull clang if needed or requested via GYP_DEFINES. |
| 108 | 'name': 'clang', |
| 109 | 'pattern': '.', |
| 110 | 'action': ['python', 'pdfium/tools/clang/scripts/update.py', '--if-needed'], |
| 111 | }, |
Tom Sepez | e9446f8 | 2015-08-13 15:51:43 -0700 | [diff] [blame] | 112 | ] |