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", |
26 | 27 |
27 # Only use this temporarily while waiting for a mirror for a new package. | 28 # Only use this temporarily while waiting for a mirror for a new package. |
28 "github_dartlang": "https://github.com/dart-lang/%s.git", | 29 "github_dartlang": "https://github.com/dart-lang/%s.git", |
29 | 30 |
30 "gyp_rev": "@6ee91ad8659871916f9aa840d42e1513befdf638", | 31 "gyp_rev": "@6ee91ad8659871916f9aa840d42e1513befdf638", |
31 "co19_rev": "@4af9ef149be554216c5bb16cbac8e50d4c28cdf1", | 32 "co19_rev": "@4af9ef149be554216c5bb16cbac8e50d4c28cdf1", |
32 | 33 |
33 # Revisions of GN related dependencies. | 34 # Revisions of GN related dependencies. This should match the revision |
34 "buildtools_revision": "@39b1db2ab4aa4b2ccaa263c29bdf63e7c1ee28aa", | 35 # pulled by Flutter. |
35 "clang_format_rev": "@0ed791d1387a3c9146ea6c453c646f3c0fc97784", | 36 "buildtools_revision": "@057ef89874e3c622248cf99259434fdc683c4e30", |
| 37 |
| 38 # Scripts that make 'git cl format' work. |
| 39 "clang_format_scripts_rev": "@c09c8deeac31f05bd801995c475e7c8070f9ecda", |
36 | 40 |
37 "gperftools_revision": "@02eeed29df112728564a5dde6417fa4622b57a06", | 41 "gperftools_revision": "@02eeed29df112728564a5dde6417fa4622b57a06", |
38 | 42 |
39 # Revisions of /third_party/* dependencies. | 43 # Revisions of /third_party/* dependencies. |
40 "args_tag": "@0.13.7", | 44 "args_tag": "@0.13.7", |
41 "async_tag": "@1.13.0", | 45 "async_tag": "@1.13.0", |
42 "barback-0.13.0_rev": "@34853", | 46 "barback-0.13.0_rev": "@34853", |
43 "barback-0.14.0_rev": "@36398", | 47 "barback-0.14.0_rev": "@36398", |
44 "barback-0.14.1_rev": "@38525", | 48 "barback-0.14.1_rev": "@38525", |
45 "barback_tag" : "@0.15.2+9", | 49 "barback_tag" : "@0.15.2+9", |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 "zlib_rev": "@c3d0a6190f2f8c924a05ab6cc97b8f975bddd33f", | 129 "zlib_rev": "@c3d0a6190f2f8c924a05ab6cc97b8f975bddd33f", |
126 } | 130 } |
127 | 131 |
128 deps = { | 132 deps = { |
129 # Stuff needed for GYP to run. | 133 # Stuff needed for GYP to run. |
130 Var("dart_root") + "/third_party/gyp": | 134 Var("dart_root") + "/third_party/gyp": |
131 Var('chromium_git') + '/external/gyp.git' + Var("gyp_rev"), | 135 Var('chromium_git') + '/external/gyp.git' + Var("gyp_rev"), |
132 | 136 |
133 # Stuff needed for GN build. | 137 # Stuff needed for GN build. |
134 Var("dart_root") + "/buildtools": | 138 Var("dart_root") + "/buildtools": |
135 Var('chromium_git') + '/chromium/buildtools.git' + | 139 Var("fuchsia_git") + "/buildtools" + Var("buildtools_revision"), |
136 Var('buildtools_revision'), | |
137 Var("dart_root") + "/buildtools/clang_format/script": | 140 Var("dart_root") + "/buildtools/clang_format/script": |
138 Var("chromium_git") + "/chromium/llvm-project/cfe/tools/clang-format.git" + | 141 Var("chromium_git") + "/chromium/llvm-project/cfe/tools/clang-format.git" + |
139 Var("clang_format_rev"), | 142 Var("clang_format_scripts_rev"), |
140 | 143 |
141 Var("dart_root") + "/tests/co19/src": | 144 Var("dart_root") + "/tests/co19/src": |
142 (Var("github_mirror") % "co19") + Var("co19_rev"), | 145 (Var("github_mirror") % "co19") + Var("co19_rev"), |
143 | 146 |
144 Var("dart_root") + "/third_party/zlib": | 147 Var("dart_root") + "/third_party/zlib": |
145 Var("chromium_git") + "/chromium/src/third_party/zlib.git" + | 148 Var("chromium_git") + "/chromium/src/third_party/zlib.git" + |
146 Var("zlib_rev"), | 149 Var("zlib_rev"), |
147 | 150 |
148 Var("dart_root") + "/third_party/boringssl": | 151 Var("dart_root") + "/third_party/boringssl": |
149 (Var("github_mirror") % "boringssl_gen") + Var("boringssl_gen_rev"), | 152 (Var("github_mirror") % "boringssl_gen") + Var("boringssl_gen_rev"), |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 Var("web_socket_channel_tag"), | 342 Var("web_socket_channel_tag"), |
340 Var("dart_root") + "/third_party/pkg/when": | 343 Var("dart_root") + "/third_party/pkg/when": |
341 (Var("github_mirror") % "when") + Var("when_tag"), | 344 (Var("github_mirror") % "when") + Var("when_tag"), |
342 Var("dart_root") + "/third_party/pkg/which": | 345 Var("dart_root") + "/third_party/pkg/which": |
343 (Var("github_mirror") % "which") + Var("which_tag"), | 346 (Var("github_mirror") % "which") + Var("which_tag"), |
344 Var("dart_root") + "/third_party/pkg/yaml": | 347 Var("dart_root") + "/third_party/pkg/yaml": |
345 (Var("github_mirror") % "yaml") + Var("yaml_tag"), | 348 (Var("github_mirror") % "yaml") + Var("yaml_tag"), |
346 } | 349 } |
347 | 350 |
348 deps_os = { | 351 deps_os = { |
349 "android": { | |
350 Var("dart_root") + "/third_party/android_tools": | |
351 Var("chromium_git") + "/android_tools.git" + | |
352 "@aaeda3d69df4b4352e3cac7c16bea7f16bd1ec12", | |
353 }, | |
354 "win": { | 352 "win": { |
355 Var("dart_root") + "/third_party/cygwin": | 353 Var("dart_root") + "/third_party/cygwin": |
356 Var("chromium_git") + "/chromium/deps/cygwin.git" + | 354 Var("chromium_git") + "/chromium/deps/cygwin.git" + |
357 "@c89e446b273697fadf3a10ff1007a97c0b7de6df", | 355 "@c89e446b273697fadf3a10ff1007a97c0b7de6df", |
358 }, | 356 }, |
359 } | 357 } |
360 | 358 |
361 # TODO(iposva): Move the necessary tools so that hooks can be run | 359 # TODO(iposva): Move the necessary tools so that hooks can be run |
362 # without the runtime being available. | 360 # without the runtime being available. |
363 hooks = [ | 361 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 }, | |
456 { | 362 { |
457 'name': 'd8_testing_binaries', | 363 'name': 'd8_testing_binaries', |
458 'pattern': '.', | 364 'pattern': '.', |
459 'action': [ | 365 'action': [ |
460 'download_from_google_storage', | 366 'download_from_google_storage', |
461 '--no_auth', | 367 '--no_auth', |
462 '--no_resume', | 368 '--no_resume', |
463 '--bucket', | 369 '--bucket', |
464 'dart-dependencies', | 370 'dart-dependencies', |
465 '--recursive', | 371 '--recursive', |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
552 "--no_auth", | 458 "--no_auth", |
553 "--no_resume", | 459 "--no_resume", |
554 "--bucket", | 460 "--bucket", |
555 "dart-dependencies", | 461 "dart-dependencies", |
556 "--extract", | 462 "--extract", |
557 "-s", | 463 "-s", |
558 Var('dart_root') + "/third_party/gsutil.tar.gz.sha1", | 464 Var('dart_root') + "/third_party/gsutil.tar.gz.sha1", |
559 ], | 465 ], |
560 }, | 466 }, |
561 { | 467 { |
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 { | |
577 # Pull Debian wheezy sysroot for i386 Linux | 468 # Pull Debian wheezy sysroot for i386 Linux |
578 'name': 'sysroot_i386', | 469 'name': 'sysroot_i386', |
579 'pattern': '.', | 470 'pattern': '.', |
580 'action': ['python', 'sdk/build/linux/sysroot_scripts/install-sysroot.py', | 471 'action': ['python', 'sdk/build/linux/sysroot_scripts/install-sysroot.py', |
581 '--running-as-hook', '--arch', 'i386'], | 472 '--running-as-hook', '--arch', 'i386'], |
582 }, | 473 }, |
583 { | 474 { |
584 # Pull Debian wheezy sysroot for amd64 Linux | 475 # Pull Debian wheezy sysroot for amd64 Linux |
585 'name': 'sysroot_amd64', | 476 'name': 'sysroot_amd64', |
586 'pattern': '.', | 477 'pattern': '.', |
587 'action': ['python', 'sdk/build/linux/sysroot_scripts/install-sysroot.py', | 478 'action': ['python', 'sdk/build/linux/sysroot_scripts/install-sysroot.py', |
588 '--running-as-hook', '--arch', 'amd64'], | 479 '--running-as-hook', '--arch', 'amd64'], |
589 }, | 480 }, |
590 { | 481 { |
591 # Pull clang if needed or requested via GYP_DEFINES. | 482 'name': 'download_android_tools', |
592 'name': 'gn_clang', | |
593 'pattern': '.', | 483 'pattern': '.', |
594 'action': ['python', 'sdk/tools/clang/scripts/update.py', '--if-needed'], | 484 'action': ['python', 'sdk/tools/android/download_android_tools.py'], |
| 485 }, |
| 486 { |
| 487 'name': 'buildtools', |
| 488 'pattern': '.', |
| 489 'action': ['python', 'sdk/tools/buildtools/update.py'], |
595 }, | 490 }, |
596 { | 491 { |
597 # Update the Windows toolchain if necessary. | 492 # Update the Windows toolchain if necessary. |
598 'name': 'win_toolchain', | 493 'name': 'win_toolchain', |
599 'pattern': '.', | 494 'pattern': '.', |
600 'action': ['python', 'sdk/build/vs_toolchain.py', 'update'], | 495 'action': ['python', 'sdk/build/vs_toolchain.py', 'update'], |
601 }, | 496 }, |
602 { | 497 { |
603 "pattern": ".", | 498 "pattern": ".", |
604 "action": ["python", Var("dart_root") + "/tools/generate_buildfiles.py"], | 499 "action": ["python", Var("dart_root") + "/tools/generate_buildfiles.py"], |
605 }, | 500 }, |
606 ] | 501 ] |
OLD | NEW |