SkyDemo.apk should be able to launch Stocks offline

We now put stocks.skyx into the APK so that we can run it offline.

R=eseidel@chromium.org, eseidel@google.com

Review URL: https://codereview.chromium.org/1216673011.
This commit is contained in:
Adam Barth
2015-07-06 17:53:41 -07:00
parent ce0c4e3629
commit 869b97cc91

View File

@@ -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 ]
}
}
}
}