OLD | NEW |
1 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 # for details. All rights reserved. Use of this source code is governed by a | 2 # for details. All rights reserved. Use of this source code is governed by a |
3 # BSD-style license that can be found in the LICENSE file. | 3 # BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 vars = { | 5 vars = { |
6 # The dart_root is the root of our sdk checkout. This is normally | 6 # The dart_root is the root of our sdk checkout. This is normally |
7 # simply sdk, but if using special gclient specs it can be different. | 7 # simply sdk, but if using special gclient specs it can be different. |
8 "dart_root": "sdk", | 8 "dart_root": "sdk", |
9 | 9 |
10 # We use mirrors of all github repos to guarantee reproducibility and | 10 # We use mirrors of all github repos to guarantee reproducibility and |
11 # consistency between what users see and what the bots see. | 11 # consistency between what users see and what the bots see. |
12 # We need the mirrors to not have 100+ bots pulling github constantly. | 12 # We need the mirrors to not have 100+ bots pulling github constantly. |
13 # We mirror our github repos on chromium git servers. | 13 # We mirror our github repos on chromium git servers. |
14 # DO NOT use this var if you don't see a mirror here: | 14 # DO NOT use this var if you don't see a mirror here: |
15 # https://chromium.googlesource.com/ | 15 # https://chromium.googlesource.com/ |
16 # named like: | 16 # named like: |
17 # external/github.com/dart-lang/NAME | 17 # external/github.com/dart-lang/NAME |
18 # It is ok to add a dependency directly on dart-lang (dart-lang only) | 18 # It is ok to add a dependency directly on dart-lang (dart-lang only) |
19 # github repo until the mirror has been created, but please do file a bug | 19 # github repo until the mirror has been created, but please do file a bug |
20 # against infra to make that happen. | 20 # against infra to make that happen. |
21 "github_mirror": | 21 "github_mirror": |
22 "https://chromium.googlesource.com/external/github.com/dart-lang/%s.git", | 22 "https://chromium.googlesource.com/external/github.com/dart-lang/%s.git", |
23 | 23 |
24 # Chromium git | 24 # Chromium git |
25 "chromium_git": "https://chromium.googlesource.com", | 25 "chromium_git": "https://chromium.googlesource.com", |
26 "fuchsia_git": "https://fuchsia.googlesource.com", | |
27 | 26 |
28 # Only use this temporarily while waiting for a mirror for a new package. | 27 # Only use this temporarily while waiting for a mirror for a new package. |
29 "github_dartlang": "https://github.com/dart-lang/%s.git", | 28 "github_dartlang": "https://github.com/dart-lang/%s.git", |
30 | 29 |
31 "gyp_rev": "@6ee91ad8659871916f9aa840d42e1513befdf638", | 30 "gyp_rev": "@6ee91ad8659871916f9aa840d42e1513befdf638", |
32 "co19_rev": "@4af9ef149be554216c5bb16cbac8e50d4c28cdf1", | 31 "co19_rev": "@4af9ef149be554216c5bb16cbac8e50d4c28cdf1", |
33 | 32 |
34 # Revisions of GN related dependencies. This should match the revision | 33 # Revisions of GN related dependencies. |
35 # pulled by Flutter. | 34 "buildtools_revision": "@39b1db2ab4aa4b2ccaa263c29bdf63e7c1ee28aa", |
36 "buildtools_revision": "@c8db819853bcf8ce1635a8b7a395820f39b5a9fc", | 35 "clang_format_rev": "@0ed791d1387a3c9146ea6c453c646f3c0fc97784", |
37 | |
38 # Scripts that make 'git cl format' work. | |
39 "clang_format_scripts_rev": "@c09c8deeac31f05bd801995c475e7c8070f9ecda", | |
40 | 36 |
41 "gperftools_revision": "@02eeed29df112728564a5dde6417fa4622b57a06", | 37 "gperftools_revision": "@02eeed29df112728564a5dde6417fa4622b57a06", |
42 | 38 |
43 # Revisions of /third_party/* dependencies. | 39 # Revisions of /third_party/* dependencies. |
44 "args_tag": "@0.13.7", | 40 "args_tag": "@0.13.7", |
45 "async_tag": "@1.13.0", | 41 "async_tag": "@1.13.0", |
46 "barback-0.13.0_rev": "@34853", | 42 "barback-0.13.0_rev": "@34853", |
47 "barback-0.14.0_rev": "@36398", | 43 "barback-0.14.0_rev": "@36398", |
48 "barback-0.14.1_rev": "@38525", | 44 "barback-0.14.1_rev": "@38525", |
49 "barback_tag" : "@0.15.2+9", | 45 "barback_tag" : "@0.15.2+9", |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 "zlib_rev": "@c3d0a6190f2f8c924a05ab6cc97b8f975bddd33f", | 125 "zlib_rev": "@c3d0a6190f2f8c924a05ab6cc97b8f975bddd33f", |
130 } | 126 } |
131 | 127 |
132 deps = { | 128 deps = { |
133 # Stuff needed for GYP to run. | 129 # Stuff needed for GYP to run. |
134 Var("dart_root") + "/third_party/gyp": | 130 Var("dart_root") + "/third_party/gyp": |
135 Var('chromium_git') + '/external/gyp.git' + Var("gyp_rev"), | 131 Var('chromium_git') + '/external/gyp.git' + Var("gyp_rev"), |
136 | 132 |
137 # Stuff needed for GN build. | 133 # Stuff needed for GN build. |
138 Var("dart_root") + "/buildtools": | 134 Var("dart_root") + "/buildtools": |
139 Var("fuchsia_git") + "/buildtools" + Var("buildtools_revision"), | 135 Var('chromium_git') + '/chromium/buildtools.git' + |
| 136 Var('buildtools_revision'), |
140 Var("dart_root") + "/buildtools/clang_format/script": | 137 Var("dart_root") + "/buildtools/clang_format/script": |
141 Var("chromium_git") + "/chromium/llvm-project/cfe/tools/clang-format.git" + | 138 Var("chromium_git") + "/chromium/llvm-project/cfe/tools/clang-format.git" + |
142 Var("clang_format_scripts_rev"), | 139 Var("clang_format_rev"), |
143 | 140 |
144 Var("dart_root") + "/tests/co19/src": | 141 Var("dart_root") + "/tests/co19/src": |
145 (Var("github_mirror") % "co19") + Var("co19_rev"), | 142 (Var("github_mirror") % "co19") + Var("co19_rev"), |
146 | 143 |
147 Var("dart_root") + "/third_party/zlib": | 144 Var("dart_root") + "/third_party/zlib": |
148 Var("chromium_git") + "/chromium/src/third_party/zlib.git" + | 145 Var("chromium_git") + "/chromium/src/third_party/zlib.git" + |
149 Var("zlib_rev"), | 146 Var("zlib_rev"), |
150 | 147 |
151 Var("dart_root") + "/third_party/boringssl": | 148 Var("dart_root") + "/third_party/boringssl": |
152 (Var("github_mirror") % "boringssl_gen") + Var("boringssl_gen_rev"), | 149 (Var("github_mirror") % "boringssl_gen") + Var("boringssl_gen_rev"), |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
342 Var("web_socket_channel_tag"), | 339 Var("web_socket_channel_tag"), |
343 Var("dart_root") + "/third_party/pkg/when": | 340 Var("dart_root") + "/third_party/pkg/when": |
344 (Var("github_mirror") % "when") + Var("when_tag"), | 341 (Var("github_mirror") % "when") + Var("when_tag"), |
345 Var("dart_root") + "/third_party/pkg/which": | 342 Var("dart_root") + "/third_party/pkg/which": |
346 (Var("github_mirror") % "which") + Var("which_tag"), | 343 (Var("github_mirror") % "which") + Var("which_tag"), |
347 Var("dart_root") + "/third_party/pkg/yaml": | 344 Var("dart_root") + "/third_party/pkg/yaml": |
348 (Var("github_mirror") % "yaml") + Var("yaml_tag"), | 345 (Var("github_mirror") % "yaml") + Var("yaml_tag"), |
349 } | 346 } |
350 | 347 |
351 deps_os = { | 348 deps_os = { |
| 349 "android": { |
| 350 Var("dart_root") + "/third_party/android_tools": |
| 351 Var("chromium_git") + "/android_tools.git" + |
| 352 "@aaeda3d69df4b4352e3cac7c16bea7f16bd1ec12", |
| 353 }, |
352 "win": { | 354 "win": { |
353 Var("dart_root") + "/third_party/cygwin": | 355 Var("dart_root") + "/third_party/cygwin": |
354 Var("chromium_git") + "/chromium/deps/cygwin.git" + | 356 Var("chromium_git") + "/chromium/deps/cygwin.git" + |
355 "@c89e446b273697fadf3a10ff1007a97c0b7de6df", | 357 "@c89e446b273697fadf3a10ff1007a97c0b7de6df", |
356 }, | 358 }, |
357 } | 359 } |
358 | 360 |
359 # TODO(iposva): Move the necessary tools so that hooks can be run | 361 # TODO(iposva): Move the necessary tools so that hooks can be run |
360 # without the runtime being available. | 362 # without the runtime being available. |
361 hooks = [ | 363 hooks = [ |
| 364 # Pull GN binaries. This needs to be before running GYP below. |
| 365 { |
| 366 'name': 'gn_linux64', |
| 367 'pattern': '.', |
| 368 'action': [ |
| 369 'download_from_google_storage', |
| 370 '--no_auth', |
| 371 '--no_resume', |
| 372 '--quiet', |
| 373 '--platform=linux*', |
| 374 '--bucket', |
| 375 'chromium-gn', |
| 376 '-s', |
| 377 Var('dart_root') + '/buildtools/linux64/gn.sha1', |
| 378 ], |
| 379 }, |
| 380 { |
| 381 'name': 'gn_mac', |
| 382 'pattern': '.', |
| 383 'action': [ |
| 384 'download_from_google_storage', |
| 385 '--no_auth', |
| 386 '--no_resume', |
| 387 '--quiet', |
| 388 '--platform=darwin', |
| 389 '--bucket', |
| 390 'chromium-gn', |
| 391 '-s', |
| 392 Var('dart_root') + '/buildtools/mac/gn.sha1', |
| 393 ], |
| 394 }, |
| 395 { |
| 396 'name': 'gn_win', |
| 397 'pattern': '.', |
| 398 'action': [ |
| 399 'download_from_google_storage', |
| 400 '--no_auth', |
| 401 '--no_resume', |
| 402 '--quiet', |
| 403 '--platform=win*', |
| 404 '--bucket', |
| 405 'chromium-gn', |
| 406 '-s', |
| 407 Var('dart_root') + '/buildtools/win/gn.exe.sha1', |
| 408 ], |
| 409 }, |
| 410 # Pull clang-format binaries using checked-in hashes. |
| 411 { |
| 412 'name': 'clang_format_win', |
| 413 'pattern': '.', |
| 414 'action': [ |
| 415 'download_from_google_storage', |
| 416 '--no_auth', |
| 417 '--no_resume', |
| 418 '--quiet', |
| 419 '--platform=win32', |
| 420 '--bucket', |
| 421 'chromium-clang-format', |
| 422 '-s', |
| 423 Var('dart_root') + '/buildtools/win/clang-format.exe.sha1', |
| 424 ], |
| 425 }, |
| 426 { |
| 427 'name': 'clang_format_linux', |
| 428 'pattern': '.', |
| 429 'action': [ |
| 430 'download_from_google_storage', |
| 431 '--no_auth', |
| 432 '--no_resume', |
| 433 '--quiet', |
| 434 '--platform=linux*', |
| 435 '--bucket', |
| 436 'chromium-clang-format', |
| 437 '-s', |
| 438 Var('dart_root') + '/buildtools/linux64/clang-format.sha1', |
| 439 ], |
| 440 }, |
| 441 { |
| 442 'name': 'clang_format_mac', |
| 443 'pattern': '.', |
| 444 'action': [ |
| 445 'download_from_google_storage', |
| 446 '--no_auth', |
| 447 '--no_resume', |
| 448 '--quiet', |
| 449 '--platform=darwin', |
| 450 '--bucket', |
| 451 'chromium-clang-format', |
| 452 '-s', |
| 453 Var('dart_root') + '/buildtools/mac/clang-format.sha1', |
| 454 ], |
| 455 }, |
362 { | 456 { |
363 'name': 'd8_testing_binaries', | 457 'name': 'd8_testing_binaries', |
364 'pattern': '.', | 458 'pattern': '.', |
365 'action': [ | 459 'action': [ |
366 'download_from_google_storage', | 460 'download_from_google_storage', |
367 '--no_auth', | 461 '--no_auth', |
368 '--no_resume', | 462 '--no_resume', |
369 '--bucket', | 463 '--bucket', |
370 'dart-dependencies', | 464 'dart-dependencies', |
371 '--recursive', | 465 '--recursive', |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
458 "--no_auth", | 552 "--no_auth", |
459 "--no_resume", | 553 "--no_resume", |
460 "--bucket", | 554 "--bucket", |
461 "dart-dependencies", | 555 "dart-dependencies", |
462 "--extract", | 556 "--extract", |
463 "-s", | 557 "-s", |
464 Var('dart_root') + "/third_party/gsutil.tar.gz.sha1", | 558 Var('dart_root') + "/third_party/gsutil.tar.gz.sha1", |
465 ], | 559 ], |
466 }, | 560 }, |
467 { | 561 { |
| 562 "name": "clang", |
| 563 "pattern": ".", |
| 564 "action": [ |
| 565 "download_from_google_storage", |
| 566 "--no_auth", |
| 567 "--no_resume", |
| 568 "--bucket", |
| 569 "dart-dependencies", |
| 570 "--platform=linux*", |
| 571 "--extract", |
| 572 "-s", |
| 573 Var('dart_root') + "/third_party/clang.tar.gz.sha1", |
| 574 ], |
| 575 }, |
| 576 { |
468 # Pull Debian wheezy sysroot for i386 Linux | 577 # Pull Debian wheezy sysroot for i386 Linux |
469 'name': 'sysroot_i386', | 578 'name': 'sysroot_i386', |
470 'pattern': '.', | 579 'pattern': '.', |
471 'action': ['python', 'sdk/build/linux/sysroot_scripts/install-sysroot.py', | 580 'action': ['python', 'sdk/build/linux/sysroot_scripts/install-sysroot.py', |
472 '--running-as-hook', '--arch', 'i386'], | 581 '--running-as-hook', '--arch', 'i386'], |
473 }, | 582 }, |
474 { | 583 { |
475 # Pull Debian wheezy sysroot for amd64 Linux | 584 # Pull Debian wheezy sysroot for amd64 Linux |
476 'name': 'sysroot_amd64', | 585 'name': 'sysroot_amd64', |
477 'pattern': '.', | 586 'pattern': '.', |
478 'action': ['python', 'sdk/build/linux/sysroot_scripts/install-sysroot.py', | 587 'action': ['python', 'sdk/build/linux/sysroot_scripts/install-sysroot.py', |
479 '--running-as-hook', '--arch', 'amd64'], | 588 '--running-as-hook', '--arch', 'amd64'], |
480 }, | 589 }, |
481 { | 590 { |
482 'name': 'download_android_tools', | 591 # Pull clang if needed or requested via GYP_DEFINES. |
| 592 'name': 'gn_clang', |
483 'pattern': '.', | 593 'pattern': '.', |
484 'action': ['python', 'sdk/tools/android/download_android_tools.py'], | 594 'action': ['python', 'sdk/tools/clang/scripts/update.py', '--if-needed'], |
485 }, | |
486 { | |
487 'name': 'buildtools', | |
488 'pattern': '.', | |
489 'action': ['python', 'sdk/tools/buildtools/update.py'], | |
490 }, | 595 }, |
491 { | 596 { |
492 # Update the Windows toolchain if necessary. | 597 # Update the Windows toolchain if necessary. |
493 'name': 'win_toolchain', | 598 'name': 'win_toolchain', |
494 'pattern': '.', | 599 'pattern': '.', |
495 'action': ['python', 'sdk/build/vs_toolchain.py', 'update'], | 600 'action': ['python', 'sdk/build/vs_toolchain.py', 'update'], |
496 }, | 601 }, |
497 { | 602 { |
498 "pattern": ".", | 603 "pattern": ".", |
499 "action": ["python", Var("dart_root") + "/tools/generate_buildfiles.py"], | 604 "action": ["python", Var("dart_root") + "/tools/generate_buildfiles.py"], |
500 }, | 605 }, |
501 ] | 606 ] |
OLD | NEW |