blob: 595da736ba8610dbb7c28a1eb3df0fb0330d6d1b [file] [log] [blame]
Lei Zhange4bf8342015-10-21 17:11:04 -07001use_relative_paths = True
2
Dan Sinclaira03c3432016-03-16 15:35:20 -04003vars = {
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',
thestigf1accf62016-04-12 16:54:56 -070011 'icu_revision': 'c291cde264469b20ca969ce8832088acb21e0c48',
tsepez86a61dc2016-03-25 10:00:11 -070012 'pdfium_tests_revision': 'eb87214cb2088536e96aae517f3a281818fbf5b0',
Cary Clark029ea3e2016-03-23 15:31:37 -040013 'skia_revision': '0a291c7b7eea1807bd58bdaa60c258fd0ebeb257',
Dan Sinclaira03c3432016-03-16 15:35:20 -040014 'trace_event_revision': 'd83d44b13d07c2fd0a40101a7deef9b93b841732',
thestigfa6382f2016-04-12 11:29:28 -070015 'v8_revision': '47bcec782b752ba411bd8bba6e390d1cc1c3226e',
Dan Sinclaira03c3432016-03-16 15:35:20 -040016
17}
18
Aneesh Mulye2ee9c3a2014-08-06 18:11:02 -070019deps = {
John Abd-El-Malekfe453722014-10-16 15:32:26 -070020 "build/gyp":
Dan Sinclaira03c3432016-03-16 15:35:20 -040021 Var('chromium_git') + "/external/gyp",
Aneesh Mulye2ee9c3a2014-08-06 18:11:02 -070022
Tom Sepez4c0e2752015-06-05 13:46:08 -070023 "buildtools":
Dan Sinclaira03c3432016-03-16 15:35:20 -040024 Var('chromium_git') + "/chromium/buildtools.git@" + Var('buildtools_revision'),
Tom Sepez4c0e2752015-06-05 13:46:08 -070025
Tom Sepez9519ab22015-03-16 15:27:19 -070026 "testing/corpus":
Dan Sinclaira03c3432016-03-16 15:35:20 -040027 Var('pdfium_git') + "/pdfium_tests@" + Var('pdfium_tests_revision'),
Tom Sepez9519ab22015-03-16 15:27:19 -070028
Tom Sepeza310e002015-02-27 13:03:07 -080029 "testing/gmock":
Dan Sinclaira03c3432016-03-16 15:35:20 -040030 Var('chromium_git') + "/external/googlemock.git@" + Var('gmock_revision'),
Tom Sepeza310e002015-02-27 13:03:07 -080031
Tom Sepez22ee2482015-01-07 10:04:16 -080032 "testing/gtest":
Dan Sinclaira03c3432016-03-16 15:35:20 -040033 Var('chromium_git') + "/external/googletest.git@" + Var('gtest_revision'),
34
35 "third_party/skia":
36 Var('chromium_git') + '/skia.git' + '@' + Var('skia_revision'),
Tom Sepez22ee2482015-01-07 10:04:16 -080037
Oliver Changafaa98e2015-10-21 15:29:47 -070038 "tools/clang":
Dan Sinclaira03c3432016-03-16 15:35:20 -040039 Var('chromium_git') + "/chromium/src/tools/clang",
Oliver Changafaa98e2015-10-21 15:29:47 -070040
John Abd-El-Malekfe453722014-10-16 15:32:26 -070041 "v8":
Dan Sinclaira03c3432016-03-16 15:35:20 -040042 Var('chromium_git') + "/v8/v8.git@" + Var('v8_revision'),
Lei Zhang0ef109f2016-01-11 12:24:16 -080043
44 "v8/base/trace_event/common":
Dan Sinclaira03c3432016-03-16 15:35:20 -040045 Var('chromium_git') + "/chromium/src/base/trace_event/common.git@" + Var('trace_event_revision'),
Aneesh Mulye2ee9c3a2014-08-06 18:11:02 -070046
John Abd-El-Malekfe453722014-10-16 15:32:26 -070047 "v8/third_party/icu":
Dan Sinclaira03c3432016-03-16 15:35:20 -040048 Var('chromium_git') + "/chromium/deps/icu.git@" + Var('icu_revision'),
Aneesh Mulye2ee9c3a2014-08-06 18:11:02 -070049}
50
51deps_os = {
52 "win": {
John Abd-El-Malekfe453722014-10-16 15:32:26 -070053 "v8/third_party/cygwin":
Dan Sinclaira03c3432016-03-16 15:35:20 -040054 Var('chromium_git') + "/chromium/deps/cygwin@" + Var('cygwin_revision'),
Aneesh Mulye2ee9c3a2014-08-06 18:11:02 -070055 },
56}
Tom Sepez4c0e2752015-06-05 13:46:08 -070057
58include_rules = [
Lei Zhang8fec3e42015-11-04 15:32:02 -080059 # Basic stuff that everyone can use.
60 # Note: public is not here because core cannot depend on public.
Tom Sepez0c1bd7c2015-06-17 15:56:43 -070061 '+testing',
62 '+third_party/base',
Tom Sepez4c0e2752015-06-05 13:46:08 -070063]
Tom Sepez0c1bd7c2015-06-17 15:56:43 -070064
65hooks = [
66 {
67 # A change to a .gyp, .gypi, or to GYP itself should run the generator.
68 'name': 'gyp',
69 'pattern': '.',
Oliver Chang5a21e142015-10-21 15:19:20 -070070 'action': ['python', 'pdfium/build/gyp_pdfium'],
Tom Sepez0c1bd7c2015-06-17 15:56:43 -070071 },
dan sinclair0ac52502016-03-22 19:42:29 -040072 # Pull GN binaries. This needs to be before running GYP below.
73 {
74 'name': 'gn_win',
75 'pattern': '.',
76 'action': [ 'download_from_google_storage',
77 '--no_resume',
78 '--platform=win32',
79 '--no_auth',
80 '--bucket', 'chromium-gn',
81 '-s', 'pdfium/buildtools/win/gn.exe.sha1',
82 ],
83 },
84 {
85 'name': 'gn_mac',
86 'pattern': '.',
87 'action': [ 'download_from_google_storage',
88 '--no_resume',
89 '--platform=darwin',
90 '--no_auth',
91 '--bucket', 'chromium-gn',
92 '-s', 'pdfium/buildtools/mac/gn.sha1',
93 ],
94 },
95 {
96 'name': 'gn_linux64',
97 'pattern': '.',
98 'action': [ 'download_from_google_storage',
99 '--no_resume',
100 '--platform=linux*',
101 '--no_auth',
102 '--bucket', 'chromium-gn',
103 '-s', 'pdfium/buildtools/linux64/gn.sha1',
104 ],
105 },
Tom Sepeze9446f82015-08-13 15:51:43 -0700106 # Pull clang-format binaries using checked-in hashes.
107 {
108 'name': 'clang_format_win',
109 'pattern': '.',
110 'action': [ 'download_from_google_storage',
111 '--no_resume',
112 '--platform=win32',
113 '--no_auth',
114 '--bucket', 'chromium-clang-format',
Oliver Chang5a21e142015-10-21 15:19:20 -0700115 '-s', 'pdfium/buildtools/win/clang-format.exe.sha1',
Tom Sepeze9446f82015-08-13 15:51:43 -0700116 ],
117 },
118 {
119 'name': 'clang_format_mac',
120 'pattern': '.',
121 'action': [ 'download_from_google_storage',
122 '--no_resume',
123 '--platform=darwin',
124 '--no_auth',
125 '--bucket', 'chromium-clang-format',
Oliver Chang5a21e142015-10-21 15:19:20 -0700126 '-s', 'pdfium/buildtools/mac/clang-format.sha1',
Tom Sepeze9446f82015-08-13 15:51:43 -0700127 ],
128 },
129 {
130 'name': 'clang_format_linux',
131 'pattern': '.',
132 'action': [ 'download_from_google_storage',
133 '--no_resume',
134 '--platform=linux*',
135 '--no_auth',
136 '--bucket', 'chromium-clang-format',
Oliver Chang5a21e142015-10-21 15:19:20 -0700137 '-s', 'pdfium/buildtools/linux64/clang-format.sha1',
Tom Sepeze9446f82015-08-13 15:51:43 -0700138 ],
139 },
Oliver Changafaa98e2015-10-21 15:29:47 -0700140 {
141 # Pull clang if needed or requested via GYP_DEFINES.
142 'name': 'clang',
143 'pattern': '.',
144 'action': ['python', 'pdfium/tools/clang/scripts/update.py', '--if-needed'],
145 },
Tom Sepeze9446f82015-08-13 15:51:43 -0700146]