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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 'target_name': 'VisualBenchTest_APK', | 180 'target_name': 'VisualBenchTest_APK', |
181 'type': 'none', | 181 'type': 'none', |
182 'dependencies': [ | 182 'dependencies': [ |
183 'VisualBench_APK', | 183 'VisualBench_APK', |
184 ], | 184 ], |
185 'actions': [ | 185 'actions': [ |
186 { | 186 { |
187 'action_name': 'SkiaVisualBench_apk', | 187 'action_name': 'SkiaVisualBench_apk', |
188 'inputs': [ | 188 'inputs': [ |
189 '<(android_base)/apps/visualbench/src/main/AndroidManifest.xml', | 189 '<(android_base)/apps/visualbench/src/main/AndroidManifest.xml', |
190 '<(android_base)/apps/visualbench/src/main/java/org/libsdl/app/SDLAc
tivity.java', | |
191 '<(android_base)/apps/visualbench/src/main/java/com/skia/VisualBench
Activity.java', | 190 '<(android_base)/apps/visualbench/src/main/java/com/skia/VisualBench
Activity.java', |
192 '<(android_base)/apps/visualbench/src/main/java/com/skia/VisualBench
TestActivity.java', | 191 '<(android_base)/apps/visualbench/src/main/java/com/skia/VisualBench
TestActivity.java', |
193 '<(android_base)/apps/visualbench/src/main/libs/<(android_arch)/libv
isualbench.so', | 192 '<(android_base)/apps/visualbench/src/main/libs/<(android_arch)/libv
isualbench.so', |
194 ], | 193 ], |
195 'conditions': [ | 194 'conditions': [ |
196 [ 'skia_shared_lib', { | 195 [ 'skia_shared_lib', { |
197 'inputs': [ | 196 'inputs': [ |
198 '<(android_base)/apps/visualbench/src/main/libs/<(android_arch)/
libskia_android.so', | 197 '<(android_base)/apps/visualbench/src/main/libs/<(android_arch)/
libskia_android.so', |
199 ], | 198 ], |
200 }], | 199 }], |
201 ], | 200 ], |
202 'outputs': [ | 201 'outputs': [ |
203 '<(android_base)/apps/visualbench/build/outputs/apk/visualbench-<(an
droid_variant)-debug-androidTest-unaligned.apk', | 202 '<(android_base)/apps/visualbench/build/outputs/apk/visualbench-<(an
droid_variant)-debug-androidTest-unaligned.apk', |
204 ], | 203 ], |
205 'action': [ | 204 'action': [ |
206 '<(android_base)/apps/gradlew', | 205 '<(android_base)/apps/gradlew', |
207 ':visualbench:assemble<(android_variant)DebugAndroidTest', | 206 ':visualbench:assemble<(android_variant)DebugAndroidTest', |
208 '-p<(android_base)/apps/visualbench', | 207 '-p<(android_base)/apps/visualbench', |
209 '-PsuppressNativeBuild', | 208 '-PsuppressNativeBuild', |
210 ], | 209 ], |
211 }, | 210 }, |
212 ], | 211 ], |
213 }, | 212 }, |
214 # TODO all of this duplicated code can be removed when SDL becomes the defau
lt | |
215 # Currently, to use this you have to override skia_use_sdl | |
216 { | |
217 'target_name': 'CopyVisualBenchSDLDeps', | |
218 'type': 'none', | |
219 'dependencies': [ | |
220 'skia_lib.gyp:skia_lib', | |
221 'visualbench.gyp:visualbench', | |
222 ], | |
223 | |
224 'copies': [ | |
225 # Copy all shared libraries into the Android app's libs folder. Note | |
226 # that this copy requires us to build SkiaAndroidApp after those | |
227 # libraries, so that they exist by the time it occurs. If there are no | |
228 # libraries to copy, this will cause an error in Make, but the app will | |
229 # still build. | |
230 { | |
231 'destination': '<(android_base)/apps/visualbenchsdl/src/main/libs/<(an
droid_arch)', | |
232 'conditions': [ | |
233 [ 'skia_shared_lib', { | |
234 'files': [ | |
235 '<(SHARED_LIB_DIR)/libskia_android.so', | |
236 '<(SHARED_LIB_DIR)/libvisualbench.so', | |
237 ]}, { | |
238 'files': [ | |
239 '<(SHARED_LIB_DIR)/libvisualbench.so', | |
240 ]} | |
241 ], | |
242 ], | |
243 }, | |
244 ], | |
245 }, | |
246 { | |
247 'target_name': 'VisualBenchSDL_APK', | |
248 'type': 'none', | |
249 'dependencies': [ | |
250 'CopyVisualBenchSDLDeps', | |
251 ], | |
252 'actions': [ | |
253 { | |
254 'action_name': 'SkiaVisualBenchSDL_apk', | |
255 'inputs': [ | |
256 '<(android_base)/apps/visualbenchsdl/src/main/AndroidManifest.xml', | |
257 '<(android_base)/apps/visualbenchsdl/src/main/java/org/libsdl/app/SD
LActivity.java', | |
258 '<(android_base)/apps/visualbenchsdl/src/main/java/com/skia/VisualBe
nchActivity.java', | |
259 '<(android_base)/apps/visualbenchsdl/src/main/libs/<(android_arch)/l
ibvisualbench.so', | |
260 ], | |
261 'conditions': [ | |
262 [ 'skia_shared_lib', { | |
263 'inputs': [ | |
264 '<(android_base)/apps/visualbenchsdl/src/main/libs/<(android_arc
h)/libskia_android.so', | |
265 ], | |
266 }], | |
267 ], | |
268 'outputs': [ | |
269 '<(android_base)/apps/visualbenchsdl/build/outputs/apk/visualbench-<
(android_variant)-<(android_apk_suffix)', | |
270 ], | |
271 'action': [ | |
272 '<(android_base)/apps/gradlew', | |
273 ':visualbenchsdl:assemble<(android_variant)<(android_buildtype)', | |
274 '-p<(android_base)/apps/visualbenchsdl', | |
275 '-PsuppressNativeBuild', | |
276 ], | |
277 }, | |
278 ], | |
279 }, | |
280 ], | 213 ], |
281 } | 214 } |
OLD | NEW |