blob: ce09f59b2c05911f63888512a329fc35a822f991 [file] [log] [blame]
Lei Zhange4bf8342015-10-21 17:11:04 -07001use_relative_paths = True
2
Aneesh Mulye2ee9c3a2014-08-06 18:11:02 -07003deps = {
John Abd-El-Malekfe453722014-10-16 15:32:26 -07004 "build/gyp":
Aneesh Mulye2ee9c3a2014-08-06 18:11:02 -07005 "https://chromium.googlesource.com/external/gyp",
6
Tom Sepez4c0e2752015-06-05 13:46:08 -07007 "buildtools":
8 "https://chromium.googlesource.com/chromium/buildtools.git@46ce8cb60364e9e0b21a81136c7debdddfd063a8",
9
Tom Sepez9519ab22015-03-16 15:27:19 -070010 "testing/corpus":
Tom Sepez5bba2b62015-06-11 15:24:26 -070011 "https://pdfium.googlesource.com/pdfium_tests@4b9a1d593e5a101d034a4f1195174a22c179a42d",
Tom Sepez9519ab22015-03-16 15:27:19 -070012
Tom Sepeza310e002015-02-27 13:03:07 -080013 "testing/gmock":
14 "https://chromium.googlesource.com/external/googlemock.git@29763965ab52f24565299976b936d1265cb6a271",
15
Tom Sepez22ee2482015-01-07 10:04:16 -080016 "testing/gtest":
17 "https://chromium.googlesource.com/external/googletest.git@8245545b6dc9c4703e6496d1efd19e975ad2b038",
18
Oliver Changafaa98e2015-10-21 15:29:47 -070019 "tools/clang":
20 "https://chromium.googlesource.com/chromium/src/tools/clang",
21
John Abd-El-Malekfe453722014-10-16 15:32:26 -070022 "v8":
Tom Sepezbd7fabf2015-09-28 10:31:27 -070023 "https://chromium.googlesource.com/v8/v8.git@4d03c3aabad6517ff058124bb799ca6a4156e570",
Aneesh Mulye2ee9c3a2014-08-06 18:11:02 -070024
John Abd-El-Malekfe453722014-10-16 15:32:26 -070025 "v8/third_party/icu":
Aneesh Mulye2ee9c3a2014-08-06 18:11:02 -070026 "https://chromium.googlesource.com/chromium/deps/icu46",
27}
28
29deps_os = {
30 "win": {
John Abd-El-Malekfe453722014-10-16 15:32:26 -070031 "v8/third_party/cygwin":
Aneesh Mulye2ee9c3a2014-08-06 18:11:02 -070032 "https://chromium.googlesource.com/chromium/deps/cygwin@c89e446b273697fadf3a10ff1007a97c0b7de6df",
33 },
34}
Tom Sepez4c0e2752015-06-05 13:46:08 -070035
36include_rules = [
Tom Sepez0c1bd7c2015-06-17 15:56:43 -070037 '+testing',
38 '+third_party/base',
Tom Sepez4c0e2752015-06-05 13:46:08 -070039]
Tom Sepez0c1bd7c2015-06-17 15:56:43 -070040
41hooks = [
42 {
43 # A change to a .gyp, .gypi, or to GYP itself should run the generator.
44 'name': 'gyp',
45 'pattern': '.',
Oliver Chang5a21e142015-10-21 15:19:20 -070046 'action': ['python', 'pdfium/build/gyp_pdfium'],
Tom Sepez0c1bd7c2015-06-17 15:56:43 -070047 },
Tom Sepeze9446f82015-08-13 15:51:43 -070048 # Pull clang-format binaries using checked-in hashes.
49 {
50 'name': 'clang_format_win',
51 'pattern': '.',
52 'action': [ 'download_from_google_storage',
53 '--no_resume',
54 '--platform=win32',
55 '--no_auth',
56 '--bucket', 'chromium-clang-format',
Oliver Chang5a21e142015-10-21 15:19:20 -070057 '-s', 'pdfium/buildtools/win/clang-format.exe.sha1',
Tom Sepeze9446f82015-08-13 15:51:43 -070058 ],
59 },
60 {
61 'name': 'clang_format_mac',
62 'pattern': '.',
63 'action': [ 'download_from_google_storage',
64 '--no_resume',
65 '--platform=darwin',
66 '--no_auth',
67 '--bucket', 'chromium-clang-format',
Oliver Chang5a21e142015-10-21 15:19:20 -070068 '-s', 'pdfium/buildtools/mac/clang-format.sha1',
Tom Sepeze9446f82015-08-13 15:51:43 -070069 ],
70 },
71 {
72 'name': 'clang_format_linux',
73 'pattern': '.',
74 'action': [ 'download_from_google_storage',
75 '--no_resume',
76 '--platform=linux*',
77 '--no_auth',
78 '--bucket', 'chromium-clang-format',
Oliver Chang5a21e142015-10-21 15:19:20 -070079 '-s', 'pdfium/buildtools/linux64/clang-format.sha1',
Tom Sepeze9446f82015-08-13 15:51:43 -070080 ],
81 },
Oliver Changafaa98e2015-10-21 15:29:47 -070082 {
83 # Pull clang if needed or requested via GYP_DEFINES.
84 'name': 'clang',
85 'pattern': '.',
86 'action': ['python', 'pdfium/tools/clang/scripts/update.py', '--if-needed'],
87 },
Tom Sepeze9446f82015-08-13 15:51:43 -070088]