Index: platform_tools/android/gyp/vulkanviewer.gypi |
diff --git a/platform_tools/android/gyp/vulkanviewer.gypi b/platform_tools/android/gyp/vulkanviewer.gypi |
new file mode 100644 |
index 0000000000000000000000000000000000000000..adcfd22d4fe1d8fddccc5cedda0c4ae0646669a1 |
--- /dev/null |
+++ b/platform_tools/android/gyp/vulkanviewer.gypi |
@@ -0,0 +1,65 @@ |
+# Copyright 2015 Google Inc. |
+# |
+# Use of this source code is governed by a BSD-style license that can be |
+# found in the LICENSE file. |
+{ |
+ 'targets': [ |
+ { |
+ 'target_name': 'CopyVulkanViewerDeps', |
+ 'type': 'none', |
+ 'dependencies': [ |
+ 'skia_lib.gyp:skia_lib', |
+ 'vulkanviewer.gyp:vulkanviewer', |
+ ], |
+ 'copies': [ |
+ { |
+ 'destination': '<(android_base)/apps/vulkanviewer/src/main/libs/<(android_arch)', |
+ 'conditions': [ |
+ [ 'skia_shared_lib', { |
+ 'files': [ |
+ '<(SHARED_LIB_DIR)/libskia_android.so', |
+ '<(SHARED_LIB_DIR)/libvulkanviewer.so', |
+ ]}, { |
+ 'files': [ |
+ '<(SHARED_LIB_DIR)/libvulkanviewer.so', |
+ ]} |
+ ], |
+ ], |
+ }, |
+ ], |
+ }, |
+ { |
+ 'target_name': 'VulkanViewer_APK', |
+ 'type': 'none', |
+ 'dependencies': [ 'CopyVulkanViewerDeps', ], |
+ 'actions': [ |
+ { |
+ 'action_name': 'SkiaVulkanViewer_apk', |
+ 'inputs': [ |
+ '<(android_base)/apps/vulkanviewer/src/main/AndroidManifest.xml', |
+ '<(android_base)/apps/vulkanviewer/src/main/java/com/skia/vulkanviewer/VulkanViewerActivity.java', |
+ '<(android_base)/apps/vulkanviewer/src/main/libs/<(android_arch)/libvulkanviewer.so', |
+ |
+ ], |
+ 'conditions': [ |
+ [ 'skia_shared_lib', { |
+ 'inputs': [ |
+ '<(android_base)/apps/vulkanviewer/src/main/libs/<(android_arch)/libskia_android.so', |
+ ], |
+ }], |
+ ], |
+ 'outputs': [ |
+ '../apps/vulkanviewer/build/outputs/apk/', |
+ ], |
+ 'action': [ |
+ '<(android_base)/apps/gradlew', |
+ ':vulkanviewer:assemble<(android_variant)Debug', |
+ '-p<(android_base)/apps/vulkanviewer', |
+ '-PsuppressNativeBuild', |
+ '--daemon', |
+ ], |
+ }, |
+ ], |
+ }, |
+ ], |
+} |