| OLD | NEW |
| 1 # Copyright 2015 Google Inc. | 1 # Copyright 2015 Google Inc. |
| 2 # | 2 # |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 # This GYP file stores the dependencies necessary to build Skia on the Android | 6 # This GYP file stores the dependencies necessary to build Skia on the Android |
| 7 # platform. The OS doesn't provide many stable libraries as part of the | 7 # platform. The OS doesn't provide many stable libraries as part of the |
| 8 # distribution so we have to build a few of them ourselves. | 8 # distribution so we have to build a few of them ourselves. |
| 9 # | 9 # |
| 10 { | 10 { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 'android_variant%': "x86_64", | 31 'android_variant%': "x86_64", |
| 32 }], | 32 }], |
| 33 [ 'skia_arch_type == "mips32"', { | 33 [ 'skia_arch_type == "mips32"', { |
| 34 'android_arch%': "mips", | 34 'android_arch%': "mips", |
| 35 'android_variant%': "mips", | 35 'android_variant%': "mips", |
| 36 }], | 36 }], |
| 37 [ 'skia_arch_type == "mips64"', { | 37 [ 'skia_arch_type == "mips64"', { |
| 38 'android_arch%': "mips64", | 38 'android_arch%': "mips64", |
| 39 'android_variant%': "mips64", | 39 'android_variant%': "mips64", |
| 40 }], | 40 }], |
| 41 [ 'android_buildtype == "Release"', { |
| 42 'android_apk_suffix': "release-unsigned.apk", |
| 43 }, { |
| 44 'android_apk_suffix': "debug.apk", |
| 45 }], |
| 41 ], | 46 ], |
| 42 }, | 47 }, |
| 43 'targets': [ | 48 'targets': [ |
| 44 { | 49 { |
| 45 'target_name': 'CopySampleAppDeps', | 50 'target_name': 'CopySampleAppDeps', |
| 46 'type': 'none', | 51 'type': 'none', |
| 47 'dependencies': [ | 52 'dependencies': [ |
| 48 'skia_lib.gyp:skia_lib', | 53 'skia_lib.gyp:skia_lib', |
| 49 'SampleApp.gyp:SampleApp', | 54 'SampleApp.gyp:SampleApp', |
| 50 ], | 55 ], |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 '<(android_base)/apps/sample_app/src/main/libs/<(android_arch)/libSa
mpleApp.so', | 94 '<(android_base)/apps/sample_app/src/main/libs/<(android_arch)/libSa
mpleApp.so', |
| 90 ], | 95 ], |
| 91 'conditions': [ | 96 'conditions': [ |
| 92 [ 'skia_shared_lib', { | 97 [ 'skia_shared_lib', { |
| 93 'inputs': [ | 98 'inputs': [ |
| 94 '<(android_base)/apps/sample_app/src/main/libs/<(android_arch)/l
ibskia_android.so', | 99 '<(android_base)/apps/sample_app/src/main/libs/<(android_arch)/l
ibskia_android.so', |
| 95 ], | 100 ], |
| 96 }], | 101 }], |
| 97 ], | 102 ], |
| 98 'outputs': [ | 103 'outputs': [ |
| 99 '<(android_base)/apps/sample_app/build/outputs/apk/sample_app-arm-de
bug.apk', | 104 '<(android_base)/apps/sample_app/build/outputs/apk/sample_app-<(andr
oid_variant)-<(android_apk_suffix)', |
| 100 ], | 105 ], |
| 101 'action': [ | 106 'action': [ |
| 102 '<(android_base)/apps/gradlew', | 107 '<(android_base)/apps/gradlew', |
| 103 ':sample_app:assemble<(android_variant)Debug', | 108 ':sample_app:assemble<(android_variant)<(android_buildtype)', |
| 104 '-p<(android_base)/apps/sample_app', | 109 '-p<(android_base)/apps/sample_app', |
| 105 '-PsuppressNativeBuild', | 110 '-PsuppressNativeBuild', |
| 106 ], | 111 ], |
| 107 }, | 112 }, |
| 108 ], | 113 ], |
| 109 }, | 114 }, |
| 110 { | 115 { |
| 111 'target_name': 'CopyVisualBenchDeps', | 116 'target_name': 'CopyVisualBenchDeps', |
| 112 'type': 'none', | 117 'type': 'none', |
| 113 'dependencies': [ | 118 'dependencies': [ |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 '<(android_base)/apps/visualbench/src/main/libs/<(android_arch)/libv
isualbench.so', | 157 '<(android_base)/apps/visualbench/src/main/libs/<(android_arch)/libv
isualbench.so', |
| 153 ], | 158 ], |
| 154 'conditions': [ | 159 'conditions': [ |
| 155 [ 'skia_shared_lib', { | 160 [ 'skia_shared_lib', { |
| 156 'inputs': [ | 161 'inputs': [ |
| 157 '<(android_base)/apps/visualbench/src/main/libs/<(android_arch)/
libskia_android.so', | 162 '<(android_base)/apps/visualbench/src/main/libs/<(android_arch)/
libskia_android.so', |
| 158 ], | 163 ], |
| 159 }], | 164 }], |
| 160 ], | 165 ], |
| 161 'outputs': [ | 166 'outputs': [ |
| 162 '<(android_base)/apps/visualbench/build/outputs/apk/visualbench-arm-
debug.apk', | 167 '<(android_base)/apps/visualbench/build/outputs/apk/visualbench-<(an
droid_variant)-<(android_apk_suffix)', |
| 163 ], | 168 ], |
| 164 'action': [ | 169 'action': [ |
| 165 '<(android_base)/apps/gradlew', | 170 '<(android_base)/apps/gradlew', |
| 166 ':visualbench:assemble<(android_variant)Debug', | 171 ':visualbench:assemble<(android_variant)<(android_buildtype)', |
| 167 '-p<(android_base)/apps/visualbench', | 172 '-p<(android_base)/apps/visualbench', |
| 168 '-PsuppressNativeBuild', | 173 '-PsuppressNativeBuild', |
| 169 ], | 174 ], |
| 170 }, | 175 }, |
| 171 ], | 176 ], |
| 172 }, | 177 }, |
| 173 ], | 178 ], |
| 174 } | 179 } |
| OLD | NEW |