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

Unified Diff: utils/compiler/BUILD.gn

Issue 2379803002: Linux create_sdk GN build for host (Closed)
Patch Set: Remove debug print Created 4 years, 3 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
Index: utils/compiler/BUILD.gn
diff --git a/utils/compiler/BUILD.gn b/utils/compiler/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..c1ff948b3a51fce565f017e853b087c20944abbf
--- /dev/null
+++ b/utils/compiler/BUILD.gn
@@ -0,0 +1,64 @@
+# 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.
+
+import("../invoke_dart.gni")
+
+action("dart2js_files_stamp") {
+ dart_files = exec_script("../../tools/list_files.py",
+ ["\\.dart\$",
+ rebase_path("../../pkg/compiler/lib")],
+ "list lines")
+
+ inputs = [
+ "../../tools/list_files.py",
+ ] + dart_files
+ output = "$root_gen_dir/dart2js_files.stamp"
+ outputs = [
+ output,
+ ]
+
+ script = "../../tools/create_timestamp_file.py"
+ args = [
+ rebase_path(output),
+ ]
+}
+
+invoke_dart("dart2js") {
+ dart_root = "../.."
+ deps = [
+ ":dart2js_files_stamp",
+ ]
+
+ dart_files = exec_script("../../tools/list_files.py",
+ ["\\.dart\$",
+ rebase_path("../../runtime/lib"),
+ rebase_path("../../sdk/lib/_internal/dartdoc")],
+ "list lines")
+
+ inputs = dart_files + [
+ "../../tools/list_files.py",
+ "../../sdk/lib/_internal/sdk_library_metadata/lib/libraries.dart",
+ "create_snapshot.dart",
+ "$root_gen_dir/dart2js_files.stamp",
+ "../../tools/VERSION",
+ ]
+
+ utils_output = "$root_gen_dir/utils_wrapper.dart.snapshot"
+ dart2js_output = "$root_gen_dir/dart2js.dart.snapshot"
+ outputs = [
+ utils_output,
+ dart2js_output,
+ ]
+
+ dot_packages = rebase_path("../../.packages")
+ create_snapshot = rebase_path("create_snapshot.dart")
+ output_dir = rebase_path(root_gen_dir)
+
+ args = [
+ "--packages=$dot_packages",
+ create_snapshot,
+ "--output_dir=$output_dir",
+ "--dart2js_main=pkg/compiler/lib/src/dart2js.dart",
+ ]
+}

Powered by Google App Engine
This is Rietveld 408576698