DEPS 18.6 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 6 7 8 9
gclient_gn_args_file = 'v8/build/config/gclient_args.gni'
gclient_gn_args = [
  'checkout_aemu'
]

10
vars = {
11 12 13
  # By Default, do not checkout AEMU, as it is too big, as is done in Chromium.
  'checkout_aemu': False,

Sigurd Schneider's avatar
Sigurd Schneider committed
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
  # Fetches only the SDK boot images which match at least one of the whitelist
  # entries in a comma-separated list.
  #
  # Only the X64 and ARM64 QEMU images are downloaded by default. Developers
  # that need to boot on other target architectures or devices can opt to
  # download more boot images. Example of images include:
  #
  # Emulation:
  #   qemu.x64, qemu.arm64
  # Hardware:
  #   generic.x64, generic.arm64
  #
  # Wildcards are supported (e.g. "qemu.*").
  'checkout_fuchsia_boot_images': "qemu.x64,qemu.arm64",

29
  'checkout_instrumented_libraries': False,
30
  'chromium_url': 'https://chromium.googlesource.com',
31
  'android_url': 'https://android.googlesource.com',
32 33
  'download_gcmole': False,
  'download_jsfunfuzz': False,
34
  'check_v8_header_includes': False,
35

36
  # GN CIPD package version.
37
  'gn_version': 'git_revision:ad9e442d92dcd9ee73a557428cfc336b55cbd533',
38

39
  # luci-go CIPD package version.
40
  'luci_go': 'git_revision:7d11fd9e66407c49cb6c8546a2ae45ea993a240c',
41 42 43 44

  # 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.
45
  'android_sdk_build-tools_version': '5DL7LQQjVMLClXLzLgmGysccPGsGcjJdvH9z5-uetiIC',
46 47 48
  # 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.
49
  'android_sdk_emulator_version': 'xhyuoquVvBTcJelgRjMKZeoBVSQRjB7pLVJPt5C9saIC',
50 51 52
  # 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.
53
  'android_sdk_extras_version': 'ppQ4TnqDvBHQ3lXx5KPq97egzF5X2FFyOrVHkGmiTMQC',
54 55 56 57 58 59 60
  # 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.
61
  'android_sdk_platform-tools_version': 'MSnxgXN7IurL-MQs1RrTkSFSb8Xd1UtZjLArI8Ty1FgC',
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
  # 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',
78 79
}

80
deps = {
81
  'v8/build':
82
    Var('chromium_url') + '/chromium/src/build.git' + '@' + '6f08017e236ae453a21b60f239f78d3294b1d582',
83
  'v8/third_party/depot_tools':
84
    Var('chromium_url') + '/chromium/tools/depot_tools.git' + '@' + '23247b99321549c24e62ad45200409419423695d',
85
  'v8/third_party/icu':
86
    Var('chromium_url') + '/chromium/deps/icu.git' + '@' + '88ea42af73f4cd3b8b0d0837403d75a989d80504',
87
  'v8/third_party/instrumented_libraries':
88
    Var('chromium_url') + '/chromium/src/third_party/instrumented_libraries.git' + '@' + 'b627b3e0269466dbcc97052d0dbb6758d2eff059',
89
  'v8/buildtools':
Maya Lekova's avatar
Maya Lekova committed
90
    Var('chromium_url') + '/chromium/src/buildtools.git' + '@' + '140e4d7c45ffb55ce5dc4d11a0c3938363cd8257',
91 92
  'v8/buildtools/clang_format/script':
    Var('chromium_url') + '/chromium/llvm-project/cfe/tools/clang-format.git' + '@' + '96636aa0e9f047f17447f2d45a094d0b59ed7917',
93 94 95 96 97 98 99 100
  'v8/buildtools/linux64': {
    'packages': [
      {
        'package': 'gn/gn/linux-amd64',
        'version': Var('gn_version'),
      }
    ],
    'dep_type': 'cipd',
101
    'condition': 'host_os == "linux"',
102 103 104 105 106 107 108 109 110
  },
  'v8/buildtools/mac': {
    'packages': [
      {
        'package': 'gn/gn/mac-amd64',
        'version': Var('gn_version'),
      }
    ],
    'dep_type': 'cipd',
111
    'condition': 'host_os == "mac"',
112
  },
113
  'v8/buildtools/third_party/libc++/trunk':
114
    Var('chromium_url') + '/chromium/llvm-project/libcxx.git' + '@' + '5938e0582bac570a41edb3d6a2217c299adc1bc6',
115
  'v8/buildtools/third_party/libc++abi/trunk':
Michael Achenbach's avatar
Michael Achenbach committed
116
    Var('chromium_url') + '/chromium/llvm-project/libcxxabi.git' + '@' + '0d529660e32d77d9111912d73f2c74fc5fa2a858',
117 118
  'v8/buildtools/third_party/libunwind/trunk':
    Var('chromium_url') + '/external/llvm.org/libunwind.git' + '@' + '69d9b84cca8354117b9fe9705a4430d789ee599b',
119 120 121 122 123 124 125 126
  'v8/buildtools/win': {
    'packages': [
      {
        'package': 'gn/gn/windows-amd64',
        'version': Var('gn_version'),
      }
    ],
    'dep_type': 'cipd',
127
    'condition': 'host_os == "win"',
128
  },
129
  'v8/base/trace_event/common':
130
    Var('chromium_url') + '/chromium/src/base/trace_event/common.git' + '@' + '5e4fce17a9d2439c44a7b57ceecef6df9287ec2f',
Michael Achenbach's avatar
Michael Achenbach committed
131
  'v8/third_party/android_ndk': {
132
    'url': Var('chromium_url') + '/android_ndk.git' + '@' + '89e8db0cdf323af8bc24de875d7d2a43a66bf10e',
Michael Achenbach's avatar
Michael Achenbach committed
133 134
    'condition': 'checkout_android',
  },
135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173
  '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'),
          },
      ],
174 175
      'condition': 'checkout_android',
      'dep_type': 'cipd',
176 177
  },
  'v8/third_party/catapult': {
178
    'url': Var('chromium_url') + '/catapult.git' + '@' + '1944f6e6df687cc33511a9bdfa7622aadda94d1f',
179
    'condition': 'checkout_android',
180
  },
181 182 183 184
  'v8/third_party/colorama/src': {
    'url': Var('chromium_url') + '/external/colorama.git' + '@' + '799604a1041e9b3bc5d2789ecbd7e8db2e18e6b8',
    'condition': 'checkout_android',
  },
Michael Achenbach's avatar
Michael Achenbach committed
185
  'v8/third_party/fuchsia-sdk': {
186
    'url': Var('chromium_url') + '/chromium/src/third_party/fuchsia-sdk.git' + '@' + '1785f0ac8e1fe81cb25e260acbe7de8f62fa3e44',
Michael Achenbach's avatar
Michael Achenbach committed
187 188
    'condition': 'checkout_fuchsia',
  },
189
  'v8/third_party/googletest/src':
190
    Var('chromium_url') + '/external/github.com/google/googletest.git' + '@' + 'f2fb48c3b3d79a75a88a99fba6576b25d42ec528',
191
  'v8/third_party/jinja2':
192
    Var('chromium_url') + '/chromium/src/third_party/jinja2.git' + '@' + 'b41863e42637544c2941b574c7877d3e1f663e25',
193 194 195
  'v8/third_party/markupsafe':
    Var('chromium_url') + '/chromium/src/third_party/markupsafe.git' + '@' + '8f45f5cfa0009d2a70589bcda0349b8cb2b72783',
  'v8/tools/swarming_client':
196
    Var('chromium_url') + '/infra/luci/client-py.git' + '@' + '885b3febcc170a60f25795304e60927b77d1e92d',
197 198 199 200 201
  '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
202
    Var('chromium_url') + '/external/github.com/tc39/test262.git' + '@' + '21195de94cfc36eadbde00a825ca7efb3d9c3dde',
203
  'v8/test/test262/harness':
Tamer Tas's avatar
Tamer Tas committed
204
    Var('chromium_url') + '/external/github.com/test262-utils/test262-harness-py.git' + '@' + '4555345a943d0c99a9461182705543fb171dda4b',
205
  'v8/third_party/qemu-linux-x64': {
206 207 208 209 210 211
      'packages': [
          {
              'package': 'fuchsia/qemu/linux-amd64',
              'version': '9cc486c5b18a0be515c39a280ca9a309c54cf994'
          },
      ],
212
      'condition': 'host_os == "linux" and checkout_fuchsia',
213 214
      'dep_type': 'cipd',
  },
215 216 217 218 219 220 221 222 223 224
  'v8/third_party/qemu-mac-x64': {
      'packages': [
          {
              'package': 'fuchsia/qemu/mac-amd64',
              'version': '2d3358ae9a569b2d4a474f498b32b202a152134f'
          },
      ],
      'condition': 'host_os == "mac" and checkout_fuchsia',
      'dep_type': 'cipd',
  },
225
  'v8/tools/clang':
226
    Var('chromium_url') + '/chromium/src/tools/clang.git' + '@' + '596e92a29e0ce6d1395804eab020538ca2997ebc',
227 228 229 230
  'v8/tools/luci-go': {
      'packages': [
        {
          'package': 'infra/tools/luci/isolate/${{platform}}',
231 232 233 234 235 236 237 238 239
          'version': Var('luci_go'),
        },
        {
          'package': 'infra/tools/luci/isolated/${{platform}}',
          'version': Var('luci_go'),
        },
        {
          'package': 'infra/tools/luci/swarming/${{platform}}',
          'version': Var('luci_go'),
240 241
        },
      ],
242
      'condition': 'host_cpu != "s390"',
243 244
      'dep_type': 'cipd',
  },
245
  'v8/tools/clang/dsymutil': {
246 247 248
    'packages': [
      {
        'package': 'chromium/llvm-build-tools/dsymutil',
249
        'version': 'OWlhXkmj18li3yhJk59Kmjbc5KdgLh56TwCd1qBdzlIC',
250 251 252 253 254
      }
    ],
    'condition': 'checkout_mac',
    'dep_type': 'cipd',
  },
255
  'v8/third_party/perfetto':
256
    Var('android_url') + '/platform/external/perfetto.git' + '@' + '12dc10e0278cded35205cf84f80a821348cb6c56',
257
  'v8/third_party/protobuf':
258
    Var('chromium_url') + '/external/github.com/google/protobuf'+ '@' + 'b68a347f56137b4b1a746e8c7438495a6ac1bd91',
259
}
260

261 262
include_rules = [
  # Everybody can use some things.
263 264 265
  '+include',
  '+unicode',
  '+third_party/fdlibm',
266 267 268 269
]

# checkdeps.py shouldn't check for includes in these directories:
skip_child_includes = [
270 271
  'build',
  'third_party',
272 273
]

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