b6b5c1bc4885a694e8e54514bfe0b074c7f3ce2b
[WebKit-https.git] / Source / WebKit / chromium / DEPS
1 #
2 # Copyright (C) 2009 Google Inc. All rights reserved.
3 #
4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions are
6 # met:
7 #
8 #   * Redistributions of source code must retain the above copyright notice,
9 #     this list of conditions and the following disclaimer.
10 #   * Redistributions in binary form must reproduce the above copyright 
11 #     notice, this list of conditions and the following disclaimer in the
12 #     documentation and/or other materials provided with the distribution.
13 #   * Neither the name of Google Inc. nor the names of its contributors 
14 #     may be used to endorse or promote products derived from this software
15 #     without specific prior written permission.
16 #
17 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 #
29
30 # This file is used by gclient to fetch the projects that the webkit
31 # chromium port depends on.
32
33 vars = {
34   'chromium_svn': 'http://src.chromium.org/svn/trunk/src',
35   'chromium_rev': '185662'
36 }
37
38 deps = {
39   'chromium_deps':
40     File(Var('chromium_svn')+'/DEPS@'+Var('chromium_rev')),
41
42   # build tools
43   'build':
44     Var('chromium_svn')+'/build@'+Var('chromium_rev'),
45   'tools/gyp':
46     From('chromium_deps', 'src/tools/gyp'),
47   'tools/clang':
48     Var('chromium_svn')+'/tools/clang@'+Var('chromium_rev'),
49
50   # Basic tools
51   'base':
52     Var('chromium_svn')+'/base@'+Var('chromium_rev'),
53
54   # skia dependencies
55   'skia':
56     Var('chromium_svn')+'/skia@'+Var('chromium_rev'),
57   'third_party/skia/src':
58     From('chromium_deps', 'src/third_party/skia/src'),
59   'third_party/skia/include':
60     From('chromium_deps', 'src/third_party/skia/include'),
61   'third_party/skia/gyp':
62     From('chromium_deps', 'src/third_party/skia/gyp'),
63
64   # testing
65   'testing':
66     Var('chromium_svn')+'/testing@'+Var('chromium_rev'),
67   'testing/gtest':
68     From('chromium_deps', 'src/testing/gtest'),
69   'testing/gmock':
70     From('chromium_deps', 'src/testing/gmock'),
71
72   # v8 javascript engine
73   'v8': From('chromium_deps', 'src/v8'),
74
75   # net dependencies
76   'net':
77     Var('chromium_svn')+'/net@'+Var('chromium_rev'),
78   'crypto':
79     Var('chromium_svn')+'/crypto@'+Var('chromium_rev'),
80   'dbus':
81     Var('chromium_svn')+'/dbus@'+Var('chromium_rev'),
82   'sdch':
83     Var('chromium_svn')+'/sdch@'+Var('chromium_rev'),
84   'sdch/open-vcdiff':
85     From('chromium_deps', 'src/sdch/open-vcdiff'),
86   'googleurl':
87     From('chromium_deps', 'src/googleurl'),
88
89   # webkit dependencies
90   'webkit': Var('chromium_svn')+'/webkit@'+Var('chromium_rev'),
91
92   'cc':
93     Var('chromium_svn')+'/cc@'+Var('chromium_rev'),
94   'google_apis':
95     Var('chromium_svn')+'/google_apis@' + Var('chromium_rev'),
96   'gpu':
97     Var('chromium_svn')+'/gpu@'+Var('chromium_rev'),
98   'ipc':
99     Var('chromium_svn')+'/ipc@'+Var('chromium_rev'),
100   'media':
101     Var('chromium_svn')+'/media@'+Var('chromium_rev'),
102   'printing':
103     Var('chromium_svn')+'/printing@'+Var('chromium_rev'),
104   'webkit/media/crypto/ppapi/cdm':
105     From('chromium_deps', 'src/webkit/media/crypto/ppapi/cdm'),
106   'ppapi':
107     Var('chromium_svn')+'/ppapi@'+Var('chromium_rev'),
108   'sql':
109     Var('chromium_svn')+'/sql@'+Var('chromium_rev'),
110   'third_party/angle':  # needed by the gpu process
111     From('chromium_deps', 'src/third_party/angle'),
112   'third_party/libvpx': # needed by webkit/media
113     From('chromium_deps', 'src/third_party/libvpx'),
114   'third_party/ffmpeg': # needed by webkit/media
115     From('chromium_deps', 'src/third_party/ffmpeg'),
116   'third_party/libjingle/source':
117     From('chromium_deps', 'src/third_party/libjingle/source'),
118   'tools/grit':
119     From('chromium_deps', 'src/tools/grit'),
120   'tools/gritsettings':
121     Var('chromium_svn')+'/tools/gritsettings@'+Var('chromium_rev'),
122   'tools/generate_library_loader':
123     Var('chromium_svn')+'/tools/generate_library_loader@'+Var('chromium_rev'),
124   'tools/generate_stubs':
125     Var('chromium_svn')+'/tools/generate_stubs@'+Var('chromium_rev'),
126   'tools/win':
127     Var('chromium_svn')+'/tools/win@'+Var('chromium_rev'),
128   'ui':
129     Var('chromium_svn')+'/ui@'+Var('chromium_rev'),
130   'win8':
131     Var('chromium_svn')+'/win8@'+Var('chromium_rev'),
132
133   # other third party
134   'third_party/pyftpdlib/src':
135     From('chromium_deps', 'src/third_party/pyftpdlib/src'),
136   'third_party/icu':
137     From('chromium_deps', 'src/third_party/icu'),
138   'third_party/opus/src':
139     From('chromium_deps', 'src/third_party/opus/src'),
140   'third_party/ots':
141     From('chromium_deps', 'src/third_party/ots'),
142   'third_party/yasm/source/patched-yasm':
143     From('chromium_deps', 'src/third_party/yasm/source/patched-yasm'),
144   'third_party/libjpeg_turbo':
145     From('chromium_deps', 'src/third_party/libjpeg_turbo'),
146   'third_party/leveldatabase/src':
147     From('chromium_deps', 'src/third_party/leveldatabase/src'),
148   'third_party/smhasher/src':
149     From('chromium_deps', 'src/third_party/smhasher/src'),
150   'third_party/snappy/src':
151     From('chromium_deps', 'src/third_party/snappy/src'),
152   'third_party/sfntly/cpp/src':
153     From('chromium_deps', 'src/third_party/sfntly/cpp/src'),
154   'third_party/v8-i18n':
155     From('chromium_deps', 'src/third_party/v8-i18n'),
156   'third_party':
157     Var('chromium_svn')+'/third_party@'+Var('chromium_rev'),
158 }
159
160 deps_os = {
161   'win': {
162     'third_party/bison':
163       From('chromium_deps', 'src/third_party/bison'),
164     'third_party/cygwin':
165       From('chromium_deps', 'src/third_party/cygwin'),
166     'third_party/gperf':
167       From('chromium_deps', 'src/third_party/gperf'),
168     'third_party/lighttpd':
169       From('chromium_deps', 'src/third_party/lighttpd'),
170     'third_party/nss':
171       From('chromium_deps', 'src/third_party/nss'),
172     'third_party/perl':
173       From('chromium_deps', 'src/third_party/perl'),
174     # Dependencies used by libjpeg-turbo
175     'third_party/yasm/binaries':
176       From('chromium_deps', 'src/third_party/yasm/binaries'),
177   },
178   'mac': {
179     'third_party/nss':
180       From('chromium_deps', 'src/third_party/nss'),
181     'third_party/GTM':
182       From('chromium_deps', 'src/third_party/GTM'),
183   },
184   'unix': {
185     # Linux, actually.
186     'tools/xdisplaycheck':
187       Var('chromium_svn')+'/tools/xdisplaycheck@'+Var('chromium_rev'),
188     'third_party/freetype2/src':
189       From('chromium_deps', 'src/third_party/freetype2/src'),
190     'third_party/gold':
191       From('chromium_deps', 'src/third_party/gold'),
192     'third_party/openssl':
193       From('chromium_deps', 'src/third_party/openssl'),
194   },
195   'android': {
196     'third_party/android_tools':
197       From('chromium_deps', 'src/third_party/android_tools'),
198     'third_party/freetype':
199       From('chromium_deps', 'src/third_party/freetype'),
200     'third_party/jsr-305/src':
201       From('chromium_deps', 'src/third_party/jsr-305/src'),
202     'tools/android':
203       Var('chromium_svn') + '/tools/android@' + Var('chromium_rev'),
204   },
205 }
206
207 skip_child_includes = [
208    # Don't look for dependencies in the following folders: 
209    'base',
210    'build',
211    'googleurl',
212    'net',
213    'sdch',
214    'skia',
215    'testing',
216    'third_party',
217    'tools',
218    'v8',
219    'webkit',
220 ]
221
222 include_rules = [
223   # Everybody can use some things.
224   '+base',
225   '+build',
226   '+ipc',
227
228   # For now, we allow ICU to be included by specifying 'unicode/...', although
229   # this should probably change.
230   '+unicode',
231   '+testing',
232
233   # Allow anybody to include files from the 'public' Skia directory in the
234   # webkit port. This is shared between the webkit port and Chromium.
235   '+webkit/port/platform/graphics/skia/public',
236 ]
237
238
239 hooks = [
240   {
241     # Pull clang on mac.
242     "pattern": ".",
243     "action": ["python", "tools/clang/scripts/update.py", "--mac-only"],
244   },
245   {
246     # A change to any file in this directory should run the gyp generator.
247     'pattern': '.',
248     'action': ['python', 'gyp_webkit'],
249   },
250 ]