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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
421 }, | 443 }, |
422 }, | 444 }, |
423 ], | 445 ], |
424 | 446 |
425 [ 'skia_os == "android"', | 447 [ 'skia_os == "android"', |
426 { | 448 { |
427 'defines': [ | 449 'defines': [ |
428 'SK_BUILD_FOR_ANDROID', | 450 'SK_BUILD_FOR_ANDROID', |
429 'SK_FONTHOST_DOES_NOT_USE_FONTMGR', | 451 'SK_FONTHOST_DOES_NOT_USE_FONTMGR', |
430 ], | 452 ], |
431 'configurations': { | 453 'conditions': [ |
432 'Debug': { | 454 [ 'skia_android_framework==0', { |
433 'cflags': ['-g'] | 455 # Don't use the configurations for skia_android_framework, where |
434 }, | 456 # we generate a single makefile for all builds, and flags can be |
435 'Release': { | 457 # set manually for debugging. |
436 'cflags': ['-O2'], | 458 'configurations': { |
437 'defines': [ 'NDEBUG' ], | 459 'Debug': { |
438 }, | 460 'cflags': ['-g'] |
439 }, | 461 }, |
| 462 'Release': { |
| 463 'cflags': ['-O2'], |
| 464 'defines': [ 'NDEBUG' ], |
| 465 }, |
| 466 }, |
| 467 # Adding these libraries is not necessary for the framework. |
| 468 'libraries': [ |
| 469 '-lstdc++', |
| 470 '-lm', |
| 471 ], |
| 472 }], |
| 473 ], |
440 'libraries': [ | 474 'libraries': [ |
441 '-lstdc++', | |
442 '-lm', | |
443 '-llog', | 475 '-llog', |
444 ], | 476 ], |
445 'cflags': [ | 477 'cflags': [ |
446 '-fuse-ld=gold', | 478 '-fuse-ld=gold', |
447 ], | 479 ], |
448 'conditions': [ | 480 'conditions': [ |
449 [ 'skia_shared_lib', { | 481 [ 'skia_shared_lib', { |
450 'cflags': [ | 482 'cflags': [ |
451 '-fPIC', | 483 '-fPIC', |
452 ], | 484 ], |
(...skipping 15 matching lines...) Expand all Loading... |
468 'defines': [ | 500 'defines': [ |
469 'SK_USE_POSIX_THREADS', | 501 'SK_USE_POSIX_THREADS', |
470 ], | 502 ], |
471 }], | 503 }], |
472 ], # end 'conditions' | 504 ], # end 'conditions' |
473 # The Xcode SYMROOT must be at the root. See build/common.gypi in chromium for
more details | 505 # The Xcode SYMROOT must be at the root. See build/common.gypi in chromium for
more details |
474 'xcode_settings': { | 506 'xcode_settings': { |
475 'SYMROOT': '<(DEPTH)/xcodebuild', | 507 'SYMROOT': '<(DEPTH)/xcodebuild', |
476 }, | 508 }, |
477 } | 509 } |
OLD | NEW |