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

Unified Diff: utils/compiler/BUILD.gn

Issue 2379803002: Linux create_sdk GN build for host (Closed)
Patch Set: Move create_timestamp.gni 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
« no previous file with comments | « utils/analysis_server/BUILD.gn ('k') | utils/create_timestamp.gni » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/compiler/BUILD.gn
diff --git a/utils/compiler/BUILD.gn b/utils/compiler/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..8d64954be8acd70fac30b3fd22a9bac2c6a62ac1
--- /dev/null
+++ b/utils/compiler/BUILD.gn
@@ -0,0 +1,50 @@
+# 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("../create_timestamp.gni")
+import("../invoke_dart.gni")
+
+create_timestamp_file("dart2js_files_stamp") {
+ pattern = "\\.dart\$"
+ path = rebase_path("../../pkg/compiler/lib")
+ output = "$root_gen_dir/dart2js_files.stamp"
+}
+
+invoke_dart("dart2js") {
+ 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",
+ ]
+}
« no previous file with comments | « utils/analysis_server/BUILD.gn ('k') | utils/create_timestamp.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698