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

Unified Diff: sky/build/sky_app.gni

Issue 1216673011: SkyDemo.apk should be able to launch Stocks offline (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 5 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 | sky/sdk/example/demo_launcher/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/build/sky_app.gni
diff --git a/sky/build/sky_app.gni b/sky/build/sky_app.gni
index 905a05bb83589dadb9ba6a61986a6b49e56f34d2..34148ae2816fd85c5e33fffd3a16e5c2de1da222 100644
--- a/sky/build/sky_app.gni
+++ b/sky/build/sky_app.gni
@@ -18,6 +18,21 @@ template("sky_app") {
}
}
+ bundle_prefix = target_name
+
+ copy("copy_${bundle_prefix}_bundle") {
+ sources = [
+ "$target_gen_dir/app.skyx",
+ ]
+ outputs = [
+ "$target_gen_dir/${bundle_prefix}.skyx",
+ ]
+
+ deps = [
+ ":app",
+ ]
+ }
+
copy_ex("assets") {
clear_dir = true
dest = "$target_gen_dir/assets"
@@ -31,7 +46,17 @@ template("sky_app") {
if (enable_skyx) {
sources += [ "$target_gen_dir/app.skyx" ]
- deps += [ ":app" ]
+ deps += [ ":copy_${bundle_prefix}_bundle" ]
+
+ if (defined(invoker.bundles)) {
+ foreach(bundle, invoker.bundles) {
+ bundle_gen_dir = get_label_info(bundle, "target_gen_dir")
+ bundle_name = get_label_info(bundle, "name")
+
+ sources += [ "$bundle_gen_dir/${bundle_name}.skyx" ]
+ deps += [ bundle ]
+ }
+ }
}
}
« no previous file with comments | « no previous file | sky/sdk/example/demo_launcher/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698