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 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
242 '-mfloat-abi=softfp', | 242 '-mfloat-abi=softfp', |
243 ], | 243 ], |
244 }], | 244 }], |
245 ], | 245 ], |
246 }], | 246 }], |
247 ], | 247 ], |
248 }, | 248 }, |
249 ], | 249 ], |
250 | 250 |
251 ['skia_android_framework', { | 251 ['skia_android_framework', { |
252 'includes' : [ | |
253 'skia_for_android_framework_defines.gypi', | |
254 ], | |
252 'cflags': [ | 255 'cflags': [ |
253 # Skia does not enforce this usage pattern so we disable it here to avoi d | 256 # Skia does not enforce this usage pattern so we disable it here to avoi d |
254 # unecessary log spew when building | 257 # unecessary log spew when building |
255 '-Wno-unused-parameter', | 258 '-Wno-unused-parameter', |
256 | 259 |
257 # Android's -D_FORTIFY_SOURCE=2 extensions are incompatibile with SkStri ng. | 260 # Android's -D_FORTIFY_SOURCE=2 extensions are incompatibile with SkStri ng. |
258 # Revert to -D_FORTIFY_SOURCE=1 | 261 # Revert to -D_FORTIFY_SOURCE=1 |
259 '-U_FORTIFY_SOURCE', | 262 '-U_FORTIFY_SOURCE', |
260 '-D_FORTIFY_SOURCE=1', | 263 '-D_FORTIFY_SOURCE=1', |
261 ], | 264 ], |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
312 'SK_SUPPORT_LEGACY_PICTURE_CAN_RECORD', | 315 'SK_SUPPORT_LEGACY_PICTURE_CAN_RECORD', |
313 'SK_SUPPORT_DEPRECATED_RECORD_FLAGS', | 316 'SK_SUPPORT_DEPRECATED_RECORD_FLAGS', |
314 'SK_SUPPORT_LEGACY_DERIVED_PICTURE_CLASSES', | 317 'SK_SUPPORT_LEGACY_DERIVED_PICTURE_CLASSES', |
315 'SK_SUPPORT_LEGACY_PICTURE_HEADERS', | 318 'SK_SUPPORT_LEGACY_PICTURE_HEADERS', |
316 'SK_SUPPORT_LEGACY_BLURMASKFILTER_STYLE', | 319 'SK_SUPPORT_LEGACY_BLURMASKFILTER_STYLE', |
317 # Needed until we fix skbug.com/2440. | 320 # Needed until we fix skbug.com/2440. |
318 'SK_SUPPORT_LEGACY_CLIPTOLAYERFLAG', | 321 'SK_SUPPORT_LEGACY_CLIPTOLAYERFLAG', |
319 # Transitional, for deprecated SkCanvas::SaveFlags methods. | 322 # Transitional, for deprecated SkCanvas::SaveFlags methods. |
320 'SK_ATTR_DEPRECATED=SK_NOTHING_ARG1', | 323 'SK_ATTR_DEPRECATED=SK_NOTHING_ARG1', |
321 'SK_SUPPORT_LEGACY_SHADER_LOCALMATRIX', | 324 'SK_SUPPORT_LEGACY_SHADER_LOCALMATRIX', |
322 'SK_DEFAULT_GLOBAL_DISCARDABLE_MEMORY_POOL_SIZE (512 * 1024)', | 325 'SK_DEFAULT_GLOBAL_DISCARDABLE_MEMORY_POOL_SIZE (512 * 1024)', |
scroggo
2014/05/30 17:35:12
For simplicity, I've left all of the existing flag
reed1
2014/05/30 17:39:40
if the chrome idea is sound (who knows), then the
scroggo
2014/05/30 21:03:42
Done. I left the picture ones, so as not to step o
| |
326 # Defines from skia_for_android_framework_defines.gypi | |
327 '<@(skia_for_android_framework_defines)', | |
323 ], | 328 ], |
324 }], | 329 }], |
325 | 330 |
326 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "nacl", "chromeos"] ', | 331 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "nacl", "chromeos"] ', |
327 { | 332 { |
328 'defines': [ | 333 'defines': [ |
329 'SK_SAMPLES_FOR_X', | 334 'SK_SAMPLES_FOR_X', |
330 'SK_BUILD_FOR_UNIX', | 335 'SK_BUILD_FOR_UNIX', |
331 ], | 336 ], |
332 'configurations': { | 337 'configurations': { |
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
655 'SK_BUILD_JSON_WRITER', | 660 'SK_BUILD_JSON_WRITER', |
656 ] | 661 ] |
657 }], | 662 }], |
658 | 663 |
659 ], # end 'conditions' | 664 ], # end 'conditions' |
660 # The Xcode SYMROOT must be at the root. See build/common.gypi in chromium for more details | 665 # The Xcode SYMROOT must be at the root. See build/common.gypi in chromium for more details |
661 'xcode_settings': { | 666 'xcode_settings': { |
662 'SYMROOT': '<(DEPTH)/xcodebuild', | 667 'SYMROOT': '<(DEPTH)/xcodebuild', |
663 }, | 668 }, |
664 } | 669 } |
OLD | NEW |