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

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

Issue 1258123004: android/apps: Add CanvasProof App; (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-09-04 (Friday) 13:29:02 EDT Created 5 years, 3 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
Index: platform_tools/android/gyp/canvasproof.gypi
diff --git a/platform_tools/android/gyp/canvasproof.gypi b/platform_tools/android/gyp/canvasproof.gypi
new file mode 100644
index 0000000000000000000000000000000000000000..f733d0e03afc0f3a187925836199c1bdbdf8bf66
--- /dev/null
+++ b/platform_tools/android/gyp/canvasproof.gypi
@@ -0,0 +1,75 @@
+# 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': 'canvasproof',
+ 'type': 'shared_library',
+ 'dependencies': [ 'skia_lib.gyp:skia_lib', ],
+ 'sources': [
+ '../apps/canvasproof/src/main/jni/JavaInputStream.cpp',
+ '../apps/canvasproof/src/main/jni/JavaInputStream.h',
+ '../apps/canvasproof/src/main/jni/org_skia_canvasproof_GaneshPictureRenderer.cpp',
+ '../apps/canvasproof/src/main/jni/org_skia_canvasproof_GaneshPictureRenderer.h',
+ '../apps/canvasproof/src/main/jni/org_skia_canvasproof_CreateSkiaPicture.cpp',
+ '../apps/canvasproof/src/main/jni/org_skia_canvasproof_CreateSkiaPicture.h ',
+ ],
+ },
+ {
+ 'target_name': 'CopyCanvasProofDeps',
+ 'type': 'none',
+ 'dependencies': [
+ 'skia_lib.gyp:skia_lib',
+ 'canvasproof',
+ ],
+ 'copies': [
+ {
+ 'destination': '../apps/canvasproof/src/main/libs/<(android_arch)',
+ 'conditions': [
+ [ 'skia_shared_lib', {
+ 'files': [
+ '<(SHARED_LIB_DIR)/libskia_android.so',
+ '<(SHARED_LIB_DIR)/libcanvasproof.so',
+ ]}, {
+ 'files': [
+ '<(SHARED_LIB_DIR)/libcanvasproof.so',
+ ]}
+ ],
+ ],
+ },
+ ],
+ },
+ {
+ 'target_name': 'CanvasProof_APK',
+ 'type': 'none',
+ 'dependencies': [ 'CopyCanvasProofDeps', ],
+ 'actions': [
+ {
+ 'action_name': 'SkiaCanvasProof_apk',
+ 'inputs': [
+ '../apps/canvasproof/src/main/assets/skps',
+ '../apps/canvasproof/src/main/AndroidManifest.xml',
+ '../apps/canvasproof/src/main/java/org/skia/canvasproof/CreateSkiaPicture.java',
+ '../apps/canvasproof/src/main/java/org/skia/canvasproof/CanvasProofActivity.java',
+ '../apps/canvasproof/src/main/java/org/skia/canvasproof/GaneshPictureRenderer.java',
+ '../apps/canvasproof/src/main/java/org/skia/canvasproof/HwuiPictureView.java',
+ '<(android_base)/apps/canvasproof/src/main/libs/<(android_arch)/libcanvasproof.so',
+ '<(android_base)/apps/canvasproof/src/main/libs/<(android_arch)/libskia_android.so',
+
+ ],
+ 'outputs': [
+ '../apps/canvasproof/build',
+ ],
+ 'action': [
+ '<(android_base)/apps/gradlew',
+ ':canvasproof:assemble<(android_variant)Debug',
+ '-p<(android_base)/apps/canvasproof',
+ '-PsuppressNativeBuild',
+ ],
+ },
+ ],
+ },
+ ],
+}

Powered by Google App Engine
This is Rietveld 408576698