Index: pkg/BUILD.gn |
diff --git a/pkg/BUILD.gn b/pkg/BUILD.gn |
new file mode 100644 |
index 0000000000000000000000000000000000000000..1d748f88f940e9114b4d9dda766732c162f20d18 |
--- /dev/null |
+++ b/pkg/BUILD.gn |
@@ -0,0 +1,37 @@ |
+# Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
+# for details. All rights reserved. Use of this source code is governed by a |
+# BSD-style license that can be found in the LICENSE file. |
+ |
+action("pkg") { |
+ list_script = "../tools/list_pkg_directories.py" |
+ pkg_list = exec_script(list_script, [rebase_path(".")], "list lines") |
+ third_party_pkg_list = exec_script( |
+ list_script, [rebase_path("../third_party/pkg")], "list lines") |
+ third_party_pkg_tested_list = exec_script( |
+ list_script, [rebase_path("../third_party/pkg_tested")], "list lines") |
+ runtime_list = exec_script( |
+ list_script, [rebase_path("../runtime")], "list lines") |
+ |
+ inputs = pkg_list + |
+ third_party_pkg_list + |
+ third_party_pkg_tested_list + |
+ runtime_list + |
+ [rebase_path("../sdk/lib/_internal/js_runtime/lib"), |
+ rebase_path("../sdk/lib/_internal/sdk_library_metadata/lib"), |
+ rebase_path("../site/try"),] |
+ |
+ timestamp_file = "$target_gen_dir/packages.stamp" |
+ outputs = [ |
+ timestamp_file, |
+ ] |
+ |
+ script = "../tools/make_links.py" |
+ args = [ |
+ "--timestamp_file", |
+ rebase_path(timestamp_file), |
+ rebase_path("$root_out_dir/packages"),] + |
+ inputs + |
+ # Pub imports dart2js as compiler_unsupported so it can work outside |
+ # the SDK. Map that to the compiler package. |
+ [rebase_path("compiler/lib") + ":compiler_unsupported",] |
+} |