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