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:
@@ -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 ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user