2009-12-07 Yaar Schnitman <yaar@chromium.org>
[WebKit-https.git] / 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_deps_svn': 'http://src.chromium.org/svn/trunk/deps/third_party',
36
37   # Dependencies' revisions to use:
38   'chromium_rev': '31834',
39   'google-url_rev': '120',
40   'gtest_rev': '336',
41   'gyp_rev': '751',
42   'icu_rev': '31724',
43   'openvcdiff_rev': '28',
44   'ots_rev': '19',
45   'skia_rev': '424',
46   'v8_rev': '3276',
47
48   # Windows:
49   'cygwin_rev': '11984',
50   'ffmpeg_ia32_rev': '30374',
51   'pthreads-win32_rev': '26716',
52   'python_24_rev': '22967',
53 }
54
55 deps = {
56   # build tools
57   'build':
58     Var('chromium_svn')+'/build@'+Var('chromium_rev'),
59   'tools/gyp':
60     'http://gyp.googlecode.com/svn/trunk@'+Var('gyp_rev'),
61
62   # Basic tools
63   'base':
64     Var('chromium_svn')+'/base@'+Var('chromium_rev'),
65
66   # skia dependencies
67   'skia':
68     Var('chromium_svn')+'/skia@'+Var('chromium_rev'),
69   'third_party/skia':
70     'http://skia.googlecode.com/svn/trunk@'+Var('skia_rev'),
71
72   # testing
73   'testing':
74     Var('chromium_svn')+'/testing@'+Var('chromium_rev'),
75   'testing/gtest':
76     'http://googletest.googlecode.com/svn/trunk@'+Var('gtest_rev'),
77
78   # v8 javascript engine
79   'v8':
80     'http://v8.googlecode.com/svn/trunk@'+Var('v8_rev'),
81   'testing/gtest':
82     'http://googletest.googlecode.com/svn/trunk@'+Var('gtest_rev'),
83
84   # net dependencies
85   'net':
86     Var('chromium_svn')+'/net@'+Var('chromium_rev'),
87   'sdch':
88     Var('chromium_svn')+'/sdch@'+Var('chromium_rev'),
89   'sdch/open-vcdiff':
90     'http://open-vcdiff.googlecode.com/svn/trunk@'+Var('openvcdiff_rev'),
91   'googleurl':
92     'http://google-url.googlecode.com/svn/trunk@'+Var('google-url_rev'),
93
94   # other third party
95   'third_party/icu':
96     Var('chromium_deps_svn')+'/icu42@'+Var('icu_rev'),
97
98   'third_party/bzip2':
99     Var('chromium_svn')+'/third_party/bzip2@'+Var('chromium_rev'),
100
101   'third_party/libevent':
102     Var('chromium_svn')+'/third_party/libevent@'+Var('chromium_rev'),
103
104   'third_party/libjpeg':
105     Var('chromium_svn')+'/third_party/libjpeg@'+Var('chromium_rev'),
106
107   'third_party/libpng':
108     Var('chromium_svn')+'/third_party/libpng@'+Var('chromium_rev'),
109
110   'third_party/libxml':
111     Var('chromium_svn')+'/third_party/libxml@'+Var('chromium_rev'),
112
113   'third_party/libxslt':
114     Var('chromium_svn')+'/third_party/libxslt@'+Var('chromium_rev'),
115
116   'third_party/modp_b64':
117     Var('chromium_svn')+'/third_party/modp_b64@'+Var('chromium_rev'),
118
119   'third_party/npapi':
120     Var('chromium_svn')+'/third_party/npapi@'+Var('chromium_rev'),
121
122   'third_party/ots':
123     'http://ots.googlecode.com/svn/trunk@'+Var('ots_rev'),
124
125   'third_party/sqlite':
126     Var('chromium_svn')+'/third_party/sqlite@'+Var('chromium_rev'),
127
128   'third_party/zlib':
129     Var('chromium_svn')+'/third_party/zlib@'+Var('chromium_rev'),
130 }
131
132 deps_os = {
133   'win': {
134     'third_party/cygwin':
135       Var('chromium_deps_svn')+'/cygwin@'+Var('cygwin_rev'),
136
137     'third_party/python_24':
138       Var('chromium_deps_svn')+'/python_24@'+Var('python_24_rev'),
139
140     'third_party/ffmpeg/binaries/chromium/win/ia32':
141       Var('chromium_deps_svn')+'/ffmpeg/binaries/win@'+Var('ffmpeg_ia32_rev'),
142
143     'third_party/pthreads-win32':
144       Var('chromium_deps_svn')+'/pthreads-win32@'+Var('pthreads-win32_rev'),
145   },
146   'unix': {
147     # Linux, actually.
148     'third_party/harfbuzz':
149       Var('chromium_svn')+'/third_party/harfbuzz@'+Var('chromium_rev'),
150
151     'tools/xdisplaycheck':
152       Var('chromium_svn')+'/tools/xdisplaycheck@'+Var('chromium_rev'),
153   },
154 }
155
156 skip_child_includes = [
157    # Don't look for dependencies in the following folders: 
158    'base',
159    'build',
160    'googleurl',
161    'net',
162    'sdch',
163    'skia',
164    'testing',
165    'third_party',
166    'tools',
167    'v8',
168    'webkit',
169 ]
170
171 include_rules = [
172   # Everybody can use some things.
173   '+base',
174   '+build',
175   '+ipc',
176
177   # For now, we allow ICU to be included by specifying 'unicode/...', although
178   # this should probably change.
179   '+unicode',
180   '+testing',
181
182   # Allow anybody to include files from the 'public' Skia directory in the
183   # webkit port. This is shared between the webkit port and Chromium.
184   '+webkit/port/platform/graphics/skia/public',
185 ]
186
187
188 hooks = [
189   {
190     # A change to any file in this directory should run the gyp generator.
191     'pattern': '.',
192     'action': ['python', 'gyp_webkit'],
193   },
194 ]