OLD | NEW |
| (Empty) |
1 # Copyright 2015 Google Inc. | |
2 # | |
3 # Use of this source code is governed by a BSD-style license that can be | |
4 # found in the LICENSE file. | |
5 { | |
6 'targets': [ | |
7 { | |
8 'target_name': 'CopyVulkanViewerDeps', | |
9 'type': 'none', | |
10 'dependencies': [ | |
11 'skia_lib.gyp:skia_lib', | |
12 'vulkanviewer.gyp:vulkanviewer', | |
13 ], | |
14 'copies': [ | |
15 { | |
16 'destination': '<(android_base)/apps/vulkanviewer/src/main/libs/<(andr
oid_arch)', | |
17 'conditions': [ | |
18 [ 'skia_shared_lib', { | |
19 'files': [ | |
20 '<(SHARED_LIB_DIR)/libskia_android.so', | |
21 '<(SHARED_LIB_DIR)/libvulkanviewer.so', | |
22 ]}, { | |
23 'files': [ | |
24 '<(SHARED_LIB_DIR)/libvulkanviewer.so', | |
25 ]} | |
26 ], | |
27 ], | |
28 }, | |
29 ], | |
30 }, | |
31 { | |
32 'target_name': 'VulkanViewer_APK', | |
33 'type': 'none', | |
34 'dependencies': [ 'CopyVulkanViewerDeps', ], | |
35 'actions': [ | |
36 { | |
37 'action_name': 'SkiaVulkanViewer_apk', | |
38 'inputs': [ | |
39 '<(android_base)/apps/vulkanviewer/src/main/AndroidManifest.xml', | |
40 '<(android_base)/apps/vulkanviewer/src/main/java/com/skia/vulkanview
er/VulkanViewerActivity.java', | |
41 '<(android_base)/apps/vulkanviewer/src/main/libs/<(android_arch)/lib
vulkanviewer.so', | |
42 | |
43 ], | |
44 'conditions': [ | |
45 [ 'skia_shared_lib', { | |
46 'inputs': [ | |
47 '<(android_base)/apps/vulkanviewer/src/main/libs/<(android_arch)
/libskia_android.so', | |
48 ], | |
49 }], | |
50 ], | |
51 'outputs': [ | |
52 '../apps/vulkanviewer/build/outputs/apk/', | |
53 ], | |
54 'action': [ | |
55 '<(android_base)/apps/gradlew', | |
56 ':vulkanviewer:assemble<(android_variant)<(android_buildtype)', | |
57 '-p<(android_base)/apps/vulkanviewer', | |
58 '-PsuppressNativeBuild', | |
59 '--daemon', | |
60 ], | |
61 }, | |
62 ], | |
63 }, | |
64 ], | |
65 } | |
OLD | NEW |