| 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 5053 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5064 'CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS': 'YES', | 5064 'CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS': 'YES', |
| 5065 'COPY_PHASE_STRIP': 'NO', | 5065 'COPY_PHASE_STRIP': 'NO', |
| 5066 'GCC_C_LANGUAGE_STANDARD': 'c99', # -std=c99 | 5066 'GCC_C_LANGUAGE_STANDARD': 'c99', # -std=c99 |
| 5067 'GCC_CW_ASM_SYNTAX': 'NO', # No -fasm-blocks | 5067 'GCC_CW_ASM_SYNTAX': 'NO', # No -fasm-blocks |
| 5068 'GCC_ENABLE_CPP_EXCEPTIONS': 'NO', # -fno-exceptions | 5068 'GCC_ENABLE_CPP_EXCEPTIONS': 'NO', # -fno-exceptions |
| 5069 'GCC_ENABLE_CPP_RTTI': 'NO', # -fno-rtti | 5069 'GCC_ENABLE_CPP_RTTI': 'NO', # -fno-rtti |
| 5070 'GCC_ENABLE_PASCAL_STRINGS': 'NO', # No -mpascal-strings | 5070 'GCC_ENABLE_PASCAL_STRINGS': 'NO', # No -mpascal-strings |
| 5071 # GCC_INLINES_ARE_PRIVATE_EXTERN maps to -fvisibility-inlines-hidden | 5071 # GCC_INLINES_ARE_PRIVATE_EXTERN maps to -fvisibility-inlines-hidden |
| 5072 'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES', | 5072 'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES', |
| 5073 'GCC_OBJC_CALL_CXX_CDTORS': 'YES', # -fobjc-call-cxx-cdtors | 5073 'GCC_OBJC_CALL_CXX_CDTORS': 'YES', # -fobjc-call-cxx-cdtors |
| 5074 'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden |
| 5074 'GCC_THREADSAFE_STATICS': 'NO', # -fno-threadsafe-statics | 5075 'GCC_THREADSAFE_STATICS': 'NO', # -fno-threadsafe-statics |
| 5075 'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES', # -Werror | 5076 'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES', # -Werror |
| 5076 'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0', | 5077 'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0', |
| 5077 'USE_HEADERMAP': 'NO', | 5078 'USE_HEADERMAP': 'NO', |
| 5078 'WARNING_CFLAGS': [ | 5079 'WARNING_CFLAGS': [ |
| 5079 '-Wall', | 5080 '-Wall', |
| 5080 '-Wextra', | 5081 '-Wextra', |
| 5081 # Don't warn about unused function parameters. | 5082 # Don't warn about unused function parameters. |
| 5082 '-Wno-unused-parameter', | 5083 '-Wno-unused-parameter', |
| 5083 # Don't warn about the "struct foo f = {0};" initialization | 5084 # Don't warn about the "struct foo f = {0};" initialization |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5152 ['_toolset=="target"', { | 5153 ['_toolset=="target"', { |
| 5153 'cflags': [ | 5154 'cflags': [ |
| 5154 '-fsanitize-coverage=<(sanitizer_coverage)', | 5155 '-fsanitize-coverage=<(sanitizer_coverage)', |
| 5155 ], | 5156 ], |
| 5156 'defines': [ | 5157 'defines': [ |
| 5157 'SANITIZER_COVERAGE', | 5158 'SANITIZER_COVERAGE', |
| 5158 ], | 5159 ], |
| 5159 }], | 5160 }], |
| 5160 ], | 5161 ], |
| 5161 }], | 5162 }], |
| 5162 ['OS=="mac"', { | |
| 5163 'xcode_settings': { | |
| 5164 'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden | |
| 5165 }, | |
| 5166 }], | |
| 5167 ['OS=="ios"', { | |
| 5168 'configurations': { | |
| 5169 'Debug': { | |
| 5170 'xcode_settings': { | |
| 5171 # XCTests inject a dynamic library into the application. If | |
| 5172 # fvisibility is set to hidden, then some symbols needed by | |
| 5173 # XCTests are not available. Disable this setting for | |
| 5174 # Debug configuration. | |
| 5175 'GCC_SYMBOLS_PRIVATE_EXTERN': 'NO', | |
| 5176 }, | |
| 5177 }, | |
| 5178 'Release': { | |
| 5179 'xcode_settings': { | |
| 5180 'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden | |
| 5181 }, | |
| 5182 }, | |
| 5183 }, | |
| 5184 }], | |
| 5185 ], | 5163 ], |
| 5186 'target_conditions': [ | 5164 'target_conditions': [ |
| 5187 ['_type!="static_library"', { | 5165 ['_type!="static_library"', { |
| 5188 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, | 5166 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, |
| 5189 'conditions': [ | 5167 'conditions': [ |
| 5190 ['asan==1', { | 5168 ['asan==1', { |
| 5191 'xcode_settings': { | 5169 'xcode_settings': { |
| 5192 'OTHER_LDFLAGS': [ | 5170 'OTHER_LDFLAGS': [ |
| 5193 '-fsanitize=address', | 5171 '-fsanitize=address', |
| 5194 ], | 5172 ], |
| (...skipping 1207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6402 # settings in target dicts. SYMROOT is a special case, because many other | 6380 # settings in target dicts. SYMROOT is a special case, because many other |
| 6403 # Xcode variables depend on it, including variables such as | 6381 # Xcode variables depend on it, including variables such as |
| 6404 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 6382 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
| 6405 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 6383 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
| 6406 # files to appear (when present) in the UI as actual files and not red | 6384 # files to appear (when present) in the UI as actual files and not red |
| 6407 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 6385 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
| 6408 # and therefore SYMROOT, needs to be set at the project level. | 6386 # and therefore SYMROOT, needs to be set at the project level. |
| 6409 'SYMROOT': '<(DEPTH)/xcodebuild', | 6387 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 6410 }, | 6388 }, |
| 6411 } | 6389 } |
| OLD | NEW |