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': 'CopyViewerDeps', |
| 9 'type': 'none', |
| 10 'dependencies': [ |
| 11 'skia_lib.gyp:skia_lib', |
| 12 'viewer.gyp:viewer', |
| 13 ], |
| 14 'copies': [ |
| 15 { |
| 16 'destination': '<(android_base)/apps/viewer/src/main/libs/<(android_ar
ch)', |
| 17 'conditions': [ |
| 18 [ 'skia_shared_lib', { |
| 19 'files': [ |
| 20 '<(SHARED_LIB_DIR)/libskia_android.so', |
| 21 '<(SHARED_LIB_DIR)/libviewer.so', |
| 22 ]}, { |
| 23 'files': [ |
| 24 '<(SHARED_LIB_DIR)/libviewer.so', |
| 25 ]} |
| 26 ], |
| 27 ], |
| 28 }, |
| 29 ], |
| 30 }, |
| 31 { |
| 32 'target_name': 'Viewer_APK', |
| 33 'type': 'none', |
| 34 'dependencies': [ 'CopyViewerDeps', ], |
| 35 'actions': [ |
| 36 { |
| 37 'action_name': 'SkiaViewer_apk', |
| 38 'inputs': [ |
| 39 '<(android_base)/apps/viewer/src/main/AndroidManifest.xml', |
| 40 '<(android_base)/apps/viewer/src/main/java/org/skia/viewer/ViewerAct
ivity.java', |
| 41 '<(android_base)/apps/viewer/src/main/libs/<(android_arch)/libviewer
.so', |
| 42 |
| 43 ], |
| 44 'conditions': [ |
| 45 [ 'skia_shared_lib', { |
| 46 'inputs': [ |
| 47 '<(android_base)/apps/viewer/src/main/libs/<(android_arch)/libsk
ia_android.so', |
| 48 ], |
| 49 }], |
| 50 ], |
| 51 'outputs': [ |
| 52 '../apps/viewer/build/outputs/apk/', |
| 53 ], |
| 54 'action': [ |
| 55 '<(android_base)/apps/gradlew', |
| 56 ':viewer:assemble<(android_variant)<(android_buildtype)', |
| 57 '-p<(android_base)/apps/viewer', |
| 58 '-PsuppressNativeBuild', |
| 59 '--daemon', |
| 60 ], |
| 61 }, |
| 62 ], |
| 63 }, |
| 64 ], |
| 65 } |
OLD | NEW |