Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(48)

Side by Side Diff: gyp/common_conditions.gypi

Issue 565213008: Revert of Add a test that uses C++11 features as a compiler canary. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | gyp/tests.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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',
206 '-fno-rtti', 205 '-fno-rtti',
207 '-Wnon-virtual-dtor', 206 '-Wnon-virtual-dtor',
208 '-Wno-invalid-offsetof', # GCC <4.6 is old-school strict about what i s POD. 207 '-Wno-invalid-offsetof', # GCC <4.6 is old-school strict about what i s POD.
209 ], 208 ],
210 'conditions': [ 209 'conditions': [
211 [ 'skia_os != "chromeos"', { 210 [ 'skia_os != "chromeos"', {
212 'conditions': [ 211 'conditions': [
213 [ 'skia_arch_width == 64 and skia_arch_type == "x86"', { 212 [ 'skia_arch_width == 64 and skia_arch_type == "x86"', {
214 'cflags': [ 213 'cflags': [
215 '-m64', 214 '-m64',
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 [ 'skia_sanitizer == "thread"', { 446 [ 'skia_sanitizer == "thread"', {
448 'defines': [ 'SK_DYNAMIC_ANNOTATIONS_ENABLED=1' ], 447 'defines': [ 'SK_DYNAMIC_ANNOTATIONS_ENABLED=1' ],
449 }], 448 }],
450 [ 'skia_sanitizer == "undefined"', { 449 [ 'skia_sanitizer == "undefined"', {
451 'cflags_cc!': ['-fno-rtti'], 450 'cflags_cc!': ['-fno-rtti'],
452 }], 451 }],
453 ], 452 ],
454 }], 453 }],
455 [ 'skia_clang_build', { 454 [ 'skia_clang_build', {
456 'cflags_cc': [ 455 'cflags_cc': [
456 # Build in C++11 mode to make sure we'll have an easy time switc hing.
457 '-std=c++11',
457 '-Wno-unknown-warning-option', # Allows unknown warnings. 458 '-Wno-unknown-warning-option', # Allows unknown warnings.
458 '-Wno-deprecated', # From Qt, via debugger (older C lang). 459 '-Wno-deprecated', # From Qt, via debugger (older C lang).
459 '-Wno-deprecated-register', # From Qt, via debugger (newer C lang). 460 '-Wno-deprecated-register', # From Qt, via debugger (newer C lang).
460 ], 461 ],
461 'cflags': [ 462 'cflags': [
462 # Extra warnings we like but that only Clang knows about. 463 # Extra warnings we like but that only Clang knows about.
463 '-Wstring-conversion', 464 '-Wstring-conversion',
464 ], 465 ],
465 'cflags!': [ 466 'cflags!': [
466 '-mfpmath=sse', # Clang doesn't need to be told this, and somet imes gets confused. 467 '-mfpmath=sse', # Clang doesn't need to be told this, and somet imes gets confused.
(...skipping 29 matching lines...) Expand all
496 'conditions': [ 497 'conditions': [
497 [ 'skia_warnings_as_errors', { 'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES' }], 498 [ 'skia_warnings_as_errors', { 'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES' }],
498 [ 'skia_arch_width == 32', { 'ARCHS': ['i386'] }], 499 [ 'skia_arch_width == 32', { 'ARCHS': ['i386'] }],
499 [ 'skia_arch_width == 64', { 'ARCHS': ['x86_64'] }], 500 [ 'skia_arch_width == 64', { 'ARCHS': ['x86_64'] }],
500 [ 'skia_osx_deployment_target==""', { 501 [ 'skia_osx_deployment_target==""', {
501 'MACOSX_DEPLOYMENT_TARGET': '10.6', # -mmacos-version-min, passed in env to ld. 502 'MACOSX_DEPLOYMENT_TARGET': '10.6', # -mmacos-version-min, passed in env to ld.
502 }, { 503 }, {
503 'MACOSX_DEPLOYMENT_TARGET': '<(skia_osx_deployment_target)', 504 'MACOSX_DEPLOYMENT_TARGET': '<(skia_osx_deployment_target)',
504 }], 505 }],
505 ], 506 ],
506 'CLANG_CXX_LANGUAGE_STANDARD': 'c++0x', # -std=c++11 507 'GCC_ENABLE_SUPPLEMENTAL_SSE3_INSTRUCTIONS': 'YES', # -mssse3
507 'GCC_ENABLE_SUPPLEMENTAL_SSE3_INSTRUCTIONS': 'YES', # -mssse3 508 'GCC_SYMBOLS_PRIVATE_EXTERN': 'NO', # -fvisibility=hi dden
508 'GCC_SYMBOLS_PRIVATE_EXTERN': 'NO', # -fvisibility=h idden 509 'GCC_INLINES_ARE_PRIVATE_EXTERN': 'NO', # -fvisibility-in lines-hidden
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
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
550 'CODE_SIGNING_REQUIRED': 'NO', 549 'CODE_SIGNING_REQUIRED': 'NO',
551 'CODE_SIGN_IDENTITY[sdk=iphoneos*]': '', 550 'CODE_SIGN_IDENTITY[sdk=iphoneos*]': '',
552 'IPHONEOS_DEPLOYMENT_TARGET': '<(ios_sdk_version)', 551 'IPHONEOS_DEPLOYMENT_TARGET': '<(ios_sdk_version)',
553 'SDKROOT': 'iphoneos', 552 'SDKROOT': 'iphoneos',
554 'TARGETED_DEVICE_FAMILY': '1,2', 553 'TARGETED_DEVICE_FAMILY': '1,2',
555 'OTHER_CPLUSPLUSFLAGS': [ 554 'OTHER_CPLUSPLUSFLAGS': [
556 '-fvisibility=hidden', 555 '-fvisibility=hidden',
557 '-fvisibility-inlines-hidden', 556 '-fvisibility-inlines-hidden',
558 ], 557 ],
559 'GCC_THUMB_SUPPORT': 'NO', 558 'GCC_THUMB_SUPPORT': 'NO',
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
631 [ 'skia_is_bot', { 630 [ 'skia_is_bot', {
632 'defines': [ 'SK_CRASH_HANDLER' ], 631 'defines': [ 'SK_CRASH_HANDLER' ],
633 }], 632 }],
634 633
635 ], # end 'conditions' 634 ], # end 'conditions'
636 # The Xcode SYMROOT must be at the root. See build/common.gypi in chromium for more details 635 # The Xcode SYMROOT must be at the root. See build/common.gypi in chromium for more details
637 'xcode_settings': { 636 'xcode_settings': {
638 'SYMROOT': '<(DEPTH)/xcodebuild', 637 'SYMROOT': '<(DEPTH)/xcodebuild',
639 }, 638 },
640 } 639 }
OLDNEW
« no previous file with comments | « no previous file | gyp/tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698