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 'SK_PICTURE_USE_SK_RECORD', | 9 'SK_PICTURE_USE_SK_RECORD', |
10 ], | 10 ], |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 | 195 |
196 '-Wall', | 196 '-Wall', |
197 '-Wextra', | 197 '-Wextra', |
198 '-Winit-self', | 198 '-Winit-self', |
199 '-Wpointer-arith', | 199 '-Wpointer-arith', |
200 | 200 |
201 '-Wno-c++11-extensions', | 201 '-Wno-c++11-extensions', |
202 '-Wno-unused-parameter', | 202 '-Wno-unused-parameter', |
203 ], | 203 ], |
204 'cflags_cc': [ | 204 'cflags_cc': [ |
| 205 '-std=c++11', |
205 '-fno-rtti', | 206 '-fno-rtti', |
206 '-Wnon-virtual-dtor', | 207 '-Wnon-virtual-dtor', |
207 '-Wno-invalid-offsetof', # GCC <4.6 is old-school strict about what i
s POD. | 208 '-Wno-invalid-offsetof', # GCC <4.6 is old-school strict about what i
s POD. |
208 ], | 209 ], |
209 'conditions': [ | 210 'conditions': [ |
210 [ 'skia_os != "chromeos"', { | 211 [ 'skia_os != "chromeos"', { |
211 'conditions': [ | 212 'conditions': [ |
212 [ 'skia_arch_width == 64 and skia_arch_type == "x86"', { | 213 [ 'skia_arch_width == 64 and skia_arch_type == "x86"', { |
213 'cflags': [ | 214 'cflags': [ |
214 '-m64', | 215 '-m64', |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
446 [ 'skia_sanitizer == "thread"', { | 447 [ 'skia_sanitizer == "thread"', { |
447 'defines': [ 'SK_DYNAMIC_ANNOTATIONS_ENABLED=1' ], | 448 'defines': [ 'SK_DYNAMIC_ANNOTATIONS_ENABLED=1' ], |
448 }], | 449 }], |
449 [ 'skia_sanitizer == "undefined"', { | 450 [ 'skia_sanitizer == "undefined"', { |
450 'cflags_cc!': ['-fno-rtti'], | 451 'cflags_cc!': ['-fno-rtti'], |
451 }], | 452 }], |
452 ], | 453 ], |
453 }], | 454 }], |
454 [ 'skia_clang_build', { | 455 [ 'skia_clang_build', { |
455 'cflags_cc': [ | 456 'cflags_cc': [ |
456 # Build in C++11 mode to make sure we'll have an easy time switc
hing. | |
457 '-std=c++11', | |
458 '-Wno-unknown-warning-option', # Allows unknown warnings. | 457 '-Wno-unknown-warning-option', # Allows unknown warnings. |
459 '-Wno-deprecated', # From Qt, via debugger (older C
lang). | 458 '-Wno-deprecated', # From Qt, via debugger (older C
lang). |
460 '-Wno-deprecated-register', # From Qt, via debugger (newer C
lang). | 459 '-Wno-deprecated-register', # From Qt, via debugger (newer C
lang). |
461 ], | 460 ], |
462 'cflags': [ | 461 'cflags': [ |
463 # Extra warnings we like but that only Clang knows about. | 462 # Extra warnings we like but that only Clang knows about. |
464 '-Wstring-conversion', | 463 '-Wstring-conversion', |
465 ], | 464 ], |
466 'cflags!': [ | 465 'cflags!': [ |
467 '-mfpmath=sse', # Clang doesn't need to be told this, and somet
imes gets confused. | 466 '-mfpmath=sse', # Clang doesn't need to be told this, and somet
imes gets confused. |
(...skipping 29 matching lines...) Expand all Loading... |
497 'conditions': [ | 496 'conditions': [ |
498 [ 'skia_warnings_as_errors', { 'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES'
}], | 497 [ 'skia_warnings_as_errors', { 'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES'
}], |
499 [ 'skia_arch_width == 32', { 'ARCHS': ['i386'] }], | 498 [ 'skia_arch_width == 32', { 'ARCHS': ['i386'] }], |
500 [ 'skia_arch_width == 64', { 'ARCHS': ['x86_64'] }], | 499 [ 'skia_arch_width == 64', { 'ARCHS': ['x86_64'] }], |
501 [ 'skia_osx_deployment_target==""', { | 500 [ 'skia_osx_deployment_target==""', { |
502 'MACOSX_DEPLOYMENT_TARGET': '10.6', # -mmacos-version-min, passed
in env to ld. | 501 'MACOSX_DEPLOYMENT_TARGET': '10.6', # -mmacos-version-min, passed
in env to ld. |
503 }, { | 502 }, { |
504 'MACOSX_DEPLOYMENT_TARGET': '<(skia_osx_deployment_target)', | 503 'MACOSX_DEPLOYMENT_TARGET': '<(skia_osx_deployment_target)', |
505 }], | 504 }], |
506 ], | 505 ], |
507 'GCC_ENABLE_SUPPLEMENTAL_SSE3_INSTRUCTIONS': 'YES', # -mssse3 | 506 'CLANG_CXX_LANGUAGE_STANDARD': 'c++0x', # -std=c++11 |
508 'GCC_SYMBOLS_PRIVATE_EXTERN': 'NO', # -fvisibility=hi
dden | 507 'GCC_ENABLE_SUPPLEMENTAL_SSE3_INSTRUCTIONS': 'YES', # -mssse3 |
509 'GCC_INLINES_ARE_PRIVATE_EXTERN': 'NO', # -fvisibility-in
lines-hidden | 508 'GCC_SYMBOLS_PRIVATE_EXTERN': 'NO', # -fvisibility=h
idden |
| 509 'GCC_INLINES_ARE_PRIVATE_EXTERN': 'NO', # -fvisibility-i
nlines-hidden |
510 'WARNING_CFLAGS': [ | 510 'WARNING_CFLAGS': [ |
511 '-Wall', | 511 '-Wall', |
512 '-Wextra', | 512 '-Wextra', |
513 '-Wno-unused-parameter', | 513 '-Wno-unused-parameter', |
514 '-Wno-uninitialized', # Disabled because we think GCC 4.2 is bad at
this. | 514 '-Wno-uninitialized', # Disabled because we think GCC 4.2 is bad at
this. |
515 ], | 515 ], |
516 }, | 516 }, |
517 }, | 517 }, |
518 ], | 518 ], |
519 | 519 |
(...skipping 19 matching lines...) Expand all Loading... |
539 }, | 539 }, |
540 'Release': { | 540 'Release': { |
541 'xcode_settings': { | 541 'xcode_settings': { |
542 'GCC_OPTIMIZATION_LEVEL': '<(skia_release_optimization_level)', | 542 'GCC_OPTIMIZATION_LEVEL': '<(skia_release_optimization_level)', |
543 }, | 543 }, |
544 'defines': [ 'NDEBUG' ], | 544 'defines': [ 'NDEBUG' ], |
545 }, | 545 }, |
546 }, | 546 }, |
547 'xcode_settings': { | 547 'xcode_settings': { |
548 'ARCHS': ['armv7'], | 548 'ARCHS': ['armv7'], |
| 549 'CLANG_CXX_LANGUAGE_STANDARD': 'c++0x', # -std=c++11 |
549 'CODE_SIGNING_REQUIRED': 'NO', | 550 'CODE_SIGNING_REQUIRED': 'NO', |
550 'CODE_SIGN_IDENTITY[sdk=iphoneos*]': '', | 551 'CODE_SIGN_IDENTITY[sdk=iphoneos*]': '', |
551 'IPHONEOS_DEPLOYMENT_TARGET': '<(ios_sdk_version)', | 552 'IPHONEOS_DEPLOYMENT_TARGET': '<(ios_sdk_version)', |
552 'SDKROOT': 'iphoneos', | 553 'SDKROOT': 'iphoneos', |
553 'TARGETED_DEVICE_FAMILY': '1,2', | 554 'TARGETED_DEVICE_FAMILY': '1,2', |
554 'OTHER_CPLUSPLUSFLAGS': [ | 555 'OTHER_CPLUSPLUSFLAGS': [ |
555 '-fvisibility=hidden', | 556 '-fvisibility=hidden', |
556 '-fvisibility-inlines-hidden', | 557 '-fvisibility-inlines-hidden', |
557 ], | 558 ], |
558 'GCC_THUMB_SUPPORT': 'NO', | 559 'GCC_THUMB_SUPPORT': 'NO', |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
630 [ 'skia_is_bot', { | 631 [ 'skia_is_bot', { |
631 'defines': [ 'SK_CRASH_HANDLER' ], | 632 'defines': [ 'SK_CRASH_HANDLER' ], |
632 }], | 633 }], |
633 | 634 |
634 ], # end 'conditions' | 635 ], # end 'conditions' |
635 # The Xcode SYMROOT must be at the root. See build/common.gypi in chromium for
more details | 636 # The Xcode SYMROOT must be at the root. See build/common.gypi in chromium for
more details |
636 'xcode_settings': { | 637 'xcode_settings': { |
637 'SYMROOT': '<(DEPTH)/xcodebuild', | 638 'SYMROOT': '<(DEPTH)/xcodebuild', |
638 }, | 639 }, |
639 } | 640 } |
OLD | NEW |