OLD | NEW |
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 Loading... |
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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
445 }, | 467 }, |
446 'libraries': [ | 468 'libraries': [ |
447 '-lstdc++', | 469 '-lstdc++', |
448 '-lm', | 470 '-lm', |
449 '-llog', | 471 '-llog', |
450 ], | 472 ], |
451 'cflags': [ | 473 'cflags': [ |
452 '-fuse-ld=gold', | 474 '-fuse-ld=gold', |
453 ], | 475 ], |
454 'conditions': [ | 476 'conditions': [ |
| 477 [ 'skia_android_framework', { |
| 478 'libraries!': [ |
| 479 '-lstdc++', |
| 480 '-lm', |
| 481 ], |
| 482 }], |
455 [ 'skia_shared_lib', { | 483 [ 'skia_shared_lib', { |
456 'cflags': [ | 484 'cflags': [ |
457 '-fPIC', | 485 '-fPIC', |
458 ], | 486 ], |
459 'defines': [ | 487 'defines': [ |
460 'SKIA_DLL', | 488 'SKIA_DLL', |
461 'SKIA_IMPLEMENTATION=1', | 489 'SKIA_IMPLEMENTATION=1', |
462 ], | 490 ], |
463 }], | 491 }], |
464 [ 'skia_profile_enabled == 1', { | 492 [ 'skia_profile_enabled == 1', { |
465 'cflags': ['-g', '-fno-omit-frame-pointer', '-marm', '-mapcs'], | 493 'cflags': ['-g', '-fno-omit-frame-pointer', '-marm', '-mapcs'], |
466 }], | 494 }], |
467 ], | 495 ], |
468 }, | 496 }, |
469 ], | 497 ], |
470 | 498 |
471 # We can POD-style initialization of static mutexes to avoid generating | 499 # We can POD-style initialization of static mutexes to avoid generating |
472 # static initializers if we're using a pthread-compatible thread interface. | 500 # static initializers if we're using a pthread-compatible thread interface. |
473 [ 'skia_os != "win"', { | 501 [ 'skia_os != "win"', { |
474 'defines': [ | 502 'defines': [ |
475 'SK_USE_POSIX_THREADS', | 503 'SK_USE_POSIX_THREADS', |
476 ], | 504 ], |
477 }], | 505 }], |
478 ], # end 'conditions' | 506 ], # end 'conditions' |
479 # The Xcode SYMROOT must be at the root. See build/common.gypi in chromium for
more details | 507 # The Xcode SYMROOT must be at the root. See build/common.gypi in chromium for
more details |
480 'xcode_settings': { | 508 'xcode_settings': { |
481 'SYMROOT': '<(DEPTH)/xcodebuild', | 509 'SYMROOT': '<(DEPTH)/xcodebuild', |
482 }, | 510 }, |
483 } | 511 } |
OLD | NEW |