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

Side by Side Diff: platform_tools/android/gyp/skia_android.gypi

Issue 1415453009: Wire up SDL on Android (Closed) Base URL: https://skia.googlesource.com/skia.git@sdl
Patch Set: fix appurify Created 5 years, 1 month 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 unified diff | Download patch
OLDNEW
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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 ], 203 ],
204 'action': [ 204 'action': [
205 '<(android_base)/apps/gradlew', 205 '<(android_base)/apps/gradlew',
206 ':visualbench:assemble<(android_variant)DebugAndroidTest', 206 ':visualbench:assemble<(android_variant)DebugAndroidTest',
207 '-p<(android_base)/apps/visualbench', 207 '-p<(android_base)/apps/visualbench',
208 '-PsuppressNativeBuild', 208 '-PsuppressNativeBuild',
209 ], 209 ],
210 }, 210 },
211 ], 211 ],
212 }, 212 },
213 # TODO all of this duplicated code can be removed when SDL becomes the defau lt
214 # Currently, to use this you have to override skia_use_sdl
215 {
216 'target_name': 'CopyVisualBenchSDLDeps',
217 'type': 'none',
218 'dependencies': [
219 'skia_lib.gyp:skia_lib',
220 'visualbench.gyp:visualbench',
221 ],
222
223 'copies': [
224 # Copy all shared libraries into the Android app's libs folder. Note
225 # that this copy requires us to build SkiaAndroidApp after those
226 # libraries, so that they exist by the time it occurs. If there are no
227 # libraries to copy, this will cause an error in Make, but the app will
228 # still build.
229 {
230 'destination': '<(android_base)/apps/visualbenchsdl/src/main/libs/<(an droid_arch)',
231 'conditions': [
232 [ 'skia_shared_lib', {
233 'files': [
234 '<(SHARED_LIB_DIR)/libskia_android.so',
235 '<(SHARED_LIB_DIR)/libvisualbench.so',
236 ]}, {
237 'files': [
238 '<(SHARED_LIB_DIR)/libvisualbench.so',
239 ]}
240 ],
241 ],
242 },
243 ],
244 },
245 {
246 'target_name': 'VisualBenchSDL_APK',
247 'type': 'none',
248 'dependencies': [
249 'CopyVisualBenchSDLDeps',
250 ],
251 'actions': [
252 {
253 'action_name': 'SkiaVisualBenchSDL_apk',
254 'inputs': [
255 '<(android_base)/apps/visualbenchsdl/src/main/AndroidManifest.xml',
256 '<(android_base)/apps/visualbenchsdl/src/main/java/org/libsdl/app/SD LActivity.java',
257 '<(android_base)/apps/visualbenchsdl/src/main/java/com/skia/VisualBe nchActivity.java',
258 '<(android_base)/apps/visualbenchsdl/src/main/libs/<(android_arch)/l ibvisualbench.so',
259 ],
260 'conditions': [
261 [ 'skia_shared_lib', {
262 'inputs': [
263 '<(android_base)/apps/visualbenchsdl/src/main/libs/<(android_arc h)/libskia_android.so',
264 ],
265 }],
266 ],
267 'outputs': [
268 '<(android_base)/apps/visualbenchsdl/build/outputs/apk/visualbench-< (android_variant)-<(android_apk_suffix)',
269 ],
270 'action': [
271 '<(android_base)/apps/gradlew',
272 ':visualbenchsdl:assemble<(android_variant)<(android_buildtype)',
273 '-p<(android_base)/apps/visualbenchsdl',
274 '-PsuppressNativeBuild',
275 ],
276 },
277 ],
278 },
213 ], 279 ],
214 } 280 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698