Home | History | Annotate | Download | only in gyp
      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': 'canvasproof',
      9       'type': 'shared_library',
     10       'dependencies': [ 'skia_lib.gyp:skia_lib', ],
     11       'sources': [
     12         '../apps/canvasproof/src/main/jni/JavaInputStream.cpp',
     13         '../apps/canvasproof/src/main/jni/JavaInputStream.h',
     14         '../apps/canvasproof/src/main/jni/org_skia_canvasproof_GaneshPictureRenderer.cpp',
     15         '../apps/canvasproof/src/main/jni/org_skia_canvasproof_GaneshPictureRenderer.h',
     16         '../apps/canvasproof/src/main/jni/org_skia_canvasproof_CreateSkiaPicture.cpp',
     17         '../apps/canvasproof/src/main/jni/org_skia_canvasproof_CreateSkiaPicture.h  ',
     18       ],
     19     },
     20     {
     21       'target_name': 'CopyCanvasProofDeps',
     22       'type': 'none',
     23       'dependencies': [
     24         'skia_lib.gyp:skia_lib',
     25         'canvasproof',
     26       ],
     27       'copies': [
     28         {
     29           'destination': '../apps/canvasproof/src/main/libs/<(android_arch)',
     30           'conditions': [
     31             [ 'skia_shared_lib', {
     32               'files': [
     33                 '<(SHARED_LIB_DIR)/libskia_android.so',
     34                 '<(SHARED_LIB_DIR)/libcanvasproof.so',
     35               ]}, {
     36               'files': [
     37                 '<(SHARED_LIB_DIR)/libcanvasproof.so',
     38               ]}
     39            ],
     40           ],
     41         },
     42       ],
     43     },
     44     {
     45       'target_name': 'CanvasProof_APK',
     46       'type': 'none',
     47       'dependencies': [ 'CopyCanvasProofDeps', ],
     48       'actions': [
     49         {
     50           'action_name': 'SkiaCanvasProof_apk',
     51           'inputs': [
     52             '../apps/canvasproof/src/main/assets/skps',
     53             '../apps/canvasproof/src/main/AndroidManifest.xml',
     54             '../apps/canvasproof/src/main/java/org/skia/canvasproof/CreateSkiaPicture.java',
     55             '../apps/canvasproof/src/main/java/org/skia/canvasproof/CanvasProofActivity.java',
     56             '../apps/canvasproof/src/main/java/org/skia/canvasproof/GaneshPictureRenderer.java',
     57             '../apps/canvasproof/src/main/java/org/skia/canvasproof/HwuiPictureView.java',
     58             '<(android_base)/apps/canvasproof/src/main/libs/<(android_arch)/libcanvasproof.so',
     59             '<(android_base)/apps/canvasproof/src/main/libs/<(android_arch)/libskia_android.so',
     60 
     61           ],
     62           'outputs': [
     63             '../apps/canvasproof/build',
     64           ],
     65           'action': [
     66             '<(android_base)/apps/gradlew',
     67             ':canvasproof:assemble<(android_variant)Debug',
     68             '-p<(android_base)/apps/canvasproof',
     69             '-PsuppressNativeBuild',
     70           ],
     71         },
     72       ],
     73     },
     74   ],
     75 }
     76