DEPS 18.3 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
  'android_url': 'https://android.googlesource.com',
9 10
  'download_gcmole': False,
  'download_jsfunfuzz': False,
11
  'download_mips_toolchain': False,
12
  'check_v8_header_includes': False,
13

14
  # GN CIPD package version.
15
  'gn_version': 'git_revision:0790d3043387c762a6bacb1ae0a9ebe883188ab2',
16

17
  # luci-go CIPD package version.
18
  'luci_go': 'git_revision:25958d48e89e980e2a97daeddc977fb5e2e1fb8c',
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55

  # Three lines of non-changing comments so that
  # the commit queue can handle CLs rolling android_sdk_build-tools_version
  # and whatever else without interference from each other.
  'android_sdk_build-tools_version': 'DLK621q5_Bga5EsOr7cp6bHWWxFKx6UHLu_Ix_m3AckC',
  # Three lines of non-changing comments so that
  # the commit queue can handle CLs rolling android_sdk_emulator_version
  # and whatever else without interference from each other.
  'android_sdk_emulator_version': 'ki7EDQRAiZAUYlnTWR1XmI6cJTk65fJ-DNZUU1zrtS8C',
  # Three lines of non-changing comments so that
  # the commit queue can handle CLs rolling android_sdk_extras_version
  # and whatever else without interference from each other.
  'android_sdk_extras_version': 'iIwhhDox5E-mHgwUhCz8JACWQCpUjdqt5KTY9VLugKQC',
  # Three lines of non-changing comments so that
  # the commit queue can handle CLs rolling android_sdk_patcher_version
  # and whatever else without interference from each other.
  'android_sdk_patcher_version': 'I6FNMhrXlpB-E1lOhMlvld7xt9lBVNOO83KIluXDyA0C',
  # Three lines of non-changing comments so that
  # the commit queue can handle CLs rolling android_sdk_platform-tools_version
  # and whatever else without interference from each other.
  'android_sdk_platform-tools_version': '4Y2Cb2LGzoc-qt-oIUIlhySotJaKeE3ELFedSVe6Uk8C',
  # Three lines of non-changing comments so that
  # the commit queue can handle CLs rolling android_sdk_platforms_version
  # and whatever else without interference from each other.
  'android_sdk_platforms_version': 'Kg2t9p0YnQk8bldUv4VA3o156uPXLUfIFAmVZ-Gm5ewC',
  # Three lines of non-changing comments so that
  # the commit queue can handle CLs rolling android_sdk_sources_version
  # and whatever else without interference from each other.
  'android_sdk_sources_version': 'K9uEn3JvNELEVjjVK_GQD3ZQD3rqAnJSxCWxjmUmRkgC',
  # Three lines of non-changing comments so that
  # the commit queue can handle CLs rolling android_sdk_tools_version
  # and whatever else without interference from each other.
  'android_sdk_tools_version': 'wYcRQC2WHsw2dKWs4EA7fw9Qsyzu1ds1_fRjKmGxe5QC',
  # Three lines of non-changing comments so that
  # the commit queue can handle CLs rolling android_sdk_tools-lint_version
  # and whatever else without interference from each other.
  'android_sdk_tools-lint_version': '89hXqZYzCum3delB5RV7J_QyWkaRodqdtQS0s3LMh3wC',
56 57
}

58
deps = {
59
  'v8/build':
60
    Var('chromium_url') + '/chromium/src/build.git' + '@' + 'a72af28e1c85da995fc8ed81e098253283629feb',
61
  'v8/third_party/depot_tools':
62
    Var('chromium_url') + '/chromium/tools/depot_tools.git' + '@' + '8d3ba46327207c40e66b4ec818cec077f0ac08cf',
63
  'v8/third_party/icu':
64
    Var('chromium_url') + '/chromium/deps/icu.git' + '@' + 'b10cc9f714e6da621c94de0f1e6090c176f876ae',
65
  'v8/third_party/instrumented_libraries':
Michael Achenbach's avatar
Michael Achenbach committed
66
    Var('chromium_url') + '/chromium/src/third_party/instrumented_libraries.git' + '@' + 'a959e4f0cb643003f2d75d179cede449979e3e77',
67
  'v8/buildtools':
68
    Var('chromium_url') + '/chromium/src/buildtools.git' + '@' + '459baaf66bee809f6eb288e0215cf524f4d2429a',
69 70
  'v8/buildtools/clang_format/script':
    Var('chromium_url') + '/chromium/llvm-project/cfe/tools/clang-format.git' + '@' + '96636aa0e9f047f17447f2d45a094d0b59ed7917',
71 72 73 74 75 76 77 78
  'v8/buildtools/linux64': {
    'packages': [
      {
        'package': 'gn/gn/linux-amd64',
        'version': Var('gn_version'),
      }
    ],
    'dep_type': 'cipd',
79
    'condition': 'host_os == "linux"',
80 81 82 83 84 85 86 87 88
  },
  'v8/buildtools/mac': {
    'packages': [
      {
        'package': 'gn/gn/mac-amd64',
        'version': Var('gn_version'),
      }
    ],
    'dep_type': 'cipd',
89
    'condition': 'host_os == "mac"',
90
  },
91
  'v8/buildtools/third_party/libc++/trunk':
92
    Var('chromium_url') + '/chromium/llvm-project/libcxx.git' + '@' + '955113db37563c8632e31ddcff2047845553d7ff',
93
  'v8/buildtools/third_party/libc++abi/trunk':
Michael Achenbach's avatar
Michael Achenbach committed
94
    Var('chromium_url') + '/chromium/llvm-project/libcxxabi.git' + '@' + '0d529660e32d77d9111912d73f2c74fc5fa2a858',
95 96
  'v8/buildtools/third_party/libunwind/trunk':
    Var('chromium_url') + '/external/llvm.org/libunwind.git' + '@' + '69d9b84cca8354117b9fe9705a4430d789ee599b',
97 98 99 100 101 102 103 104
  'v8/buildtools/win': {
    'packages': [
      {
        'package': 'gn/gn/windows-amd64',
        'version': Var('gn_version'),
      }
    ],
    'dep_type': 'cipd',
105
    'condition': 'host_os == "win"',
106
  },
107
  'v8/base/trace_event/common':
108
    Var('chromium_url') + '/chromium/src/base/trace_event/common.git' + '@' + 'c69a8ff37f50e1f22fee4af252cf00960ca06c2b',
Michael Achenbach's avatar
Michael Achenbach committed
109
  'v8/third_party/android_ndk': {
Sergiy Byelozyorov's avatar
Sergiy Byelozyorov committed
110
    'url': Var('chromium_url') + '/android_ndk.git' + '@' + '4e2cea441bfd43f0863d14f57b1e1844260b9884',
Michael Achenbach's avatar
Michael Achenbach committed
111 112
    'condition': 'checkout_android',
  },
113
  # This is deprecated.
114
  'v8/third_party/android_tools': {
115
    'url': Var('chromium_url') + '/android_tools.git' + '@' + '347a7c8078a009e98995985b7ab6ec6b35696dea',
116 117
    'condition': 'checkout_android',
  },
118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156
  'v8/third_party/android_sdk/public': {
      'packages': [
          {
              'package': 'chromium/third_party/android_sdk/public/build-tools',
              'version': Var('android_sdk_build-tools_version'),
          },
          {
              'package': 'chromium/third_party/android_sdk/public/emulator',
              'version': Var('android_sdk_emulator_version'),
          },
          {
              'package': 'chromium/third_party/android_sdk/public/extras',
              'version': Var('android_sdk_extras_version'),
          },
          {
              'package': 'chromium/third_party/android_sdk/public/patcher',
              'version': Var('android_sdk_patcher_version'),
          },
          {
              'package': 'chromium/third_party/android_sdk/public/platform-tools',
              'version': Var('android_sdk_platform-tools_version'),
          },
          {
              'package': 'chromium/third_party/android_sdk/public/platforms',
              'version': Var('android_sdk_platforms_version'),
          },
          {
              'package': 'chromium/third_party/android_sdk/public/sources',
              'version': Var('android_sdk_sources_version'),
          },
          {
              'package': 'chromium/third_party/android_sdk/public/tools',
              'version': Var('android_sdk_tools_version'),
          },
          {
              'package': 'chromium/third_party/android_sdk/public/tools-lint',
              'version': Var('android_sdk_tools-lint_version'),
          },
      ],
157 158
      'condition': 'checkout_android',
      'dep_type': 'cipd',
159 160
  },
  'v8/third_party/catapult': {
161
    'url': Var('chromium_url') + '/catapult.git' + '@' + '5b63b1f34a1b0536d67af70214035459c276f588',
162
    'condition': 'checkout_android',
163
  },
164 165 166 167
  'v8/third_party/colorama/src': {
    'url': Var('chromium_url') + '/external/colorama.git' + '@' + '799604a1041e9b3bc5d2789ecbd7e8db2e18e6b8',
    'condition': 'checkout_android',
  },
Michael Achenbach's avatar
Michael Achenbach committed
168
  'v8/third_party/fuchsia-sdk': {
169
    'url': Var('chromium_url') + '/chromium/src/third_party/fuchsia-sdk.git' + '@' + '8e8db13b538ecb251e5ce9d5c781fc142f9752fd',
Michael Achenbach's avatar
Michael Achenbach committed
170 171
    'condition': 'checkout_fuchsia',
  },
172
  'v8/third_party/googletest/src':
173
    Var('chromium_url') + '/external/github.com/google/googletest.git' + '@' + 'a18ac392d883ca88d1849b90071cea5608fd9293',
174
  'v8/third_party/jinja2':
175
    Var('chromium_url') + '/chromium/src/third_party/jinja2.git' + '@' + 'b41863e42637544c2941b574c7877d3e1f663e25',
176 177 178
  'v8/third_party/markupsafe':
    Var('chromium_url') + '/chromium/src/third_party/markupsafe.git' + '@' + '8f45f5cfa0009d2a70589bcda0349b8cb2b72783',
  'v8/tools/swarming_client':
179
    Var('chromium_url') + '/infra/luci/client-py.git' + '@' + 'aa60736aded9fc32a0e21a81f5fc51f6009d01f3',
180 181 182 183 184
  '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':
Frank Tang's avatar
Frank Tang committed
185
    Var('chromium_url') + '/external/github.com/tc39/test262.git' + '@' + 'de567d3aa5de4eaa11e00131d26b9fe77997dfb0',
186
  'v8/test/test262/harness':
187
    Var('chromium_url') + '/external/github.com/test262-utils/test262-harness-py.git' + '@' + '9bd99c6f33be10561970bfe16f2f16a8a3d88722',
188
  'v8/third_party/qemu-linux-x64': {
189 190 191 192 193 194
      'packages': [
          {
              'package': 'fuchsia/qemu/linux-amd64',
              'version': '9cc486c5b18a0be515c39a280ca9a309c54cf994'
          },
      ],
195
      'condition': 'host_os == "linux" and checkout_fuchsia',
196 197
      'dep_type': 'cipd',
  },
198 199 200 201 202 203 204 205 206 207
  'v8/third_party/qemu-mac-x64': {
      'packages': [
          {
              'package': 'fuchsia/qemu/mac-amd64',
              'version': '2d3358ae9a569b2d4a474f498b32b202a152134f'
          },
      ],
      'condition': 'host_os == "mac" and checkout_fuchsia',
      'dep_type': 'cipd',
  },
208
  'v8/tools/clang':
209
    Var('chromium_url') + '/chromium/src/tools/clang.git' + '@' + '82dbc02fe15cd9b2cd868f73e8ffdc62398f3ffe',
210 211 212 213
  'v8/tools/luci-go': {
      'packages': [
        {
          'package': 'infra/tools/luci/isolate/${{platform}}',
214 215 216 217 218 219 220 221 222
          'version': Var('luci_go'),
        },
        {
          'package': 'infra/tools/luci/isolated/${{platform}}',
          'version': Var('luci_go'),
        },
        {
          'package': 'infra/tools/luci/swarming/${{platform}}',
          'version': Var('luci_go'),
223 224
        },
      ],
225
      'condition': 'host_cpu != "s390"',
226 227
      'dep_type': 'cipd',
  },
228
  'v8/tools/clang/dsymutil': {
229 230 231
    'packages': [
      {
        'package': 'chromium/llvm-build-tools/dsymutil',
232
        'version': 'OWlhXkmj18li3yhJk59Kmjbc5KdgLh56TwCd1qBdzlIC',
233 234 235 236 237
      }
    ],
    'condition': 'checkout_mac',
    'dep_type': 'cipd',
  },
238
  'v8/test/wasm-js/data':
239
    Var('chromium_url') + '/external/github.com/WebAssembly/spec.git' + '@' + '8059cd6a68e9c8b874844051596fe1e0158eee91',
240
  'v8/third_party/perfetto':
241
    Var('android_url') + '/platform/external/perfetto.git' + '@' + '21a33afeef568f72668acf77668a32307a363d6e',
242
  'v8/third_party/protobuf':
243
    Var('chromium_url') + '/external/github.com/google/protobuf'+ '@' + 'b68a347f56137b4b1a746e8c7438495a6ac1bd91',
244
}
245
recursedeps = [
246
  'v8/third_party/android_tools',
247
]
248

249 250
include_rules = [
  # Everybody can use some things.
251 252 253
  '+include',
  '+unicode',
  '+third_party/fdlibm',
254 255 256 257
]

# checkdeps.py shouldn't check for includes in these directories:
skip_child_includes = [
258 259
  'build',
  'third_party',
260 261
]

262
hooks = [
263 264 265 266 267 268 269 270 271 272 273
  {
    # 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',
    ],
  },
274 275 276 277 278 279 280 281
  {
    # 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',
282 283 284
        'v8/build/landmines.py',
        '--landmine-scripts',
        'v8/tools/get_landmines.py',
285 286
    ],
  },
287 288
  # Pull clang-format binaries using checked-in hashes.
  {
289 290
    'name': 'clang_format_win',
    'pattern': '.',
291
    'condition': 'host_os == "win"',
292 293 294 295 296 297
    'action': [ 'download_from_google_storage',
                '--no_resume',
                '--platform=win32',
                '--no_auth',
                '--bucket', 'chromium-clang-format',
                '-s', 'v8/buildtools/win/clang-format.exe.sha1',
298 299 300
    ],
  },
  {
301 302
    'name': 'clang_format_mac',
    'pattern': '.',
303
    'condition': 'host_os == "mac"',
304 305 306 307 308 309
    'action': [ 'download_from_google_storage',
                '--no_resume',
                '--platform=darwin',
                '--no_auth',
                '--bucket', 'chromium-clang-format',
                '-s', 'v8/buildtools/mac/clang-format.sha1',
310 311 312
    ],
  },
  {
313 314
    'name': 'clang_format_linux',
    'pattern': '.',
315
    'condition': 'host_os == "linux"',
316 317 318 319 320 321
    'action': [ 'download_from_google_storage',
                '--no_resume',
                '--platform=linux*',
                '--no_auth',
                '--bucket', 'chromium-clang-format',
                '-s', 'v8/buildtools/linux64/clang-format.sha1',
322 323
    ],
  },
324 325 326
  {
    'name': 'gcmole',
    'pattern': '.',
327 328 329 330 331 332
    '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*',
333 334
    ],
  },
335 336 337
  {
    'name': 'jsfunfuzz',
    'pattern': '.',
338 339 340 341 342 343
    '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*',
344 345
    ],
  },
346
  {
347 348 349 350 351 352 353 354
    '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',
355 356
    ],
  },
357
  {
Michael Achenbach's avatar
Michael Achenbach committed
358
    'name': 'sysroot_arm',
359
    'pattern': '.',
360
    'condition': '(checkout_linux and checkout_arm)',
Michael Achenbach's avatar
Michael Achenbach committed
361 362 363 364 365 366
    'action': ['python', 'v8/build/linux/sysroot_scripts/install-sysroot.py',
               '--arch=arm'],
  },
  {
    'name': 'sysroot_arm64',
    'pattern': '.',
367
    'condition': '(checkout_linux and checkout_arm64)',
Michael Achenbach's avatar
Michael Achenbach committed
368 369 370 371 372 373
    'action': ['python', 'v8/build/linux/sysroot_scripts/install-sysroot.py',
               '--arch=arm64'],
  },
  {
    'name': 'sysroot_x86',
    'pattern': '.',
374
    'condition': '(checkout_linux and (checkout_x86 or checkout_x64))',
Michael Achenbach's avatar
Michael Achenbach committed
375 376 377 378 379 380
    'action': ['python', 'v8/build/linux/sysroot_scripts/install-sysroot.py',
               '--arch=x86'],
  },
  {
    'name': 'sysroot_mips',
    'pattern': '.',
381
    'condition': '(checkout_linux and checkout_mips)',
Michael Achenbach's avatar
Michael Achenbach committed
382 383 384 385 386 387
    'action': ['python', 'v8/build/linux/sysroot_scripts/install-sysroot.py',
               '--arch=mips'],
  },
  {
    'name': 'sysroot_x64',
    'pattern': '.',
388
    'condition': 'checkout_linux and checkout_x64',
Michael Achenbach's avatar
Michael Achenbach committed
389 390
    'action': ['python', 'v8/build/linux/sysroot_scripts/install-sysroot.py',
               '--arch=x64'],
391
  },
392
  {
393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412
    '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',
              ],
413
  },
414 415 416 417
  {
    # Update the Windows toolchain if necessary.
    'name': 'win_toolchain',
    'pattern': '.',
418
    'condition': 'checkout_win',
419
    'action': ['python', 'v8/build/vs_toolchain.py', 'update'],
420
  },
421 422 423 424 425 426
  # 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',
427
    'condition': 'host_os == "linux"',
428 429 430 431 432
    'action': [
        'python',
        'v8/third_party/binutils/download.py',
    ],
  },
433 434 435 436
  {
    # Note: On Win, this should run after win_toolchain, as it may use it.
    'name': 'clang',
    'pattern': '.',
437 438
    # clang not supported on aix
    'condition': 'host_os != "aix"',
439
    'action': ['python', 'v8/tools/clang/scripts/update.py'],
440
  },
Sergiy Byelozyorov's avatar
Sergiy Byelozyorov committed
441 442 443 444 445 446 447
  {
    # Update LASTCHANGE.
    'name': 'lastchange',
    'pattern': '.',
    'action': ['python', 'v8/build/util/lastchange.py',
               '-o', 'v8/build/util/LASTCHANGE'],
  },
448 449 450 451 452 453 454 455 456
  {
    'name': 'fuchsia_sdk',
    'pattern': '.',
    'condition': 'checkout_fuchsia',
    'action': [
      'python',
      'v8/build/fuchsia/update_sdk.py',
    ],
  },
457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473
  {
    # Mac doesn't use lld so it's not included in the default clang bundle
    # there. However, lld is need in Fuchsia cross builds, so
    # download it there.
    # Should run after the clang hook.
    'name': 'lld/mac',
    'pattern': '.',
    'condition': 'host_os == "mac" and checkout_fuchsia',
    'action': ['python', 'v8/tools/clang/scripts/download_lld_mac.py'],
  },
  {
      # Mac does not have llvm-objdump, download it for cross builds in Fuchsia.
    'name': 'llvm-objdump',
    'pattern': '.',
    'condition': 'host_os == "mac" and checkout_fuchsia',
    'action': ['python', 'v8/tools/clang/scripts/download_objdump.py'],
  },
474 475 476 477 478 479 480 481 482 483 484 485 486
  {
    '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',
    ],
  },
487 488 489 490 491 492 493 494 495 496
  # Download and initialize "vpython" VirtualEnv environment packages.
  {
    'name': 'vpython_common',
    'pattern': '.',
    'condition': 'checkout_android',
    'action': [ 'vpython',
                '-vpython-spec', 'v8/.vpython',
                '-vpython-tool', 'install',
    ],
  },
497 498 499 500 501 502 503 504 505
  {
    'name': 'check_v8_header_includes',
    'pattern': '.',
    'condition': 'check_v8_header_includes',
    'action': [
      'python',
      'v8/tools/generate-header-include-checks.py',
    ],
  },
506
]