Fix for Geolocation webTCT failures
[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: 1039183
12   "build_rev": "80d1bcf5591e724463be35b794ffe3261a5b9006", # from cr commit position 1039183
13   "buildtools_revision": "dbde006685de56293b98deda3130a5bcf73c354b", # from cr commit position 1038197
14   "clang_rev": "0fc72d33cae3fefb8ced28631f9a8cf7e54fa873", # from cr commit position 1038345
15
16   # build_overrides/ is a separate, NaCl-specific repo *forked* from
17   # chromium/src/build_overrides/. It may need to be updated if
18   # //build_overrides/build.gni changes in Chromium.
19   "build_overrides_rev": "3a801f70d2dad1d2b4c935103cc44b6f16144f8d",
20
21   # Three lines of non-changing comments so that
22   # the commit queue can handle CLs rolling lss
23   # and whatever else without interference from each other.
24   "lss_revision": "3f6478ac95edf86cd3da300c2c0d34a438f5dbeb",
25
26   "breakpad_rev": "54fa71efbe50fb2b58096d871575b59e12edba6d",
27
28   # GN CIPD package version.
29   "gn_version": "git_revision:b79031308cc878488202beb99883ec1f2efd9a6d",
30
31   # Separately pinned repositories, update with roll-dep individually.
32   "gtest_rev": "2d3543f81d6d4583332f8b60768ade18e0f96220",
33   "gyp_rev": "e7079f0e0e14108ab0dba58728ff219637458563",
34   "mingw_rev": "3cc8b140b883a9fe4986d12cfd46c16a093d3527", # from svn revision 7064
35   "lcov_rev": "b37daf5968200da8ff520ce65c4e5bce4047dd15", # from svn revision 149720
36   "gnu_binutils_rev": "f4003433b61b25666565690caf3d7a7a1a4ec436", # from svn revision 8151
37   "nsis_rev": "21b6ad22daa7bfc04b9f1c1805a34622e2607a93", # from svn revision 7071
38   "ragel_rev": "da42bb33f1b67c2d70b38ec1d2edf5263271b635", # from svn revision 9010
39   "third_party_rev": "d6b76289219c3183f0be9b5fc0be9daedda20e04",
40   "validator_snapshots_rev": "ef053694ef9b0d98d9bed0b9bb649963084bfc81",
41
42   # Dummy variables for compatibility with //build.
43   "build_with_chromium": False,
44   "cros_boards": Str(""),
45   "cros_boards_with_qemu_images": Str(""),
46
47   "chromium_git": "https://chromium.googlesource.com",
48 }
49
50 gclient_gn_args_file = 'build/config/gclient_args.gni'
51 gclient_gn_args = [
52   'build_with_chromium',
53   'checkout_android',  # this is provided by gclient
54   'cros_boards',
55   'cros_boards_with_qemu_images',
56 ]
57
58
59 deps = {
60   "breakpad":
61     Var("chromium_git") + "/breakpad/breakpad.git@" +
62     Var("breakpad_rev"),
63   "buildtools":
64     Var("chromium_git") + "/chromium/src/buildtools.git@" +
65      Var("buildtools_revision"),
66   "build":
67     Var("chromium_git") + "/chromium/src/build.git@" +
68     Var("build_rev"),
69   "build_overrides":
70     Var("chromium_git") + "/native_client/src/build_overrides.git@" +
71     Var("build_overrides_rev"),
72   "testing/gtest":
73     (Var("chromium_git") + "/external/github.com/google/googletest.git@" +
74      Var("gtest_rev")),
75   "third_party":
76     Var("chromium_git") + "/native_client/src/third_party.git@" +
77     Var("third_party_rev"),
78   "validator_snapshots":
79     (Var("chromium_git") + "/native_client/src/validator_snapshots.git@" +
80      Var("validator_snapshots_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   'third_party/ninja': {
88     'packages': [
89       {
90         # https://chrome-infra-packages.appspot.com/p/infra/3pp/tools/ninja
91         'package': 'infra/3pp/tools/ninja/${{platform}}',
92         'version': 'version:2@1.8.2.chromium.3',
93       }
94     ],
95     'dep_type': 'cipd',
96   },
97   "tools/clang":
98     Var("chromium_git") + "/chromium/src/tools/clang.git@" + Var("clang_rev"),
99   "tools/gyp":
100     Var("chromium_git") + "/external/gyp.git@" + Var("gyp_rev"),
101
102   'buildtools/linux64': {
103     'packages': [
104       {
105         'package': 'gn/gn/linux-amd64',
106         'version': Var('gn_version'),
107       }
108     ],
109     'dep_type': 'cipd',
110     'condition': 'host_os == "linux"',
111   },
112   'buildtools/mac': {
113     'packages': [
114       {
115         'package': 'gn/gn/mac-amd64',
116         'version': Var('gn_version'),
117       }
118     ],
119     'dep_type': 'cipd',
120     'condition': 'host_os == "mac"',
121   },
122   'buildtools/win': {
123     'packages': [
124       {
125         'package': 'gn/gn/windows-amd64',
126         'version': Var('gn_version'),
127       }
128     ],
129     'dep_type': 'cipd',
130     'condition': 'host_os == "win"',
131   },
132 }
133
134 deps_os = {
135   "win": {
136     # GNU binutils assembler for x86-32.
137     "third_party/gnu_binutils":
138       Var("chromium_git") +
139       "/native_client/deps/third_party/gnu_binutils.git@" +
140       Var("gnu_binutils_rev"),
141     # GNU binutils assembler for x86-64.
142     "third_party/mingw-w64/mingw/bin":
143       Var("chromium_git") +
144       "/native_client/deps/third_party/mingw-w64/mingw/bin.git@" +
145       Var("mingw_rev"),
146     "third_party/NSIS":
147       Var("chromium_git") + "/native_client/deps/third_party/NSIS.git@" +
148       Var("nsis_rev"),
149   },
150   "unix": {
151     # Ragel for validator_ragel
152     "third_party/ragel":
153       Var("chromium_git") + "/native_client/deps/third_party/ragel.git@" +
154       Var("ragel_rev"),
155   },
156 }
157
158 hooks = [
159   ###
160   ### From here until the similar marker below, these clauses are copied
161   ### almost verbatim from chromium/src/DEPS.  They are modified to drop
162   ### the src/ prefix on file names but otherwise they should stay identical.
163   ###
164
165   {
166     'name': 'sysroot_arm',
167     'pattern': '.',
168     'condition': 'checkout_linux',
169     'action': ['python3', 'build/linux/sysroot_scripts/install-sysroot.py',
170                '--arch=arm'],
171   },
172   {
173     'name': 'sysroot_arm64',
174     'pattern': '.',
175     'condition': 'checkout_linux',
176     'action': ['python3', 'build/linux/sysroot_scripts/install-sysroot.py',
177                '--arch=arm64'],
178   },
179   {
180     # Downloads the current stable linux sysroot to build/linux/ if needed.
181     # This sysroot updates at about the same rate that the chrome build deps
182     # change. This script is a no-op except for linux users who are doing
183     # official chrome builds or cross compiling.
184     'name': 'sysroot_x64',
185     'pattern': '.',
186     'condition': 'checkout_linux',
187     'action': ['python3', 'build/linux/sysroot_scripts/install-sysroot.py',
188                '--arch=x64'],
189   },
190   {
191     'name': 'sysroot_x86',
192     'pattern': '.',
193     'condition': 'checkout_linux',
194     'action': ['python3', 'build/linux/sysroot_scripts/install-sysroot.py',
195                '--arch=x86'],
196   },
197   {
198     # Update the Windows toolchain if necessary.
199     'name': 'win_toolchain',
200     'pattern': '.',
201     'condition': 'checkout_win',
202     'action': ['python3', 'build/vs_toolchain.py', 'update'],
203   },
204   {
205     # Update the Mac toolchain if necessary.
206     'name': 'mac_toolchain',
207     'pattern': '.',
208     'condition': 'checkout_mac',
209     'action': ['python3', 'build/mac_toolchain.py'],
210   },
211   {
212     # Pull clang if needed or requested via GYP_DEFINES.
213     # Note: On Win, this should run after win_toolchain, as it may use it.
214     'name': 'clang',
215     'pattern': '.',
216     'action': ['python3', 'tools/clang/scripts/update.py'],
217   },
218   {
219     # Update LASTCHANGE.
220     'name': 'lastchange',
221     'pattern': '.',
222     'action': ['python3', 'build/util/lastchange.py',
223                '-o', 'build/util/LASTCHANGE'],
224   },
225   # Pull clang-format binaries using checked-in hashes.
226   {
227     'name': 'clang_format_win',
228     'pattern': '.',
229     'condition': 'host_os == "win"',
230     'action': [ 'download_from_google_storage',
231                 '--no_resume',
232                 '--no_auth',
233                 '--bucket', 'chromium-clang-format',
234                 '-s', 'buildtools/win/clang-format.exe.sha1',
235     ],
236   },
237   {
238     'name': 'clang_format_mac',
239     'pattern': '.',
240     'condition': 'host_os == "mac"',
241     'action': [ 'download_from_google_storage',
242                 '--no_resume',
243                 '--no_auth',
244                 '--bucket', 'chromium-clang-format',
245                 '-s', 'buildtools/mac/clang-format.x64.sha1',
246     ],
247   },
248   {
249     'name': 'clang_format_linux',
250     'pattern': '.',
251     'condition': 'host_os == "linux"',
252     'action': [ 'download_from_google_storage',
253                 '--no_resume',
254                 '--no_auth',
255                 '--bucket', 'chromium-clang-format',
256                 '-s', 'buildtools/linux64/clang-format.sha1',
257     ],
258   },
259
260   ###
261   ### End of clauses copied (almost verbatim) from chromium/src/DEPS.
262   ###
263
264   # Pull NaCl Toolchain binaries.
265   {
266     "pattern": ".",
267     "action": ["python3",
268                "native_client/build/package_version/package_version.py",
269                "sync", "--extract",
270     ],
271   },
272   # Cleanup any stale package_version files.
273   {
274     "pattern": ".",
275     "action": ["python3",
276                "native_client/build/package_version/package_version.py",
277                "cleanup",
278     ],
279   },
280 ]
281
282 include_rules = [
283   "+native_client/src/include",
284   "+gtest",
285 ]