Index: mojo/mojo_application_package.gni |
diff --git a/mojo/mojo_application_package.gni b/mojo/mojo_application_package.gni |
index 233ee97c6d96ffd44b9dce01626efe20e2a9576f..f5ace4f7fa7a312e18f70f2ebbda2af63dd19277 100644 |
--- a/mojo/mojo_application_package.gni |
+++ b/mojo/mojo_application_package.gni |
@@ -20,13 +20,18 @@ template("mojo_application_package") { |
output_name = invoker.output_name |
} |
- copy("copy_mojo_application_resources") { |
+ copy_step_name = "${target_name}__copy_resources" |
+ copy(copy_step_name) { |
sources = invoker.resources |
outputs = [ |
"$root_out_dir/$output_name/resources/{{source_file_part}}", |
] |
+ if (defined(invoker.testonly)) { |
+ testonly = invoker.testonly |
+ } |
+ deps = mojo_deps |
} |
- mojo_deps += [ ":copy_mojo_application_resources" ] |
+ mojo_deps += [ ":$copy_step_name" ] |
} |
mojo_native_application(target_name) { |