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

Side by Side Diff: gyp/common_conditions.gypi

Issue 153093003: Gyp file changes for the android framework. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 10 months 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 # conditions used in both common.gypi and skia.gyp in chromium 1 # conditions used in both common.gypi and skia.gyp in chromium
2 # 2 #
3 { 3 {
4 'defines': [ 4 'defines': [
5 'SK_ALLOW_STATIC_GLOBAL_INITIALIZERS=<(skia_static_initializers)', 5 'SK_ALLOW_STATIC_GLOBAL_INITIALIZERS=<(skia_static_initializers)',
6 'SK_SUPPORT_GPU=<(skia_gpu)', 6 'SK_SUPPORT_GPU=<(skia_gpu)',
7 'SK_SUPPORT_OPENCL=<(skia_opencl)', 7 'SK_SUPPORT_OPENCL=<(skia_opencl)',
8 'SK_DISTANCEFIELD_FONTS=<(skia_distancefield_fonts)', 8 'SK_DISTANCEFIELD_FONTS=<(skia_distancefield_fonts)',
9 ], 9 ],
10 'conditions' : [ 10 'conditions' : [
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 'cflags': [ 186 'cflags': [
187 '-mfloat-abi=softfp', 187 '-mfloat-abi=softfp',
188 ], 188 ],
189 }], 189 }],
190 ], 190 ],
191 }], 191 }],
192 ], 192 ],
193 }, 193 },
194 ], 194 ],
195 195
196 ['skia_android_framework', {
197 'cflags': [
198 # Skia does not enforce this usage pattern so we disable it here to avoi d
199 # unecessary log spew when building
200 '-Wno-unused-parameter',
201
202 # Android's -D_FORTIFY_SOURCE=2 extensions are incompatibile with SkStri ng.
203 # Revert to -D_FORTIFY_SOURCE=1
204 '-U_FORTIFY_SOURCE',
205 '-D_FORTIFY_SOURCE=1',
206 ],
207 'defines': [
208 'DCT_IFAST_SUPPORTED',
209 # using freetype's embolden allows us to adjust fake bold settings at
210 # draw-time, at which point we know which SkTypeface is being drawn
211 'SK_USE_FREETYPE_EMBOLDEN',
212 # Android provides at least FreeType 2.4.0 at runtime.
213 'SK_FONTHOST_FREETYPE_RUNTIME_VERSION=0x020400',
214 # Skia should not use dlopen on Android.
215 'SK_CAN_USE_DLOPEN=0',
216 ],
217 }],
196 218
197 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "nacl", "chromeos"] ', 219 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "nacl", "chromeos"] ',
198 { 220 {
199 'defines': [ 221 'defines': [
200 'SK_SAMPLES_FOR_X', 222 'SK_SAMPLES_FOR_X',
201 'SK_BUILD_FOR_UNIX', 223 'SK_BUILD_FOR_UNIX',
202 ], 224 ],
203 'configurations': { 225 'configurations': {
204 'Coverage': { 226 'Coverage': {
205 'cflags': ['--coverage'], 227 'cflags': ['--coverage'],
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 }, 449 },
428 }, 450 },
429 ], 451 ],
430 452
431 [ 'skia_os == "android"', 453 [ 'skia_os == "android"',
432 { 454 {
433 'defines': [ 455 'defines': [
434 'SK_BUILD_FOR_ANDROID', 456 'SK_BUILD_FOR_ANDROID',
435 'SK_FONTHOST_DOES_NOT_USE_FONTMGR', 457 'SK_FONTHOST_DOES_NOT_USE_FONTMGR',
436 ], 458 ],
437 'configurations': { 459 'conditions': [
438 'Debug': { 460 [ 'skia_android_framework==0', {
439 'cflags': ['-g'] 461 # Don't use the configurations for skia_android_framework, where
440 }, 462 # we generate a single makefile for all builds, and flags can be
441 'Release': { 463 # set manually for debugging.
442 'cflags': ['-O2'], 464 'configurations': {
443 'defines': [ 'NDEBUG' ], 465 'Debug': {
444 }, 466 'cflags': ['-g']
445 }, 467 },
468 'Release': {
469 'cflags': ['-O2'],
470 'defines': [ 'NDEBUG' ],
471 },
472 },
473 # Adding these libraries is not necessary for the framework.
474 'libraries': [
475 '-lstdc++',
476 '-lm',
477 ],
478 }],
479 ],
446 'libraries': [ 480 'libraries': [
447 '-lstdc++',
448 '-lm',
449 '-llog', 481 '-llog',
450 ], 482 ],
451 'cflags': [ 483 'cflags': [
452 '-fuse-ld=gold', 484 '-fuse-ld=gold',
453 ], 485 ],
454 'conditions': [ 486 'conditions': [
455 [ 'skia_shared_lib', { 487 [ 'skia_shared_lib', {
456 'cflags': [ 488 'cflags': [
457 '-fPIC', 489 '-fPIC',
458 ], 490 ],
(...skipping 15 matching lines...) Expand all
474 'defines': [ 506 'defines': [
475 'SK_USE_POSIX_THREADS', 507 'SK_USE_POSIX_THREADS',
476 ], 508 ],
477 }], 509 }],
478 ], # end 'conditions' 510 ], # end 'conditions'
479 # The Xcode SYMROOT must be at the root. See build/common.gypi in chromium for more details 511 # The Xcode SYMROOT must be at the root. See build/common.gypi in chromium for more details
480 'xcode_settings': { 512 'xcode_settings': {
481 'SYMROOT': '<(DEPTH)/xcodebuild', 513 'SYMROOT': '<(DEPTH)/xcodebuild',
482 }, 514 },
483 } 515 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698