Enable dev build with the latest repo
[platform/framework/web/chromium-efl.git] / native_client / DEPS
1 # DEPS files look like -*- Python -*-
2
3 vars = {
4   # These revisions are slices of the chromium repository.
5   # Because they come from separate sub-slices, their hashes do not match at
6   # equivalent revisions. When updating them, use the roll-dep script
7   # to move them to equivalent revisions. Additionally, because not all
8   # directories contain commits at each revision, you will need to select
9   # revisions at latest revision up to a high watermark from each slice.
10   # Document the high watermark here:
11   # chrome_rev: 428228
12   "build_rev": "9c85c83678b37be4c31aa324f1206a19cb48040a", # from cr commit position 613723
13   "binutils_rev": "8d77853bc9415bcb7bb4206fa2901de7603387db", # from cr commit position 392828
14   # NOTE: be sure to update clang_lib_version in SConstruct whenever
15   # updating this clang_rev (e.g., if LLVM changes from version 3.7 to 3.8).
16   "clang_rev": "0dea619c94ca902c75dfaa3c0805f9b21a98793a", # from cr commit position 613723
17
18   # Rolls of build_overrides_rev should done at the same time as a roll
19   # of build_rev as build_overrides/ is tightly coupled with build/.
20   # build_overrides/ is forked from chromium/src/build_overrides/ and
21   # needs to be manually updated to keep in sync before a build_rev
22   # update can be done.
23   "build_overrides_rev": "d56d0aa73300038348206b7503934d3706131d09",
24
25   # NOTE!  These five should be kept up to date with their counterparts in
26   # chromium/src/DEPS.
27   # Be sure to update them when updating the chromium slice revisions above.
28   # (This is not essential for Breakpad, because we do not use its code
29   # in the build that goes into Chromium.  But we might as well update it too.)
30   # You should now use the roll-dep script in depot_tools to do this update.
31   "gtest_rev": "2d3543f81d6d4583332f8b60768ade18e0f96220",
32   "gyp_rev": "e7079f0e0e14108ab0dba58728ff219637458563",
33   # Three lines of non-changing comments so that
34   # the commit queue can handle CLs rolling build tools
35   # and whatever else without interference from each other.
36   'buildtools_revision': '04161ec8d7c781e4498c699254c69ba0dd959fde',
37   # Three lines of non-changing comments so that
38   # the commit queue can handle CLs rolling lss
39   # and whatever else without interference from each other.
40   'lss_revision': '3f6478ac95edf86cd3da300c2c0d34a438f5dbeb',
41
42   "breakpad_rev": "54fa71efbe50fb2b58096d871575b59e12edba6d",
43
44   # Separately pinned repositories, update with roll-dep individually.
45   "third_party_rev": "d4e38e5faf600b39649025e5605d6e7f94518ea7",
46   "lcov_rev": "b37daf5968200da8ff520ce65c4e5bce4047dd15", # from svn revision 149720
47   "gnu_binutils_rev": "f4003433b61b25666565690caf3d7a7a1a4ec436", # from svn revision 8151
48   "mingw_rev": "3cc8b140b883a9fe4986d12cfd46c16a093d3527", # from svn revision 7064
49   "nsis_rev": "21b6ad22daa7bfc04b9f1c1805a34622e2607a93", # from svn revision 7071
50   "ragel_rev": "da42bb33f1b67c2d70b38ec1d2edf5263271b635", # from svn revision 9010
51   "validator_snapshots_rev": "ef053694ef9b0d98d9bed0b9bb649963084bfc81",
52
53   "chromium_git": "https://chromium.googlesource.com",
54 }
55
56 deps = {
57   "breakpad":
58     Var("chromium_git") + "/breakpad/breakpad.git@" +
59     Var("breakpad_rev"),
60   "buildtools":
61     Var("chromium_git") + "/chromium/buildtools.git@" +
62      Var("buildtools_revision"),
63   "build":
64     Var("chromium_git") + "/chromium/src/build.git@" +
65     Var("build_rev"),
66   "build_overrides":
67     Var("chromium_git") + "/native_client/src/build_overrides.git@" +
68     Var("build_overrides_rev"),
69   "testing/gtest":
70     (Var("chromium_git") + "/external/github.com/google/googletest.git@" +
71      Var("gtest_rev")),
72   "third_party":
73     Var("chromium_git") + "/native_client/src/third_party.git@" +
74     Var("third_party_rev"),
75   "validator_snapshots":
76     (Var("chromium_git") + "/native_client/src/validator_snapshots.git@" +
77      Var("validator_snapshots_rev")),
78   "third_party/binutils":
79     Var("chromium_git") + "/chromium/src/third_party/binutils.git@" +
80     Var("binutils_rev"),
81   "third_party/lcov":
82     Var("chromium_git") + "/chromium/src/third_party/lcov.git@" +
83     Var("lcov_rev"),
84   "third_party/lss":
85     Var("chromium_git") + "/linux-syscall-support.git@" +
86     Var("lss_revision"),
87   "tools/clang":
88     Var("chromium_git") + "/chromium/src/tools/clang.git@" + Var("clang_rev"),
89   "tools/gyp":
90     Var("chromium_git") + "/external/gyp.git@" + Var("gyp_rev"),
91 }
92
93 deps_os = {
94   "win": {
95     # GNU binutils assembler for x86-32.
96     "third_party/gnu_binutils":
97       Var("chromium_git") +
98       "/native_client/deps/third_party/gnu_binutils.git@" +
99       Var("gnu_binutils_rev"),
100     # GNU binutils assembler for x86-64.
101     "third_party/mingw-w64/mingw/bin":
102       Var("chromium_git") +
103       "/native_client/deps/third_party/mingw-w64/mingw/bin.git@" +
104       Var("mingw_rev"),
105     "third_party/NSIS":
106       Var("chromium_git") + "/native_client/deps/third_party/NSIS.git@" +
107       Var("nsis_rev"),
108   },
109   "unix": {
110     # Ragel for validator_ragel
111     "third_party/ragel":
112       Var("chromium_git") + "/native_client/deps/third_party/ragel.git@" +
113       Var("ragel_rev"),
114   },
115 }
116
117 hooks = [
118   ###
119   ### From here until the similar marker below, these clauses are copied
120   ### almost verbatim from chromium/src/DEPS.  They are modified to drop
121   ### the src/ prefix on file names, and third_party/binutils/download.py
122   ### gets the extra --ignore-if-arch=arm argument, but otherwise they
123   ### should stay identical.
124   ###
125
126   {
127     # Downloads the current stable linux sysroot to build/linux/ if needed.
128     # This sysroot updates at about the same rate that the chrome build deps
129     # change. This script is a no-op except for linux users who are doing
130     # official chrome builds or cross compiling.
131     'name': 'sysroot',
132     'pattern': '.',
133     'action': ['python', 'build/linux/sysroot_scripts/install-sysroot.py',
134                '--all'],
135   },
136   {
137     # Update the Windows toolchain if necessary.
138     'name': 'win_toolchain',
139     'pattern': '.',
140     'action': ['python', 'build/vs_toolchain.py', 'update'],
141   },
142   # Pull binutils for linux, enabled debug fission for faster linking /
143   # debugging when used with clang on Ubuntu Precise.
144   # https://code.google.com/p/chromium/issues/detail?id=352046
145   {
146     'name': 'binutils',
147     'pattern': 'third_party/binutils',
148     'action': [
149         'python',
150         'third_party/binutils/download.py',
151         '--ignore-if-arch=arm',
152     ],
153   },
154   {
155     # Pull clang if needed or requested via GYP_DEFINES.
156     # Note: On Win, this should run after win_toolchain, as it may use it.
157     'name': 'clang',
158     'pattern': '.',
159     'action': ['python', 'tools/clang/scripts/update.py'],
160   },
161   {
162     # Update LASTCHANGE.
163     'name': 'lastchange',
164     'pattern': '.',
165     'action': ['python', 'build/util/lastchange.py',
166                '-o', 'build/util/LASTCHANGE'],
167   },
168   # Pull GN binaries. This needs to be before running GYP below.
169   {
170     'name': 'gn_win',
171     'pattern': '.',
172     'action': [ 'download_from_google_storage',
173                 '--no_resume',
174                 '--platform=win32',
175                 '--no_auth',
176                 '--bucket', 'chromium-gn',
177                 '-s', 'buildtools/win/gn.exe.sha1',
178     ],
179   },
180   {
181     'name': 'gn_mac',
182     'pattern': '.',
183     'action': [ 'download_from_google_storage',
184                 '--no_resume',
185                 '--platform=darwin',
186                 '--no_auth',
187                 '--bucket', 'chromium-gn',
188                 '-s', 'buildtools/mac/gn.sha1',
189     ],
190   },
191   {
192     'name': 'gn_linux64',
193     'pattern': '.',
194     'action': [ 'download_from_google_storage',
195                 '--no_resume',
196                 '--platform=linux*',
197                 '--no_auth',
198                 '--bucket', 'chromium-gn',
199                 '-s', 'buildtools/linux64/gn.sha1',
200     ],
201   },
202   # Pull clang-format binaries using checked-in hashes.
203   {
204     'name': 'clang_format_win',
205     'pattern': '.',
206     'action': [ 'download_from_google_storage',
207                 '--no_resume',
208                 '--platform=win32',
209                 '--no_auth',
210                 '--bucket', 'chromium-clang-format',
211                 '-s', 'buildtools/win/clang-format.exe.sha1',
212     ],
213   },
214   {
215     'name': 'clang_format_mac',
216     'pattern': '.',
217     'action': [ 'download_from_google_storage',
218                 '--no_resume',
219                 '--platform=darwin',
220                 '--no_auth',
221                 '--bucket', 'chromium-clang-format',
222                 '-s', 'buildtools/mac/clang-format.sha1',
223     ],
224   },
225   {
226     'name': 'clang_format_linux',
227     'pattern': '.',
228     'action': [ 'download_from_google_storage',
229                 '--no_resume',
230                 '--platform=linux*',
231                 '--no_auth',
232                 '--bucket', 'chromium-clang-format',
233                 '-s', 'buildtools/linux64/clang-format.sha1',
234     ],
235   },
236
237   ###
238   ### End of clauses copied (almost verbatim) from chromium/src/DEPS.
239   ###
240
241   # Pull NaCl Toolchain binaries.
242   {
243     "pattern": ".",
244     "action": ["python",
245                "native_client/build/package_version/package_version.py",
246                "sync", "--extract",
247     ],
248   },
249   # Cleanup any stale package_version files.
250   {
251     "pattern": ".",
252     "action": ["python",
253                "native_client/build/package_version/package_version.py",
254                "cleanup",
255     ],
256   },
257 ]
258
259 include_rules = [
260   "+native_client/src/include",
261   "+gtest",
262 ]