OLD | NEW |
---|---|
(Empty) | |
1 # Copyright 2014 Google Inc. All Rights Reserved. | |
2 # | |
3 # Licensed under the Apache License, Version 2.0 (the "License"); | |
4 # you may not use this file except in compliance with the License. | |
5 # You may obtain a copy of the License at | |
6 # | |
7 # http://www.apache.org/licenses/LICENSE-2.0 | |
8 # | |
9 # Unless required by applicable law or agreed to in writing, software | |
10 # distributed under the License is distributed on an "AS IS" BASIS, | |
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
12 # See the License for the specific language governing permissions and | |
13 # limitations under the License. | |
14 | |
15 vars = { | |
16 # Name of the directory to which the repository is pulled in. | |
17 "root": "src", | |
18 # This is expected to be Python 2.7 from depot_tools. | |
19 "python_path": "python", | |
20 | |
21 "chromium_git": "https://chromium.googlesource.com", | |
22 "buildtools_revision": "a7cc7a3e21a061975b33dcdcd81a9716ba614c3c", | |
23 } | |
24 | |
25 deps = { | |
26 Var("root") + "/buildtools": | |
27 Var('chromium_git') + '/chromium/buildtools.git' + '@' + Var('buildtools_re vision'), | |
28 } | |
29 | |
30 include_rules = [ | |
ftirelo
2017/02/15 18:02:15
Please add base, build, gmock, gtest.
veranika
2017/02/15 20:47:12
All Chromium subtrees are pulled in GITDEPS. base,
| |
31 ] | |
32 | |
33 hooks = [ | |
34 { | |
35 "name": "run_gitdeps", | |
36 "pattern": ".", | |
37 "action": [Var("python_path"), | |
38 Var("root") + "/pipa/build/gitdeps.py", | |
39 Var("root") + "/GITDEPS", | |
40 "--output-dir=" + Var("root"), | |
41 "--cache-dir", Var("root") + "/.gitdeps-cache"], | |
42 }, | |
43 # Pull GN binaries. This needs to be before running GN below. | |
44 { | |
45 "name": "gn_win", | |
46 "pattern": ".", | |
47 "action": [ "download_from_google_storage", | |
48 "--no_resume", | |
49 "--platform=win32", | |
50 "--no_auth", | |
51 "--bucket", "chromium-gn", | |
52 "-s", Var("root") + "/buildtools/win/gn.exe.sha1", | |
53 ], | |
54 }, | |
55 { | |
56 # Update the Windows toolchain if necessary. | |
57 "name": "win_toolchain", | |
58 "pattern": ".", | |
59 "action": [Var("python_path"), | |
60 Var("root") + "/build/vs_toolchain.py", | |
61 "update", | |
62 ], | |
63 }, | |
64 # TODO(veranika): run GN here. | |
65 { | |
66 "name": "download_clang_format", | |
67 "pattern": ".", | |
68 "action": ["download_from_google_storage", | |
69 "--no_resume", | |
70 "--platform=win32", | |
71 "--no_auth", | |
72 "--bucket", "chromium-clang-format", | |
73 "-s", Var("root") + "/buildtools/win/clang-format.exe.sha1", | |
74 ], | |
75 }, | |
76 ] | |
OLD | NEW |