12d62a7d51
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1903253003 Review URL: https://codereview.chromium.org/1903253003
66 lines
1.9 KiB
Python
66 lines
1.9 KiB
Python
# 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',
|
|
],
|
|
},
|
|
],
|
|
},
|
|
],
|
|
}
|