Index: remoting/android/BUILD.gn |
diff --git a/remoting/android/BUILD.gn b/remoting/android/BUILD.gn |
index 9653def81ef90dabc96eb2e708f16fc7bfcc531d..34f84f9e82b184a7fb509f319e99a90b4d8b6a3f 100644 |
--- a/remoting/android/BUILD.gn |
+++ b/remoting/android/BUILD.gn |
@@ -97,17 +97,19 @@ remoting_android_client_java_tmpl("remoting_android_client_java") { |
remoting_google_play_services_library = google_play_services_library |
} |
-action("remoting_cardboard_extract_native_lib") { |
- script = "//remoting/tools/extract_android_native_lib.py" |
- sources = [ |
- "//third_party/cardboard-java/src/CardboardSample/libs/cardboard.jar", |
- ] |
- outputs = [ |
- "$root_out_dir/libvrtoolkit.so", |
- ] |
- args = [ android_app_abi ] |
- args += rebase_path(sources, root_build_dir) |
- args += rebase_path(outputs, root_build_dir) |
+if (target_cpu == "arm") { |
+ action("remoting_cardboard_extract_native_lib") { |
+ script = "//remoting/tools/extract_android_native_lib.py" |
+ sources = [ |
+ "//third_party/cardboard-java/src/CardboardSample/libs/cardboard.jar", |
+ ] |
+ outputs = [ |
+ "$root_out_dir/libvrtoolkit.so", |
+ ] |
+ args = [ android_app_abi ] |
+ args += rebase_path(sources, root_build_dir) |
+ args += rebase_path(outputs, root_build_dir) |
+ } |
} |
remoting_apk_tmpl("remoting_apk") { |