| OLD | NEW |
| 1 { | 1 { |
| 2 'targets': [ | 2 'targets': [ |
| 3 { | 3 { |
| 4 'target_name': 'CopySkiaAppDeps', | 4 'target_name': 'CopySampleAppDeps', |
| 5 'type': 'none', | 5 'type': 'none', |
| 6 'dependencies': [ | 6 'dependencies': [ |
| 7 'skia_lib.gyp:skia_lib', | 7 'skia_lib.gyp:skia_lib', |
| 8 'SampleApp.gyp:SampleApp', | 8 'SampleApp.gyp:SampleApp', |
| 9 'bench.gyp:bench', | |
| 10 'gm.gyp:gm', | |
| 11 'tests.gyp:tests', | |
| 12 'pathops_unittest.gyp:pathops_unittest', | |
| 13 'tools.gyp:bench_pictures', | |
| 14 'tools.gyp:render_pictures', | |
| 15 'tools.gyp:render_pdfs', | |
| 16 'tools.gyp:skimage', | |
| 17 ], | 9 ], |
| 18 'variables': { | 10 'variables': { |
| 19 'conditions': [ | 11 'conditions': [ |
| 20 [ 'skia_arch_type == "x86"', { | 12 [ 'skia_arch_type == "x86"', { |
| 21 'android_arch%': "x86", | 13 'android_arch%': "x86", |
| 22 }, { | 14 }, { |
| 23 'conditions': [ | 15 'conditions': [ |
| 24 [ 'arm_version == 7', { | 16 [ 'arm_version == 7', { |
| 25 'android_arch%': "armeabi-v7a", | 17 'android_arch%': "armeabi-v7a", |
| 26 }, { | 18 }, { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 40 ], | 32 ], |
| 41 }, | 33 }, |
| 42 # Copy all shared libraries into the Android app's libs folder. Note | 34 # Copy all shared libraries into the Android app's libs folder. Note |
| 43 # that this copy requires us to build SkiaAndroidApp after those | 35 # that this copy requires us to build SkiaAndroidApp after those |
| 44 # libraries, so that they exist by the time it occurs. If there are no | 36 # libraries, so that they exist by the time it occurs. If there are no |
| 45 # libraries to copy, this will cause an error in Make, but the app will | 37 # libraries to copy, this will cause an error in Make, but the app will |
| 46 # still build. | 38 # still build. |
| 47 { | 39 { |
| 48 'destination': '<(PRODUCT_DIR)/android/libs/<(android_arch)', | 40 'destination': '<(PRODUCT_DIR)/android/libs/<(android_arch)', |
| 49 'files': [ | 41 'files': [ |
| 50 '<(PRODUCT_DIR)/lib.target/libbench.so', | |
| 51 '<(PRODUCT_DIR)/lib.target/libbench_pictures.so', | |
| 52 '<(PRODUCT_DIR)/lib.target/libgm.so', | |
| 53 '<(PRODUCT_DIR)/lib.target/librender_pdfs.so', | |
| 54 '<(PRODUCT_DIR)/lib.target/librender_pictures.so', | |
| 55 '<(PRODUCT_DIR)/lib.target/libSampleApp.so', | 42 '<(PRODUCT_DIR)/lib.target/libSampleApp.so', |
| 56 '<(PRODUCT_DIR)/lib.target/libskimage.so', | |
| 57 '<(PRODUCT_DIR)/lib.target/libtests.so', | |
| 58 '<(PRODUCT_DIR)/lib.target/libpathops_unittest.so', | |
| 59 '<(PRODUCT_DIR)/lib.target/gdbserver', | 43 '<(PRODUCT_DIR)/lib.target/gdbserver', |
| 60 '<(PRODUCT_DIR)/lib.target/libskia_android.so', | 44 '<(PRODUCT_DIR)/lib.target/libskia_android.so', |
| 61 ], | 45 ], |
| 62 }, | 46 }, |
| 63 ], | 47 ], |
| 64 }, | 48 }, |
| 65 { | 49 { |
| 66 'target_name': 'skia_launcher', | 50 'target_name': 'skia_launcher', |
| 67 'type': 'executable', | 51 'type': 'executable', |
| 68 'sources': [ | 52 'sources': [ |
| 69 '../launcher/skia_launcher.cpp', | 53 '../launcher/skia_launcher.cpp', |
| 70 ], | 54 ], |
| 71 }, | 55 }, |
| 72 { | 56 { |
| 73 'target_name': 'SkiaAndroidApp', | 57 'target_name': 'SampleApp_APK', |
| 74 'type': 'none', | 58 'type': 'none', |
| 75 'dependencies': [ | 59 'dependencies': [ |
| 76 'CopySkiaAppDeps', | 60 'CopySampleAppDeps', |
| 77 'skia_launcher', | |
| 78 ], | 61 ], |
| 79 'variables': { | 62 'variables': { |
| 80 'ANDROID_SDK_ROOT': '<!(echo $ANDROID_SDK_ROOT)' | 63 'ANDROID_SDK_ROOT': '<!(echo $ANDROID_SDK_ROOT)' |
| 81 }, | 64 }, |
| 82 'actions': [ | 65 'actions': [ |
| 83 { | 66 { |
| 84 'action_name': 'SkiaAndroid_apk', | 67 'action_name': 'SkiaAndroid_apk', |
| 85 'inputs': [ | 68 'inputs': [ |
| 86 '<(android_base)/app/AndroidManifest.xml', | 69 '<(android_base)/app/AndroidManifest.xml', |
| 87 '<(android_base)/app/build.xml', | 70 '<(android_base)/app/build.xml', |
| 88 '<(android_base)/app/project.properties', | 71 '<(android_base)/app/project.properties', |
| 89 '<(android_base)/app/jni/com_skia_SkiaIntentService.h', | |
| 90 '<(android_base)/app/jni/com_skia_SkiaIntentService.cpp', | |
| 91 '<(android_base)/app/jni/com_skia_SkiaSampleRenderer.h', | 72 '<(android_base)/app/jni/com_skia_SkiaSampleRenderer.h', |
| 92 '<(android_base)/app/jni/com_skia_SkiaSampleRenderer.cpp', | 73 '<(android_base)/app/jni/com_skia_SkiaSampleRenderer.cpp', |
| 93 '<(android_base)/app/src/com/skia/SkiaReceiver.java', | |
| 94 '<(android_base)/app/src/com/skia/SkiaIntentService.java', | |
| 95 '<(android_base)/app/src/com/skia/SkiaSampleActivity.java', | 74 '<(android_base)/app/src/com/skia/SkiaSampleActivity.java', |
| 96 '<(android_base)/app/src/com/skia/SkiaSampleRenderer.java', | 75 '<(android_base)/app/src/com/skia/SkiaSampleRenderer.java', |
| 97 '<(android_base)/app/src/com/skia/SkiaSampleView.java', | 76 '<(android_base)/app/src/com/skia/SkiaSampleView.java', |
| 98 ], | 77 ], |
| 99 'outputs': [ | 78 'outputs': [ |
| 100 '<(PRODUCT_DIR)/../android/bin/SkiaAndroid.apk', | 79 '<(PRODUCT_DIR)/../android/bin/SkiaAndroid.apk', |
| 101 ], | 80 ], |
| 102 'action': [ | 81 'action': [ |
| 103 'ant', | 82 'ant', |
| 104 '-f', | 83 '-f', |
| 105 '<(android_base)/app/build.xml', | 84 '<(android_base)/app/build.xml', |
| 106 '-Dout.dir=<(PRODUCT_DIR)/android/bin', | 85 '-Dout.dir=<(PRODUCT_DIR)/android/bin', |
| 107 '-Dgen.absolute.dir=<(PRODUCT_DIR)/android/gen', | 86 '-Dgen.absolute.dir=<(PRODUCT_DIR)/android/gen', |
| 108 '-Dnative.libs.absolute.dir=<(PRODUCT_DIR)/android/libs', | 87 '-Dnative.libs.absolute.dir=<(PRODUCT_DIR)/android/libs', |
| 109 '-Dout.final.file=<(PRODUCT_DIR)/android/bin/SkiaAndroid.apk', | 88 '-Dout.final.file=<(PRODUCT_DIR)/android/bin/SkiaAndroid.apk', |
| 110 '-Dsdk.dir=<(ANDROID_SDK_ROOT)', | 89 '-Dsdk.dir=<(ANDROID_SDK_ROOT)', |
| 111 'debug', | 90 'debug', |
| 112 ], | 91 ], |
| 113 }, | 92 }, |
| 114 ], | 93 ], |
| 115 }, | 94 }, |
| 116 ], | 95 ], |
| 117 } | 96 } |
| OLD | NEW |