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 2999 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3010 # Don't warn about unused function parameters. | 3010 # Don't warn about unused function parameters. |
3011 '-Wno-unused-parameter', | 3011 '-Wno-unused-parameter', |
3012 # Don't warn about the "struct foo f = {0};" initialization | 3012 # Don't warn about the "struct foo f = {0};" initialization |
3013 # pattern. | 3013 # pattern. |
3014 '-Wno-missing-field-initializers', | 3014 '-Wno-missing-field-initializers', |
3015 ], | 3015 ], |
3016 'conditions': [ | 3016 'conditions': [ |
3017 ['chromium_mac_pch', {'GCC_PRECOMPILE_PREFIX_HEADER': 'YES'}, | 3017 ['chromium_mac_pch', {'GCC_PRECOMPILE_PREFIX_HEADER': 'YES'}, |
3018 {'GCC_PRECOMPILE_PREFIX_HEADER': 'NO'} | 3018 {'GCC_PRECOMPILE_PREFIX_HEADER': 'NO'} |
3019 ], | 3019 ], |
3020 ], | 3020 # Note that the prebuilt Clang binaries should not be used for iOS |
3021 }, | 3021 # development except for ASan builds. |
3022 'target_conditions': [ | |
3023 ['_type!="static_library"', { | |
3024 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, | |
3025 }], | |
3026 ['_mac_bundle', { | |
3027 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']}, | |
3028 }], | |
3029 ], # target_conditions | |
3030 }, # target_defaults | |
3031 }], # OS=="mac" or OS=="ios" | |
3032 ['OS=="mac"', { | |
3033 'target_defaults': { | |
3034 'variables': { | |
3035 # These should end with %, but there seems to be a bug with % in | |
3036 # variables that are intended to be set to different values in | |
3037 # different targets, like these. | |
3038 'mac_pie': 1, # Most executables can be position-independent. | |
3039 'mac_real_dsym': 0, # Fake .dSYMs are fine in most cases. | |
3040 # Strip debugging symbols from the target. | |
3041 'mac_strip': '<(mac_strip_release)', | |
3042 }, | |
3043 'xcode_settings': { | |
3044 'GCC_DYNAMIC_NO_PIC': 'NO', # No -mdynamic-no-pic | |
3045 # (Equivalent to -fPIC) | |
3046 # MACOSX_DEPLOYMENT_TARGET maps to -mmacosx-version-min | |
3047 'MACOSX_DEPLOYMENT_TARGET': '<(mac_deployment_target)', | |
3048 # Keep pch files below xcodebuild/. | |
3049 'SHARED_PRECOMPS_DIR': '$(CONFIGURATION_BUILD_DIR)/SharedPrecompiledHe
aders', | |
3050 'OTHER_CFLAGS': [ | |
3051 '-fno-strict-aliasing', # See http://crbug.com/32204 | |
3052 ], | |
3053 'conditions': [ | |
3054 ['clang==1', { | 3022 ['clang==1', { |
3055 'CC': '$(SOURCE_ROOT)/<(clang_dir)/clang', | 3023 'CC': '$(SOURCE_ROOT)/<(clang_dir)/clang', |
3056 'LDPLUSPLUS': '$(SOURCE_ROOT)/<(clang_dir)/clang++', | 3024 'LDPLUSPLUS': '$(SOURCE_ROOT)/<(clang_dir)/clang++', |
3057 | 3025 |
3058 # Don't use -Wc++0x-extensions, which Xcode 4 enables by default | 3026 # Don't use -Wc++0x-extensions, which Xcode 4 enables by default |
3059 # when buliding with clang. This warning is triggered when the | 3027 # when buliding with clang. This warning is triggered when the |
3060 # override keyword is used via the OVERRIDE macro from | 3028 # override keyword is used via the OVERRIDE macro from |
3061 # base/compiler_specific.h. | 3029 # base/compiler_specific.h. |
3062 'CLANG_WARN_CXX0X_EXTENSIONS': 'NO', | 3030 'CLANG_WARN_CXX0X_EXTENSIONS': 'NO', |
3063 | 3031 |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3134 'OTHER_LDFLAGS': [ | 3102 'OTHER_LDFLAGS': [ |
3135 '-faddress-sanitizer', | 3103 '-faddress-sanitizer', |
3136 ], | 3104 ], |
3137 }, | 3105 }, |
3138 }], | 3106 }], |
3139 ], | 3107 ], |
3140 }], | 3108 }], |
3141 ['_mac_bundle', { | 3109 ['_mac_bundle', { |
3142 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']}, | 3110 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']}, |
3143 }], | 3111 }], |
| 3112 ], # target_conditions |
| 3113 }, # target_defaults |
| 3114 }], # OS=="mac" or OS=="ios" |
| 3115 ['OS=="mac"', { |
| 3116 'target_defaults': { |
| 3117 'variables': { |
| 3118 # These should end with %, but there seems to be a bug with % in |
| 3119 # variables that are intended to be set to different values in |
| 3120 # different targets, like these. |
| 3121 'mac_pie': 1, # Most executables can be position-independent. |
| 3122 'mac_real_dsym': 0, # Fake .dSYMs are fine in most cases. |
| 3123 # Strip debugging symbols from the target. |
| 3124 'mac_strip': '<(mac_strip_release)', |
| 3125 }, |
| 3126 'xcode_settings': { |
| 3127 'GCC_DYNAMIC_NO_PIC': 'NO', # No -mdynamic-no-pic |
| 3128 # (Equivalent to -fPIC) |
| 3129 # MACOSX_DEPLOYMENT_TARGET maps to -mmacosx-version-min |
| 3130 'MACOSX_DEPLOYMENT_TARGET': '<(mac_deployment_target)', |
| 3131 # Keep pch files below xcodebuild/. |
| 3132 'SHARED_PRECOMPS_DIR': '$(CONFIGURATION_BUILD_DIR)/SharedPrecompiledHe
aders', |
| 3133 'OTHER_CFLAGS': [ |
| 3134 '-fno-strict-aliasing', # See http://crbug.com/32204 |
| 3135 ], |
| 3136 }, |
| 3137 'target_conditions': [ |
3144 ['_type=="executable"', { | 3138 ['_type=="executable"', { |
3145 'postbuilds': [ | 3139 'postbuilds': [ |
3146 { | 3140 { |
3147 # Arranges for data (heap) pages to be protected against | 3141 # Arranges for data (heap) pages to be protected against |
3148 # code execution when running on Mac OS X 10.7 ("Lion"), and | 3142 # code execution when running on Mac OS X 10.7 ("Lion"), and |
3149 # ensures that the position-independent executable (PIE) bit | 3143 # ensures that the position-independent executable (PIE) bit |
3150 # is set for ASLR when running on Mac OS X 10.5 ("Leopard"). | 3144 # is set for ASLR when running on Mac OS X 10.5 ("Leopard"). |
3151 'variables': { | 3145 'variables': { |
3152 # Define change_mach_o_flags in a variable ending in _path | 3146 # Define change_mach_o_flags in a variable ending in _path |
3153 # so that GYP understands it's a path and performs proper | 3147 # so that GYP understands it's a path and performs proper |
(...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3673 # settings in target dicts. SYMROOT is a special case, because many other | 3667 # settings in target dicts. SYMROOT is a special case, because many other |
3674 # Xcode variables depend on it, including variables such as | 3668 # Xcode variables depend on it, including variables such as |
3675 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 3669 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
3676 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 3670 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
3677 # files to appear (when present) in the UI as actual files and not red | 3671 # files to appear (when present) in the UI as actual files and not red |
3678 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 3672 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
3679 # and therefore SYMROOT, needs to be set at the project level. | 3673 # and therefore SYMROOT, needs to be set at the project level. |
3680 'SYMROOT': '<(DEPTH)/xcodebuild', | 3674 'SYMROOT': '<(DEPTH)/xcodebuild', |
3681 }, | 3675 }, |
3682 } | 3676 } |
OLD | NEW |