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

Side by Side Diff: gyp/common_conditions.gypi

Issue 486233003: Trim down OSX GYP rules. Same effect, shorter. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 4 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 | no next file » | 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 ], 9 ],
10 'conditions' : [ 10 'conditions' : [
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after
472 }], 472 }],
473 [ 'skia_keep_frame_pointer', { 473 [ 'skia_keep_frame_pointer', {
474 'cflags': [ '-fno-omit-frame-pointer' ], 474 'cflags': [ '-fno-omit-frame-pointer' ],
475 }], 475 }],
476 ], 476 ],
477 }, 477 },
478 ], 478 ],
479 479
480 [ 'skia_os == "mac"', 480 [ 'skia_os == "mac"',
481 { 481 {
482 'defines': [ 482 'defines': [ 'SK_BUILD_FOR_MAC' ],
483 'SK_BUILD_FOR_MAC',
484 ],
485 'conditions' : [
486 [ 'skia_arch_width == 64', {
487 'xcode_settings': {
488 'ARCHS': ['x86_64'],
489 },
490 }],
491 [ 'skia_arch_width == 32', {
492 'xcode_settings': {
493 'ARCHS': ['i386'],
494 },
495 }],
496 [ 'skia_warnings_as_errors', {
497 'xcode_settings': {
498 'OTHER_CPLUSPLUSFLAGS': [
499 '-Werror',
500 '-Wall',
501 '-Wextra',
502 '-Wno-unused-parameter',
503 '-Wno-uninitialized', # Disabled because we think GCC 4.2 is ba d at this.
504 ],
505 },
506 }],
507 ],
508 'configurations': { 483 'configurations': {
509 'Coverage': { 484 'Coverage': {
510 'xcode_settings': { 485 'xcode_settings': {
511 'GCC_OPTIMIZATION_LEVEL': '0', 486 'GCC_OPTIMIZATION_LEVEL': '0',
512 'GCC_GENERATE_TEST_COVERAGE_FILES': 'YES', 487 'GCC_GENERATE_TEST_COVERAGE_FILES': 'YES',
513 'GCC_INSTRUMENT_PROGRAM_FLOW_ARCS' : 'YES', 488 'GCC_INSTRUMENT_PROGRAM_FLOW_ARCS' : 'YES',
514 }, 489 },
515 }, 490 },
516 'Debug': { 491 'Debug': {
517 'xcode_settings': { 492 'xcode_settings': { 'GCC_OPTIMIZATION_LEVEL': '0' },
518 'GCC_OPTIMIZATION_LEVEL': '0',
519 },
520 }, 493 },
521 'Release': { 494 'Release': {
522 'xcode_settings': { 495 'xcode_settings': { 'GCC_OPTIMIZATION_LEVEL': '<(skia_release_optimi zation_level)', },
523 'GCC_OPTIMIZATION_LEVEL': '<(skia_release_optimization_level)',
524 },
525 'defines': [ 'NDEBUG' ], 496 'defines': [ 'NDEBUG' ],
526 }, 497 },
527 }, 498 },
528 'xcode_settings': { 499 'xcode_settings': {
529 'GCC_SYMBOLS_PRIVATE_EXTERN': 'NO',
530 'conditions': [ 500 'conditions': [
501 [ 'skia_warnings_as_errors', { 'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES' }],
502 [ 'skia_arch_width == 32', { 'ARCHS': ['i386'] }],
503 [ 'skia_arch_width == 64', { 'ARCHS': ['x86_64'] }],
531 [ 'skia_osx_deployment_target==""', { 504 [ 'skia_osx_deployment_target==""', {
532 'MACOSX_DEPLOYMENT_TARGET': '10.6', # -mmacos-version-min, passed in environment to ld. 505 'MACOSX_DEPLOYMENT_TARGET': '10.6', # -mmacos-version-min, passed in env to ld.
533 }, { 506 }, {
534 'MACOSX_DEPLOYMENT_TARGET': '<(skia_osx_deployment_target)', 507 'MACOSX_DEPLOYMENT_TARGET': '<(skia_osx_deployment_target)',
535 }], 508 }],
536 ], 509 ],
537 # trying to get this to work, but it needs clang I think... 510 'GCC_ENABLE_SUPPLEMENTAL_SSE3_INSTRUCTIONS': 'YES', # -mssse3
538 # 'WARNING_CFLAGS': '-Wexit-time-destructors', 511 'GCC_SYMBOLS_PRIVATE_EXTERN': 'NO', # -fvisibility=hi dden
539 'CLANG_WARN_CXX0X_EXTENSIONS': 'NO', 512 'GCC_INLINES_ARE_PRIVATE_EXTERN': 'NO', # -fvisibility-in lines-hidden
540 'GCC_WARN_64_TO_32_BIT_CONVERSION': 'YES', 513 'WARNING_CFLAGS': [
541 'GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS': 'YES', 514 '-Wall',
542 'GCC_WARN_ABOUT_INVALID_OFFSETOF_MACRO': 'YES', 515 '-Wextra',
543 'GCC_WARN_ABOUT_MISSING_NEWLINE': 'YES', 516 '-Wno-unused-parameter',
544 'GCC_WARN_ABOUT_MISSING_PROTOTYPES': 'YES', 517 '-Wno-uninitialized', # Disabled because we think GCC 4.2 is bad at this.
545 'GCC_WARN_ABOUT_POINTER_SIGNEDNESS': 'YES',
546 'GCC_WARN_ABOUT_RETURN_TYPE': 'YES',
547 'GCC_WARN_ALLOW_INCOMPLETE_PROTOCOL': 'YES',
548 'GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED': 'YES',
549 'GCC_WARN_MISSING_PARENTHESES': 'YES',
550 'GCC_WARN_PROTOTYPE_CONVERSION': 'YES',
551 'GCC_WARN_SIGN_COMPARE': 'YES',
552 'GCC_WARN_TYPECHECK_CALLS_TO_PRINTF': 'YES',
553 'GCC_WARN_UNKNOWN_PRAGMAS': 'YES',
554 'GCC_WARN_UNUSED_FUNCTION': 'YES',
555 'GCC_WARN_UNUSED_LABEL': 'YES',
556 'GCC_WARN_UNUSED_VALUE': 'YES',
557 'GCC_WARN_UNUSED_VARIABLE': 'YES',
558 'OTHER_CPLUSPLUSFLAGS': [
559 '-mssse3',
560 '-fvisibility=hidden',
561 '-fvisibility-inlines-hidden',
562 ], 518 ],
563 }, 519 },
564 }, 520 },
565 ], 521 ],
566 522
567 [ 'skia_os == "ios"', 523 [ 'skia_os == "ios"',
568 { 524 {
569 'defines': [ 525 'defines': [
570 'SK_BUILD_FOR_IOS', 526 'SK_BUILD_FOR_IOS',
571 ], 527 ],
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
678 [ 'skia_is_bot', { 634 [ 'skia_is_bot', {
679 'defines': [ 'SK_CRASH_HANDLER' ], 635 'defines': [ 'SK_CRASH_HANDLER' ],
680 }], 636 }],
681 637
682 ], # end 'conditions' 638 ], # end 'conditions'
683 # The Xcode SYMROOT must be at the root. See build/common.gypi in chromium for more details 639 # The Xcode SYMROOT must be at the root. See build/common.gypi in chromium for more details
684 'xcode_settings': { 640 'xcode_settings': {
685 'SYMROOT': '<(DEPTH)/xcodebuild', 641 'SYMROOT': '<(DEPTH)/xcodebuild',
686 }, 642 },
687 } 643 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698