DEPS 12.8 KB
Newer Older
1 2 3 4
# Note: The buildbots evaluate this file with CWD set to the parent
# directory and assume that the root of the checkout is in ./v8/, so
# all paths in here must match this assumption.

5
vars = {
6
  'checkout_instrumented_libraries': False,
7
  'chromium_url': 'https://chromium.googlesource.com',
8 9
  'download_gcmole': False,
  'download_jsfunfuzz': False,
10
  'download_mips_toolchain': False,
11 12
}

13
deps = {
14
  'v8/build':
v8-autoroll's avatar
v8-autoroll committed
15
    Var('chromium_url') + '/chromium/src/build.git' + '@' + 'a429f6047e2d7fa309b40fe45dc6831497959847',
16 17
  'v8/tools/gyp':
    Var('chromium_url') + '/external/gyp.git' + '@' + 'd61a9397e668fa9843c4aa7da9e79460fe590bfb',
18
  'v8/third_party/depot_tools':
v8-autoroll's avatar
v8-autoroll committed
19
    Var('chromium_url') + '/chromium/tools/depot_tools.git' + '@' + 'cf4aced37e993525b9e21856c0d1acec682edab1',
20
  'v8/third_party/icu':
v8-autoroll's avatar
v8-autoroll committed
21
    Var('chromium_url') + '/chromium/deps/icu.git' + '@' + 'f61e46dbee9d539a32551493e3bcc1dea92f83ec',
22
  'v8/third_party/instrumented_libraries':
v8-autoroll's avatar
v8-autoroll committed
23
    Var('chromium_url') + '/chromium/src/third_party/instrumented_libraries.git' + '@' + '323cf32193caecbf074d1a0cb5b02b905f163e0f',
24
  'v8/buildtools':
v8-autoroll's avatar
v8-autoroll committed
25
    Var('chromium_url') + '/chromium/buildtools.git' + '@' + '893eb86b02b2571894e328f05551112b96df1cce',
26
  'v8/base/trace_event/common':
v8-autoroll's avatar
v8-autoroll committed
27
    Var('chromium_url') + '/chromium/src/base/trace_event/common.git' + '@' + '211b3ed9d0481b4caddbee1322321b86a483ca1f',
Michael Achenbach's avatar
Michael Achenbach committed
28
  'v8/third_party/android_ndk': {
v8-autoroll's avatar
v8-autoroll committed
29
    'url': Var('chromium_url') + '/android_ndk.git' + '@' + '5cd86312e794bdf542a3685c6f10cbb96072990b',
Michael Achenbach's avatar
Michael Achenbach committed
30 31
    'condition': 'checkout_android',
  },
32
  'v8/third_party/android_tools': {
v8-autoroll's avatar
v8-autoroll committed
33
    'url': Var('chromium_url') + '/android_tools.git' + '@' + 'c22a664c39af72dd8f89200220713dcad811300a',
34 35 36
    'condition': 'checkout_android',
  },
  'v8/third_party/catapult': {
v8-autoroll's avatar
v8-autoroll committed
37
    'url': Var('chromium_url') + '/catapult.git' + '@' + '517100ca073f7deaf4818786104daf7e7c744b8d',
38 39
    'condition': 'checkout_android',
  },
40 41 42 43
  'v8/third_party/colorama/src': {
    'url': Var('chromium_url') + '/external/colorama.git' + '@' + '799604a1041e9b3bc5d2789ecbd7e8db2e18e6b8',
    'condition': 'checkout_android',
  },
Michael Achenbach's avatar
Michael Achenbach committed
44 45 46 47
  'v8/third_party/fuchsia-sdk': {
    'url': Var('chromium_url') + '/chromium/src/third_party/fuchsia-sdk.git' + '@' + 'afac8ecd6300c9903009e6f233f61aae401aced6',
    'condition': 'checkout_fuchsia',
  },
48
  'v8/third_party/googletest/src':
v8-autoroll's avatar
v8-autoroll committed
49
    Var('chromium_url') + '/external/github.com/google/googletest.git' + '@' + '145d05750b15324899473340c8dd5af50d125d33',
50
  'v8/third_party/jinja2':
v8-autoroll's avatar
v8-autoroll committed
51
    Var('chromium_url') + '/chromium/src/third_party/jinja2.git' + '@' + '45571de473282bd1d8b63a8dfcb1fd268d0635d2',
52 53 54
  'v8/third_party/markupsafe':
    Var('chromium_url') + '/chromium/src/third_party/markupsafe.git' + '@' + '8f45f5cfa0009d2a70589bcda0349b8cb2b72783',
  'v8/tools/swarming_client':
v8-autoroll's avatar
v8-autoroll committed
55
    Var('chromium_url') + '/infra/luci/client-py.git' + '@' + '3543e21830b9549e5b70c8c49482c8c28da2ba94',
56 57 58 59 60
  'v8/test/benchmarks/data':
    Var('chromium_url') + '/v8/deps/third_party/benchmarks.git' + '@' + '05d7188267b4560491ff9155c5ee13e207ecd65f',
  'v8/test/mozilla/data':
    Var('chromium_url') + '/v8/deps/third_party/mozilla-tests.git' + '@' + 'f6c578a10ea707b1a8ab0b88943fe5115ce2b9be',
  'v8/test/test262/data':
61
    Var('chromium_url') + '/external/github.com/tc39/test262.git' + '@' + '0192e0d70e2295fb590f14865da42f0f9dfa64bd',
62 63 64
  'v8/test/test262/harness':
    Var('chromium_url') + '/external/github.com/test262-utils/test262-harness-py.git' + '@' + '0f2acdd882c84cff43b9d60df7574a1901e2cdcd',
  'v8/tools/clang':
v8-autoroll's avatar
v8-autoroll committed
65
    Var('chromium_url') + '/chromium/src/tools/clang.git' + '@' + 'c893c7eec4706f8c7fc244ee254b1dadd8f8d158',
66
  'v8/tools/luci-go':
v8-autoroll's avatar
v8-autoroll committed
67
    Var('chromium_url') + '/chromium/src/tools/luci-go.git' + '@' + 'ff0709d4283b1f233dcf0c9fec1672c6ecaed2f1',
68
  'v8/test/wasm-js':
69
    Var('chromium_url') + '/external/github.com/WebAssembly/spec.git' + '@' + '27d63f22e72395248d314520b3ad5b1e0943fc10',
70 71
}

72
recursedeps = [
73 74
  'v8/buildtools',
  'v8/third_party/android_tools',
75
]
76

77 78
include_rules = [
  # Everybody can use some things.
79 80 81
  '+include',
  '+unicode',
  '+third_party/fdlibm',
82 83 84 85
]

# checkdeps.py shouldn't check for includes in these directories:
skip_child_includes = [
86 87
  'build',
  'third_party',
88 89
]

90
hooks = [
91 92 93 94 95 96 97 98 99 100 101
  {
    # Ensure that the DEPS'd "depot_tools" has its self-update capability
    # disabled.
    'name': 'disable_depot_tools_selfupdate',
    'pattern': '.',
    'action': [
        'python',
        'v8/third_party/depot_tools/update_depot_tools_toggle.py',
        '--disable',
    ],
  },
102 103 104 105 106 107 108 109
  {
    # This clobbers when necessary (based on get_landmines.py). It must be the
    # first hook so that other things that get/generate into the output
    # directory will not subsequently be clobbered.
    'name': 'landmines',
    'pattern': '.',
    'action': [
        'python',
110 111 112
        'v8/build/landmines.py',
        '--landmine-scripts',
        'v8/tools/get_landmines.py',
113 114
    ],
  },
115 116
  # Pull clang-format binaries using checked-in hashes.
  {
117 118
    'name': 'clang_format_win',
    'pattern': '.',
119
    'condition': 'host_os == "win"',
120 121 122 123 124 125
    'action': [ 'download_from_google_storage',
                '--no_resume',
                '--platform=win32',
                '--no_auth',
                '--bucket', 'chromium-clang-format',
                '-s', 'v8/buildtools/win/clang-format.exe.sha1',
126 127 128
    ],
  },
  {
129 130
    'name': 'clang_format_mac',
    'pattern': '.',
131
    'condition': 'host_os == "mac"',
132 133 134 135 136 137
    'action': [ 'download_from_google_storage',
                '--no_resume',
                '--platform=darwin',
                '--no_auth',
                '--bucket', 'chromium-clang-format',
                '-s', 'v8/buildtools/mac/clang-format.sha1',
138 139 140
    ],
  },
  {
141 142
    'name': 'clang_format_linux',
    'pattern': '.',
143
    'condition': 'host_os == "linux"',
144 145 146 147 148 149
    'action': [ 'download_from_google_storage',
                '--no_resume',
                '--platform=linux*',
                '--no_auth',
                '--bucket', 'chromium-clang-format',
                '-s', 'v8/buildtools/linux64/clang-format.sha1',
150 151
    ],
  },
152 153 154
  {
    'name': 'gcmole',
    'pattern': '.',
155 156 157 158 159 160
    'condition': 'download_gcmole',
    'action': [ 'download_from_google_storage',
                '--bucket', 'chrome-v8-gcmole',
                '-u', '--no_resume',
                '-s', 'v8/tools/gcmole/gcmole-tools.tar.gz.sha1',
                '--platform=linux*',
161 162
    ],
  },
163 164 165
  {
    'name': 'jsfunfuzz',
    'pattern': '.',
166 167 168 169 170 171
    'condition': 'download_jsfunfuzz',
    'action': [ 'download_from_google_storage',
                '--bucket', 'chrome-v8-jsfunfuzz',
                '-u', '--no_resume',
                '-s', 'v8/tools/jsfunfuzz/jsfunfuzz.tar.gz.sha1',
                '--platform=linux*',
172 173
    ],
  },
174 175 176 177
  # Pull luci-go binaries (isolate, swarming) using checked-in hashes.
  {
    'name': 'luci-go_win',
    'pattern': '.',
178
    'condition': 'host_os == "win"',
179 180 181 182 183 184 185 186 187 188 189
    'action': [ 'download_from_google_storage',
                '--no_resume',
                '--platform=win32',
                '--no_auth',
                '--bucket', 'chromium-luci',
                '-d', 'v8/tools/luci-go/win64',
    ],
  },
  {
    'name': 'luci-go_mac',
    'pattern': '.',
190
    'condition': 'host_os == "mac"',
191 192 193 194 195 196 197 198 199 200 201
    'action': [ 'download_from_google_storage',
                '--no_resume',
                '--platform=darwin',
                '--no_auth',
                '--bucket', 'chromium-luci',
                '-d', 'v8/tools/luci-go/mac64',
    ],
  },
  {
    'name': 'luci-go_linux',
    'pattern': '.',
202
    'condition': 'host_os == "linux"',
203 204 205 206 207 208 209 210
    'action': [ 'download_from_google_storage',
                '--no_resume',
                '--platform=linux*',
                '--no_auth',
                '--bucket', 'chromium-luci',
                '-d', 'v8/tools/luci-go/linux64',
    ],
  },
211 212
  # Pull GN using checked-in hashes.
  {
213 214
    'name': 'gn_win',
    'pattern': '.',
215
    'condition': 'host_os == "win"',
216 217 218 219 220 221
    'action': [ 'download_from_google_storage',
                '--no_resume',
                '--platform=win32',
                '--no_auth',
                '--bucket', 'chromium-gn',
                '-s', 'v8/buildtools/win/gn.exe.sha1',
222 223 224
    ],
  },
  {
225 226
    'name': 'gn_mac',
    'pattern': '.',
227
    'condition': 'host_os == "mac"',
228 229 230 231 232 233
    'action': [ 'download_from_google_storage',
                '--no_resume',
                '--platform=darwin',
                '--no_auth',
                '--bucket', 'chromium-gn',
                '-s', 'v8/buildtools/mac/gn.sha1',
234 235 236
    ],
  },
  {
237 238
    'name': 'gn_linux',
    'pattern': '.',
239
    'condition': 'host_os == "linux"',
240 241 242 243 244 245
    'action': [ 'download_from_google_storage',
                '--no_resume',
                '--platform=linux*',
                '--no_auth',
                '--bucket', 'chromium-gn',
                '-s', 'v8/buildtools/linux64/gn.sha1',
246 247
    ],
  },
248
  {
249 250 251 252 253 254 255 256
    'name': 'wasm_spec_tests',
    'pattern': '.',
    'action': [ 'download_from_google_storage',
                '--no_resume',
                '--no_auth',
                '-u',
                '--bucket', 'v8-wasm-spec-tests',
                '-s', 'v8/test/wasm-spec-tests/tests.tar.gz.sha1',
257 258
    ],
  },
259
  {
260 261 262 263 264 265 266 267
    'name': 'closure_compiler',
    'pattern': '.',
    'action': [ 'download_from_google_storage',
                '--no_resume',
                '--no_auth',
                '-u',
                '--bucket', 'chromium-v8-closure-compiler',
                '-s', 'v8/src/inspector/build/closure-compiler.tar.gz.sha1',
268 269
    ],
  },
270
  {
Michael Achenbach's avatar
Michael Achenbach committed
271
    'name': 'sysroot_arm',
272
    'pattern': '.',
273
    'condition': '(checkout_linux and checkout_arm)',
Michael Achenbach's avatar
Michael Achenbach committed
274 275 276 277 278 279
    'action': ['python', 'v8/build/linux/sysroot_scripts/install-sysroot.py',
               '--arch=arm'],
  },
  {
    'name': 'sysroot_arm64',
    'pattern': '.',
280
    'condition': '(checkout_linux and checkout_arm64)',
Michael Achenbach's avatar
Michael Achenbach committed
281 282 283 284 285 286
    'action': ['python', 'v8/build/linux/sysroot_scripts/install-sysroot.py',
               '--arch=arm64'],
  },
  {
    'name': 'sysroot_x86',
    'pattern': '.',
287
    'condition': '(checkout_linux and (checkout_x86 or checkout_x64))',
Michael Achenbach's avatar
Michael Achenbach committed
288 289 290 291 292 293
    'action': ['python', 'v8/build/linux/sysroot_scripts/install-sysroot.py',
               '--arch=x86'],
  },
  {
    'name': 'sysroot_mips',
    'pattern': '.',
294
    'condition': '(checkout_linux and checkout_mips)',
Michael Achenbach's avatar
Michael Achenbach committed
295 296 297 298 299 300
    'action': ['python', 'v8/build/linux/sysroot_scripts/install-sysroot.py',
               '--arch=mips'],
  },
  {
    'name': 'sysroot_x64',
    'pattern': '.',
301
    'condition': 'checkout_linux and checkout_x64',
Michael Achenbach's avatar
Michael Achenbach committed
302 303
    'action': ['python', 'v8/build/linux/sysroot_scripts/install-sysroot.py',
               '--arch=x64'],
304
  },
305
  {
306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325
    'name': 'msan_chained_origins',
    'pattern': '.',
    'condition': 'checkout_instrumented_libraries',
    'action': [ 'download_from_google_storage',
                '--no_resume',
                '--no_auth',
                '--bucket', 'chromium-instrumented-libraries',
                '-s', 'v8/third_party/instrumented_libraries/binaries/msan-chained-origins-trusty.tgz.sha1',
              ],
  },
  {
    'name': 'msan_no_origins',
    'pattern': '.',
    'condition': 'checkout_instrumented_libraries',
    'action': [ 'download_from_google_storage',
                '--no_resume',
                '--no_auth',
                '--bucket', 'chromium-instrumented-libraries',
                '-s', 'v8/third_party/instrumented_libraries/binaries/msan-no-origins-trusty.tgz.sha1',
              ],
326
  },
327 328 329 330
  {
    # Update the Windows toolchain if necessary.
    'name': 'win_toolchain',
    'pattern': '.',
331
    'condition': 'checkout_win',
332
    'action': ['python', 'v8/build/vs_toolchain.py', 'update'],
333
  },
334 335 336 337 338 339
  # Pull binutils for linux, enabled debug fission for faster linking /
  # debugging when used with clang on Ubuntu Precise.
  # https://code.google.com/p/chromium/issues/detail?id=352046
  {
    'name': 'binutils',
    'pattern': 'v8/third_party/binutils',
340
    'condition': 'host_os == "linux"',
341 342 343 344 345
    'action': [
        'python',
        'v8/third_party/binutils/download.py',
    ],
  },
346 347 348 349
  {
    # Note: On Win, this should run after win_toolchain, as it may use it.
    'name': 'clang',
    'pattern': '.',
350 351
    # clang not supported on aix
    'condition': 'host_os != "aix"',
352
    'action': ['python', 'v8/tools/clang/scripts/update.py'],
353
  },
354 355 356 357 358 359 360 361 362
  {
    'name': 'fuchsia_sdk',
    'pattern': '.',
    'condition': 'checkout_fuchsia',
    'action': [
      'python',
      'v8/build/fuchsia/update_sdk.py',
    ],
  },
363 364 365 366 367 368 369 370 371 372 373 374 375
  {
    'name': 'mips_toolchain',
    'pattern': '.',
    'condition': 'download_mips_toolchain',
    'action': [ 'download_from_google_storage',
                '--no_resume',
                '--platform=linux',
                '--no_auth',
                '-u',
                '--bucket', 'chromium-v8',
                '-s', 'v8/tools/mips_toolchain.tar.gz.sha1',
    ],
  },
376 377 378 379 380 381 382 383 384 385
  # Download and initialize "vpython" VirtualEnv environment packages.
  {
    'name': 'vpython_common',
    'pattern': '.',
    'condition': 'checkout_android',
    'action': [ 'vpython',
                '-vpython-spec', 'v8/.vpython',
                '-vpython-tool', 'install',
    ],
  },
386
]