Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(808)

Unified Diff: pkg/BUILD.gn

Issue 2259613002: [fuchsia] Fix build. Build packages/ output. Add Directory::Exists(). (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/bin/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/BUILD.gn
diff --git a/pkg/BUILD.gn b/pkg/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..91a2266c2f604b97fa673e9c2b0a0ddd07b10cc6
--- /dev/null
+++ b/pkg/BUILD.gn
@@ -0,0 +1,33 @@
+# 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") {
+ # TODO(zra): Add third_party/pkg, third_party/pkg_tested, and
+ # third_party/observatory_pub_packages/packages/charted/lib.
+ list_script = "../tools/list_pkg_directories.py"
+ pkg_list = exec_script(list_script, [rebase_path(".")], "list lines")
+ runtime_list = exec_script(
+ list_script, [rebase_path("../runtime")], "list lines")
+
+ inputs = pkg_list +
+ runtime_list +
+ [rebase_path("../sdk/lib/_internal/js_runtime/lib"),
+ rebase_path("../sdk/lib/_internal/sdk_library_metadata/lib"),]
+
+ timestamp_file = "$target_gen_dir/packages.stamp"
+ outputs = [
+ timestamp_file,
+ ]
+
+ script = "../tools/make_links.py"
+ args = [
+ "--quiet",
+ "--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",]
+}
« no previous file with comments | « no previous file | runtime/bin/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698