• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
33vars = {
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': '38580',
39  'google-url_rev': '121',
40  'gtest_rev': '359',
41  'gyp_rev': '781',
42  'icu_rev': '37341',
43  'openvcdiff_rev': '28',
44  'ots_rev': '26',
45  'skia_rev': '490',
46  'v8_rev': '3781',
47
48  # Windows:
49  'cygwin_rev': '11984',
50  'ffmpeg_ia32_rev': '34297',
51  'pthreads-win32_rev': '26716',
52  'python_24_rev': '22967',
53  'nss_rev': '36871',
54}
55
56deps = {
57  # build tools
58  'build':
59    Var('chromium_svn')+'/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/ots':
124    'http://ots.googlecode.com/svn/trunk@'+Var('ots_rev'),
125
126  'third_party/sqlite':
127    Var('chromium_svn')+'/third_party/sqlite@'+Var('chromium_rev'),
128
129  'third_party/zlib':
130    Var('chromium_svn')+'/third_party/zlib@'+Var('chromium_rev'),
131}
132
133deps_os = {
134  'win': {
135    'third_party/cygwin':
136      Var('chromium_deps_svn')+'/cygwin@'+Var('cygwin_rev'),
137
138    'third_party/python_24':
139      Var('chromium_deps_svn')+'/python_24@'+Var('python_24_rev'),
140
141    'third_party/ffmpeg/binaries/chromium/win/ia32':
142      Var('chromium_deps_svn')+'/ffmpeg/binaries/win@'+Var('ffmpeg_ia32_rev'),
143
144    'third_party/pthreads-win32':
145      Var('chromium_deps_svn')+'/pthreads-win32@'+Var('pthreads-win32_rev'),
146
147   # base.gypi depends on nss on Windows
148   'third_party/nss':
149      Var('chromium_deps_svn')+'/nss@'+Var('nss_rev'),
150  },
151  'unix': {
152    # Linux, actually.
153    'third_party/harfbuzz':
154      Var('chromium_svn')+'/third_party/harfbuzz@'+Var('chromium_rev'),
155
156    'tools/xdisplaycheck':
157      Var('chromium_svn')+'/tools/xdisplaycheck@'+Var('chromium_rev'),
158  },
159}
160
161skip_child_includes = [
162   # Don't look for dependencies in the following folders:
163   'base',
164   'build',
165   'googleurl',
166   'net',
167   'sdch',
168   'skia',
169   'testing',
170   'third_party',
171   'tools',
172   'v8',
173   'webkit',
174]
175
176include_rules = [
177  # Everybody can use some things.
178  '+base',
179  '+build',
180  '+ipc',
181
182  # For now, we allow ICU to be included by specifying 'unicode/...', although
183  # this should probably change.
184  '+unicode',
185  '+testing',
186
187  # Allow anybody to include files from the 'public' Skia directory in the
188  # webkit port. This is shared between the webkit port and Chromium.
189  '+webkit/port/platform/graphics/skia/public',
190]
191
192
193hooks = [
194  {
195    # A change to any file in this directory should run the gyp generator.
196    'pattern': '.',
197    'action': ['python', 'gyp_webkit'],
198  },
199]
200