Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(791)

Unified Diff: platform_tools/android/gyp/viewer.gypi

Issue 1945103003: Rename VulkanViewer to Viewer, take 2. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix android path Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « platform_tools/android/gyp/skia_android.gypi ('k') | platform_tools/android/gyp/vulkanviewer.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: platform_tools/android/gyp/viewer.gypi
diff --git a/platform_tools/android/gyp/viewer.gypi b/platform_tools/android/gyp/viewer.gypi
new file mode 100644
index 0000000000000000000000000000000000000000..6d2659b2cbe1f05b810ae84476a99dffa4a7d51c
--- /dev/null
+++ b/platform_tools/android/gyp/viewer.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': 'CopyViewerDeps',
+ 'type': 'none',
+ 'dependencies': [
+ 'skia_lib.gyp:skia_lib',
+ 'viewer.gyp:viewer',
+ ],
+ 'copies': [
+ {
+ 'destination': '<(android_base)/apps/viewer/src/main/libs/<(android_arch)',
+ 'conditions': [
+ [ 'skia_shared_lib', {
+ 'files': [
+ '<(SHARED_LIB_DIR)/libskia_android.so',
+ '<(SHARED_LIB_DIR)/libviewer.so',
+ ]}, {
+ 'files': [
+ '<(SHARED_LIB_DIR)/libviewer.so',
+ ]}
+ ],
+ ],
+ },
+ ],
+ },
+ {
+ 'target_name': 'Viewer_APK',
+ 'type': 'none',
+ 'dependencies': [ 'CopyViewerDeps', ],
+ 'actions': [
+ {
+ 'action_name': 'SkiaViewer_apk',
+ 'inputs': [
+ '<(android_base)/apps/viewer/src/main/AndroidManifest.xml',
+ '<(android_base)/apps/viewer/src/main/java/org/skia/viewer/ViewerActivity.java',
+ '<(android_base)/apps/viewer/src/main/libs/<(android_arch)/libviewer.so',
+
+ ],
+ 'conditions': [
+ [ 'skia_shared_lib', {
+ 'inputs': [
+ '<(android_base)/apps/viewer/src/main/libs/<(android_arch)/libskia_android.so',
+ ],
+ }],
+ ],
+ 'outputs': [
+ '../apps/viewer/build/outputs/apk/',
+ ],
+ 'action': [
+ '<(android_base)/apps/gradlew',
+ ':viewer:assemble<(android_variant)<(android_buildtype)',
+ '-p<(android_base)/apps/viewer',
+ '-PsuppressNativeBuild',
+ '--daemon',
+ ],
+ },
+ ],
+ },
+ ],
+}
« no previous file with comments | « platform_tools/android/gyp/skia_android.gypi ('k') | platform_tools/android/gyp/vulkanviewer.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698