OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 # IMPORTANT: | 5 # IMPORTANT: |
6 # Please don't directly include this file if you are building via gyp_chromium, | 6 # Please don't directly include this file if you are building via gyp_chromium, |
7 # since gyp_chromium is automatically forcing its inclusion. | 7 # since gyp_chromium is automatically forcing its inclusion. |
8 { | 8 { |
9 # Variables expected to be overriden on the GYP command line (-D) or by | 9 # Variables expected to be overriden on the GYP command line (-D) or by |
10 # ~/.gyp/include.gypi. | 10 # ~/.gyp/include.gypi. |
(...skipping 3557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3568 # stripping as well. | 3568 # stripping as well. |
3569 'xcode_settings': { | 3569 'xcode_settings': { |
3570 'DEBUG_INFORMATION_FORMAT': 'dwarf-with-dsym', | 3570 'DEBUG_INFORMATION_FORMAT': 'dwarf-with-dsym', |
3571 'DEPLOYMENT_POSTPROCESSING': 'YES', | 3571 'DEPLOYMENT_POSTPROCESSING': 'YES', |
3572 'STRIP_INSTALLED_PRODUCT': 'YES', | 3572 'STRIP_INSTALLED_PRODUCT': 'YES', |
3573 }, | 3573 }, |
3574 }], | 3574 }], |
3575 ], | 3575 ], |
3576 }, | 3576 }, |
3577 }], | 3577 }], |
| 3578 [ 'OS=="ios"', { |
| 3579 'Archive': { |
| 3580 'inherit_from': ['Common_Base', 'x86_Base', 'Release_Base'], |
| 3581 'xcode_settings': { |
| 3582 'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden |
| 3583 'STRIP_INSTALLED_PRODUCT': 'YES', |
| 3584 }, |
| 3585 }, |
| 3586 }], |
3578 [ 'OS=="win"', { | 3587 [ 'OS=="win"', { |
3579 # TODO(bradnelson): add a gyp mechanism to make this more graceful. | 3588 # TODO(bradnelson): add a gyp mechanism to make this more graceful. |
3580 'Debug_x64': { | 3589 'Debug_x64': { |
3581 'inherit_from': ['Common_Base', 'x64_Base', 'Debug_Base'], | 3590 'inherit_from': ['Common_Base', 'x64_Base', 'Debug_Base'], |
3582 }, | 3591 }, |
3583 'Release_x64': { | 3592 'Release_x64': { |
3584 'inherit_from': ['Common_Base', 'x64_Base', 'Release_Base'], | 3593 'inherit_from': ['Common_Base', 'x64_Base', 'Release_Base'], |
3585 }, | 3594 }, |
3586 }], | 3595 }], |
3587 ], | 3596 ], |
(...skipping 1437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5025 'CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS': 'YES', | 5034 'CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS': 'YES', |
5026 'COPY_PHASE_STRIP': 'NO', | 5035 'COPY_PHASE_STRIP': 'NO', |
5027 'GCC_C_LANGUAGE_STANDARD': 'c99', # -std=c99 | 5036 'GCC_C_LANGUAGE_STANDARD': 'c99', # -std=c99 |
5028 'GCC_CW_ASM_SYNTAX': 'NO', # No -fasm-blocks | 5037 'GCC_CW_ASM_SYNTAX': 'NO', # No -fasm-blocks |
5029 'GCC_ENABLE_CPP_EXCEPTIONS': 'NO', # -fno-exceptions | 5038 'GCC_ENABLE_CPP_EXCEPTIONS': 'NO', # -fno-exceptions |
5030 'GCC_ENABLE_CPP_RTTI': 'NO', # -fno-rtti | 5039 'GCC_ENABLE_CPP_RTTI': 'NO', # -fno-rtti |
5031 'GCC_ENABLE_PASCAL_STRINGS': 'NO', # No -mpascal-strings | 5040 'GCC_ENABLE_PASCAL_STRINGS': 'NO', # No -mpascal-strings |
5032 # GCC_INLINES_ARE_PRIVATE_EXTERN maps to -fvisibility-inlines-hidden | 5041 # GCC_INLINES_ARE_PRIVATE_EXTERN maps to -fvisibility-inlines-hidden |
5033 'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES', | 5042 'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES', |
5034 'GCC_OBJC_CALL_CXX_CDTORS': 'YES', # -fobjc-call-cxx-cdtors | 5043 'GCC_OBJC_CALL_CXX_CDTORS': 'YES', # -fobjc-call-cxx-cdtors |
5035 'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden | |
5036 'GCC_THREADSAFE_STATICS': 'NO', # -fno-threadsafe-statics | 5044 'GCC_THREADSAFE_STATICS': 'NO', # -fno-threadsafe-statics |
5037 'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES', # -Werror | 5045 'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES', # -Werror |
5038 'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0', | 5046 'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0', |
5039 'USE_HEADERMAP': 'NO', | 5047 'USE_HEADERMAP': 'NO', |
5040 'WARNING_CFLAGS': [ | 5048 'WARNING_CFLAGS': [ |
5041 '-Wall', | 5049 '-Wall', |
5042 '-Wextra', | 5050 '-Wextra', |
5043 # Don't warn about unused function parameters. | 5051 # Don't warn about unused function parameters. |
5044 '-Wno-unused-parameter', | 5052 '-Wno-unused-parameter', |
5045 # Don't warn about the "struct foo f = {0};" initialization | 5053 # Don't warn about the "struct foo f = {0};" initialization |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5114 ['_toolset=="target"', { | 5122 ['_toolset=="target"', { |
5115 'cflags': [ | 5123 'cflags': [ |
5116 '-fsanitize-coverage=<(sanitizer_coverage)', | 5124 '-fsanitize-coverage=<(sanitizer_coverage)', |
5117 ], | 5125 ], |
5118 'defines': [ | 5126 'defines': [ |
5119 'SANITIZER_COVERAGE', | 5127 'SANITIZER_COVERAGE', |
5120 ], | 5128 ], |
5121 }], | 5129 }], |
5122 ], | 5130 ], |
5123 }], | 5131 }], |
| 5132 ['OS=="mac"', { |
| 5133 'xcode_settings': { |
| 5134 'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden |
| 5135 }, |
| 5136 }], |
| 5137 ['OS=="ios"', { |
| 5138 'xcode_settings': { |
| 5139 # XCTests inject a dynamic library into the application. If |
| 5140 # fvisibility is set to hidden, then some symbols needed by |
| 5141 # XCTests are not available. This setting is enabled for the |
| 5142 # Archive configuration. |
| 5143 'GCC_SYMBOLS_PRIVATE_EXTERN': 'NO', |
| 5144 }, |
| 5145 }], |
5124 ], | 5146 ], |
5125 'target_conditions': [ | 5147 'target_conditions': [ |
5126 ['_type!="static_library"', { | 5148 ['_type!="static_library"', { |
5127 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, | 5149 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, |
5128 'conditions': [ | 5150 'conditions': [ |
5129 ['asan==1', { | 5151 ['asan==1', { |
5130 'xcode_settings': { | 5152 'xcode_settings': { |
5131 'OTHER_LDFLAGS': [ | 5153 'OTHER_LDFLAGS': [ |
5132 '-fsanitize=address', | 5154 '-fsanitize=address', |
5133 ], | 5155 ], |
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5418 # instead set it here for target only. | 5440 # instead set it here for target only. |
5419 'IPHONEOS_DEPLOYMENT_TARGET': '<(ios_deployment_target)', | 5441 'IPHONEOS_DEPLOYMENT_TARGET': '<(ios_deployment_target)', |
5420 'ARCHS': ['$(ARCHS_STANDARD_INCLUDING_64_BIT)'], | 5442 'ARCHS': ['$(ARCHS_STANDARD_INCLUDING_64_BIT)'], |
5421 }, | 5443 }, |
5422 }], | 5444 }], |
5423 ['_type=="executable"', { | 5445 ['_type=="executable"', { |
5424 'configurations': { | 5446 'configurations': { |
5425 'Release_Base': { | 5447 'Release_Base': { |
5426 'xcode_settings': { | 5448 'xcode_settings': { |
5427 'DEPLOYMENT_POSTPROCESSING': 'YES', | 5449 'DEPLOYMENT_POSTPROCESSING': 'YES', |
5428 'STRIP_INSTALLED_PRODUCT': 'YES', | 5450 'STRIP_INSTALLED_PRODUCT': 'NO', |
5429 'conditions': [ | 5451 'conditions': [ |
5430 ['buildtype=="Official"', { | 5452 ['buildtype=="Official"', { |
5431 'DEBUG_INFORMATION_FORMAT': 'dwarf-with-dsym', | 5453 'DEBUG_INFORMATION_FORMAT': 'dwarf-with-dsym', |
5432 }, { | 5454 }, { |
5433 # Remove dSYM to reduce build time. | 5455 # Remove dSYM to reduce build time. |
5434 'DEBUG_INFORMATION_FORMAT': 'dwarf', | 5456 'DEBUG_INFORMATION_FORMAT': 'dwarf', |
5435 }], | 5457 }], |
5436 ], | 5458 ], |
5437 }, | 5459 }, |
5438 }, | 5460 }, |
(...skipping 878 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6317 # settings in target dicts. SYMROOT is a special case, because many other | 6339 # settings in target dicts. SYMROOT is a special case, because many other |
6318 # Xcode variables depend on it, including variables such as | 6340 # Xcode variables depend on it, including variables such as |
6319 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 6341 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
6320 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 6342 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
6321 # files to appear (when present) in the UI as actual files and not red | 6343 # files to appear (when present) in the UI as actual files and not red |
6322 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 6344 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
6323 # and therefore SYMROOT, needs to be set at the project level. | 6345 # and therefore SYMROOT, needs to be set at the project level. |
6324 'SYMROOT': '<(DEPTH)/xcodebuild', | 6346 'SYMROOT': '<(DEPTH)/xcodebuild', |
6325 }, | 6347 }, |
6326 } | 6348 } |
OLD | NEW |