|
1 use_relative_paths = True |
|
2 |
|
3 vars = { |
|
4 "libyuv_trunk" : "https://libyuv.googlecode.com/svn/trunk", |
|
5 |
|
6 # Override root_dir in your .gclient's custom_vars to specify a custom root |
|
7 # folder name. |
|
8 "root_dir": "trunk", |
|
9 "extra_gyp_flag": "-Dextra_gyp_flag=0", |
|
10 |
|
11 # Use this googlecode_url variable only if there is an internal mirror for it. |
|
12 # If you do not know, use the full path while defining your new deps entry. |
|
13 "googlecode_url": "http://%s.googlecode.com/svn", |
|
14 "chromium_trunk" : "http://src.chromium.org/svn/trunk", |
|
15 # chrome://version/ for revision of canary Chrome. |
|
16 "chromium_revision": "232627", |
|
17 } |
|
18 |
|
19 # NOTE: Prefer revision numbers to tags for svn deps. Use http rather than |
|
20 # https; the latter can cause problems for users behind proxies. |
|
21 deps = { |
|
22 "../chromium_deps": |
|
23 File(Var("chromium_trunk") + "/src/DEPS@" + Var("chromium_revision")), |
|
24 |
|
25 "build": |
|
26 Var("chromium_trunk") + "/src/build@" + Var("chromium_revision"), |
|
27 |
|
28 # Needed by common.gypi. |
|
29 "google_apis/build": |
|
30 Var("chromium_trunk") + "/src/google_apis/build@" + Var("chromium_revision"), |
|
31 |
|
32 "testing": |
|
33 Var("chromium_trunk") + "/src/testing@" + Var("chromium_revision"), |
|
34 |
|
35 "testing/gtest": |
|
36 From("chromium_deps", "src/testing/gtest"), |
|
37 |
|
38 "tools/clang": |
|
39 Var("chromium_trunk") + "/src/tools/clang@" + Var("chromium_revision"), |
|
40 |
|
41 "tools/gyp": |
|
42 From("chromium_deps", "src/tools/gyp"), |
|
43 |
|
44 "tools/python": |
|
45 Var("chromium_trunk") + "/src/tools/python@" + Var("chromium_revision"), |
|
46 |
|
47 "tools/valgrind": |
|
48 Var("chromium_trunk") + "/src/tools/valgrind@" + Var("chromium_revision"), |
|
49 |
|
50 # Needed by build/common.gypi. |
|
51 "tools/win/supalink": |
|
52 Var("chromium_trunk") + "/src/tools/win/supalink@" + Var("chromium_revision"), |
|
53 |
|
54 "third_party/libjpeg_turbo": |
|
55 From("chromium_deps", "src/third_party/libjpeg_turbo"), |
|
56 |
|
57 # Yasm assember required for libjpeg_turbo |
|
58 "third_party/yasm": |
|
59 Var("chromium_trunk") + "/src/third_party/yasm@" + Var("chromium_revision"), |
|
60 |
|
61 "third_party/yasm/source/patched-yasm": |
|
62 Var("chromium_trunk") + "/deps/third_party/yasm/patched-yasm@" + Var("chromium_revision"), |
|
63 } |
|
64 |
|
65 deps_os = { |
|
66 "win": { |
|
67 # Use WebRTC's, stripped down, version of Cygwin (required by GYP). |
|
68 "third_party/cygwin": |
|
69 (Var("googlecode_url") % "webrtc") + "/deps/third_party/cygwin@2672", |
|
70 |
|
71 # Used by libjpeg-turbo. |
|
72 # TODO(fbarchard): Remove binaries and run yasm from build folder. |
|
73 "third_party/yasm/binaries": |
|
74 Var("chromium_trunk") + "/deps/third_party/yasm/binaries@" + Var("chromium_revision"), |
|
75 "third_party/yasm": None, |
|
76 }, |
|
77 "unix": { |
|
78 "third_party/gold": |
|
79 From("chromium_deps", "src/third_party/gold"), |
|
80 }, |
|
81 "android": { |
|
82 "third_party/android_tools": |
|
83 From("chromium_deps", "src/third_party/android_tools"), |
|
84 |
|
85 "third_party/libjpeg": |
|
86 From("chromium_deps", "src/third_party/libjpeg"), |
|
87 }, |
|
88 "ios": { |
|
89 # NSS, for SSLClientSocketNSS. |
|
90 "third_party/nss": |
|
91 From("chromium_deps", "src/third_party/nss"), |
|
92 |
|
93 "net/third_party/nss": |
|
94 Var("chromium_trunk") + "/src/net/third_party/nss@" + Var("chromium_revision"), |
|
95 |
|
96 # class-dump utility to generate header files for undocumented SDKs. |
|
97 "testing/iossim/third_party/class-dump": |
|
98 From("chromium_deps", "src/testing/iossim/third_party/class-dump"), |
|
99 |
|
100 # Helper for running under the simulator. |
|
101 "testing/iossim": |
|
102 Var("chromium_trunk") + "/src/testing/iossim@" + Var("chromium_revision"), |
|
103 }, |
|
104 } |
|
105 |
|
106 hooks = [ |
|
107 { |
|
108 # Pull clang on mac. If nothing changed, or on non-mac platforms, this takes |
|
109 # zero seconds to run. If something changed, it downloads a prebuilt clang. |
|
110 "pattern": ".", |
|
111 "action": ["python", Var("root_dir") + "/tools/clang/scripts/update.py", |
|
112 "--mac-only"], |
|
113 }, |
|
114 { |
|
115 # A change to a .gyp, .gypi, or to GYP itself should run the generator. |
|
116 "pattern": ".", |
|
117 "action": ["python", Var("root_dir") + "/build/gyp_chromium", |
|
118 "--depth=" + Var("root_dir"), Var("root_dir") + "/all.gyp", |
|
119 Var("extra_gyp_flag")], |
|
120 }, |
|
121 { |
|
122 # Update the cygwin mount on Windows. |
|
123 # This is necessary to get the correct mapping between e.g. /bin and the |
|
124 # cygwin path on Windows. Without it we can't run bash scripts in actions. |
|
125 # Ideally this should be solved in "pylib/gyp/msvs_emulation.py". |
|
126 "pattern": ".", |
|
127 "action": ["python", Var("root_dir") + "/build/win/setup_cygwin_mount.py", |
|
128 "--win-only"], |
|
129 }, |
|
130 ] |