| OLD | NEW |
| (Empty) |
| 1 # Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | |
| 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. | |
| 4 | |
| 5 action("pkg") { | |
| 6 # TODO(zra): Add third_party/pkg, third_party/pkg_tested, and | |
| 7 # third_party/observatory_pub_packages/packages/charted/lib. | |
| 8 list_script = "../tools/list_pkg_directories.py" | |
| 9 pkg_list = exec_script(list_script, [rebase_path(".")], "list lines") | |
| 10 runtime_list = exec_script( | |
| 11 list_script, [rebase_path("../runtime")], "list lines") | |
| 12 | |
| 13 inputs = pkg_list + | |
| 14 runtime_list + | |
| 15 [rebase_path("../sdk/lib/_internal/js_runtime/lib"), | |
| 16 rebase_path("../sdk/lib/_internal/sdk_library_metadata/lib"),] | |
| 17 | |
| 18 timestamp_file = "$target_gen_dir/packages.stamp" | |
| 19 outputs = [ | |
| 20 timestamp_file, | |
| 21 "$root_out_dir/.packages", | |
| 22 ] | |
| 23 | |
| 24 script = "../tools/make_links.py" | |
| 25 args = [ | |
| 26 "--create-links", | |
| 27 "--create-package-file", | |
| 28 "--quiet", | |
| 29 "--timestamp_file", | |
| 30 rebase_path(timestamp_file), | |
| 31 ] + inputs + | |
| 32 # Pub imports dart2js as compiler_unsupported so it can work outside | |
| 33 # the SDK. Map that to the compiler package. | |
| 34 [rebase_path("compiler/lib") + ":compiler_unsupported",] | |
| 35 } | |
| OLD | NEW |