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_FORCE_DISTANCEFIELD_FONTS=<(skia_force_distancefield_fonts)', | 8 'SK_FORCE_DISTANCEFIELD_FONTS=<(skia_force_distancefield_fonts)', |
9 ], | 9 ], |
10 'conditions' : [ | 10 'conditions' : [ |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 'cflags_cc!': [ | 246 'cflags_cc!': [ |
247 '-fno-rtti', | 247 '-fno-rtti', |
248 '-Wnon-virtual-dtor', | 248 '-Wnon-virtual-dtor', |
249 ], | 249 ], |
250 'defines': [ | 250 'defines': [ |
251 'DCT_IFAST_SUPPORTED', | 251 'DCT_IFAST_SUPPORTED', |
252 # using freetype's embolden allows us to adjust fake bold settings at | 252 # using freetype's embolden allows us to adjust fake bold settings at |
253 # draw-time, at which point we know which SkTypeface is being drawn | 253 # draw-time, at which point we know which SkTypeface is being drawn |
254 'SK_USE_FREETYPE_EMBOLDEN', | 254 'SK_USE_FREETYPE_EMBOLDEN', |
255 # Android provides at least FreeType 2.4.0 at runtime. | 255 # Android provides at least FreeType 2.4.0 at runtime. |
256 'SK_FONTHOST_FREETYPE_RUNTIME_VERSION=0x020400', | 256 'SK_FONTHOST_FREETYPE_RUNTIME_VERSION 0x020400', |
257 # Skia should not use dlopen on Android. | 257 # Skia should not use dlopen on Android. |
258 'SK_CAN_USE_DLOPEN=0', | 258 'SK_CAN_USE_DLOPEN 0', |
| 259 'SK_SFNTLY_SUBSETTER "sample/chromium/font_subsetter.h"', |
| 260 # When built as part of the system image we can enable certian non-NDK |
| 261 # compliant optimizations. |
| 262 'SK_BUILD_FOR_ANDROID_FRAMEWORK', |
| 263 # Android Text Tuning |
| 264 'SK_GAMMA_APPLY_TO_A8', |
| 265 'SK_GAMMA_EXPONENT 1.4', |
| 266 'SK_GAMMA_CONTRAST 0.0', |
| 267 # Optimizations for chromium (m30) |
| 268 'GR_GL_CUSTOM_SETUP_HEADER "gl/GrGLConfig_chrome.h"', |
| 269 'IGNORE_ROT_AA_RECT_OPT', |
| 270 # Disable this check because it is too strict for some chromium-specific |
| 271 # subclasses of SkPixelRef. See bug: crbug.com/171776. |
| 272 'SK_DISABLE_PIXELREF_LOCKCOUNT_BALANCE_CHECK', |
| 273 'SkLONGLONG int64_t', |
| 274 'SK_DEFAULT_FONT_CACHE_LIMIT (768 * 1024)', |
| 275 'SK_ATOMICS_PLATFORM_H "../../src/ports/SkAtomics_android.h"', |
| 276 'SK_MUTEX_PLATFORM_H "../../src/ports/SkMutex_pthread.h"', |
259 ], | 277 ], |
260 }], | 278 }], |
261 | 279 |
262 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "nacl", "chromeos"]
', | 280 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "nacl", "chromeos"]
', |
263 { | 281 { |
264 'defines': [ | 282 'defines': [ |
265 'SK_SAMPLES_FOR_X', | 283 'SK_SAMPLES_FOR_X', |
266 'SK_BUILD_FOR_UNIX', | 284 'SK_BUILD_FOR_UNIX', |
267 ], | 285 ], |
268 'configurations': { | 286 'configurations': { |
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
555 'defines': [ | 573 'defines': [ |
556 'SK_USE_POSIX_THREADS', | 574 'SK_USE_POSIX_THREADS', |
557 ], | 575 ], |
558 }], | 576 }], |
559 ], # end 'conditions' | 577 ], # end 'conditions' |
560 # The Xcode SYMROOT must be at the root. See build/common.gypi in chromium for
more details | 578 # The Xcode SYMROOT must be at the root. See build/common.gypi in chromium for
more details |
561 'xcode_settings': { | 579 'xcode_settings': { |
562 'SYMROOT': '<(DEPTH)/xcodebuild', | 580 'SYMROOT': '<(DEPTH)/xcodebuild', |
563 }, | 581 }, |
564 } | 582 } |
OLD | NEW |