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

Side by Side Diff: build/common.gypi

Issue 11273012: Make the Clang and ASan GYP definitions available for iOS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 2 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 | Annotate | Revision Log
« 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 # 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 2990 matching lines...) Expand 10 before | Expand all | Expand 10 after
3001 # Don't warn about unused function parameters. 3001 # Don't warn about unused function parameters.
3002 '-Wno-unused-parameter', 3002 '-Wno-unused-parameter',
3003 # Don't warn about the "struct foo f = {0};" initialization 3003 # Don't warn about the "struct foo f = {0};" initialization
3004 # pattern. 3004 # pattern.
3005 '-Wno-missing-field-initializers', 3005 '-Wno-missing-field-initializers',
3006 ], 3006 ],
3007 'conditions': [ 3007 'conditions': [
3008 ['chromium_mac_pch', {'GCC_PRECOMPILE_PREFIX_HEADER': 'YES'}, 3008 ['chromium_mac_pch', {'GCC_PRECOMPILE_PREFIX_HEADER': 'YES'},
3009 {'GCC_PRECOMPILE_PREFIX_HEADER': 'NO'} 3009 {'GCC_PRECOMPILE_PREFIX_HEADER': 'NO'}
3010 ], 3010 ],
3011 ],
3012 },
3013 'target_conditions': [
3014 ['_type!="static_library"', {
3015 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']},
3016 }],
3017 ['_mac_bundle', {
3018 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']},
3019 }],
3020 ], # target_conditions
3021 }, # target_defaults
3022 }], # OS=="mac" or OS=="ios"
3023 ['OS=="mac"', {
3024 'target_defaults': {
3025 'variables': {
3026 # These should end with %, but there seems to be a bug with % in
3027 # variables that are intended to be set to different values in
3028 # different targets, like these.
3029 'mac_pie': 1, # Most executables can be position-independent.
3030 'mac_real_dsym': 0, # Fake .dSYMs are fine in most cases.
3031 # Strip debugging symbols from the target.
3032 'mac_strip': '<(mac_strip_release)',
3033 },
3034 'xcode_settings': {
3035 'GCC_DYNAMIC_NO_PIC': 'NO', # No -mdynamic-no-pic
3036 # (Equivalent to -fPIC)
3037 # MACOSX_DEPLOYMENT_TARGET maps to -mmacosx-version-min
3038 'MACOSX_DEPLOYMENT_TARGET': '<(mac_deployment_target)',
3039 # Keep pch files below xcodebuild/.
3040 'SHARED_PRECOMPS_DIR': '$(CONFIGURATION_BUILD_DIR)/SharedPrecompiledHe aders',
3041 'OTHER_CFLAGS': [
3042 '-fno-strict-aliasing', # See http://crbug.com/32204
3043 ],
3044 'conditions': [
3045 ['clang==1', { 3011 ['clang==1', {
Nico 2012/10/24 18:12:11 Now that I think about this, a problem with enabli
3046 'CC': '$(SOURCE_ROOT)/<(clang_dir)/clang', 3012 'CC': '$(SOURCE_ROOT)/<(clang_dir)/clang',
3047 'LDPLUSPLUS': '$(SOURCE_ROOT)/<(clang_dir)/clang++', 3013 'LDPLUSPLUS': '$(SOURCE_ROOT)/<(clang_dir)/clang++',
3048 3014
3049 # Don't use -Wc++0x-extensions, which Xcode 4 enables by default 3015 # Don't use -Wc++0x-extensions, which Xcode 4 enables by default
3050 # when buliding with clang. This warning is triggered when the 3016 # when buliding with clang. This warning is triggered when the
3051 # override keyword is used via the OVERRIDE macro from 3017 # override keyword is used via the OVERRIDE macro from
3052 # base/compiler_specific.h. 3018 # base/compiler_specific.h.
3053 'CLANG_WARN_CXX0X_EXTENSIONS': 'NO', 3019 'CLANG_WARN_CXX0X_EXTENSIONS': 'NO',
3054 3020
3055 'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0', 3021 'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0',
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
3125 'OTHER_LDFLAGS': [ 3091 'OTHER_LDFLAGS': [
3126 '-faddress-sanitizer', 3092 '-faddress-sanitizer',
3127 ], 3093 ],
3128 }, 3094 },
3129 }], 3095 }],
3130 ], 3096 ],
3131 }], 3097 }],
3132 ['_mac_bundle', { 3098 ['_mac_bundle', {
3133 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']}, 3099 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']},
3134 }], 3100 }],
3101 ], # target_conditions
3102 }, # target_defaults
3103 }], # OS=="mac" or OS=="ios"
3104 ['OS=="mac"', {
3105 'target_defaults': {
3106 'variables': {
3107 # These should end with %, but there seems to be a bug with % in
3108 # variables that are intended to be set to different values in
3109 # different targets, like these.
3110 'mac_pie': 1, # Most executables can be position-independent.
3111 'mac_real_dsym': 0, # Fake .dSYMs are fine in most cases.
3112 # Strip debugging symbols from the target.
3113 'mac_strip': '<(mac_strip_release)',
3114 },
3115 'xcode_settings': {
3116 'GCC_DYNAMIC_NO_PIC': 'NO', # No -mdynamic-no-pic
3117 # (Equivalent to -fPIC)
3118 # MACOSX_DEPLOYMENT_TARGET maps to -mmacosx-version-min
3119 'MACOSX_DEPLOYMENT_TARGET': '<(mac_deployment_target)',
3120 # Keep pch files below xcodebuild/.
3121 'SHARED_PRECOMPS_DIR': '$(CONFIGURATION_BUILD_DIR)/SharedPrecompiledHe aders',
3122 'OTHER_CFLAGS': [
3123 '-fno-strict-aliasing', # See http://crbug.com/32204
3124 ],
3125 },
3126 'target_conditions': [
3135 ['_type=="executable"', { 3127 ['_type=="executable"', {
3136 'postbuilds': [ 3128 'postbuilds': [
3137 { 3129 {
3138 # Arranges for data (heap) pages to be protected against 3130 # Arranges for data (heap) pages to be protected against
3139 # code execution when running on Mac OS X 10.7 ("Lion"), and 3131 # code execution when running on Mac OS X 10.7 ("Lion"), and
3140 # ensures that the position-independent executable (PIE) bit 3132 # ensures that the position-independent executable (PIE) bit
3141 # is set for ASLR when running on Mac OS X 10.5 ("Leopard"). 3133 # is set for ASLR when running on Mac OS X 10.5 ("Leopard").
3142 'variables': { 3134 'variables': {
3143 # Define change_mach_o_flags in a variable ending in _path 3135 # Define change_mach_o_flags in a variable ending in _path
3144 # so that GYP understands it's a path and performs proper 3136 # so that GYP understands it's a path and performs proper
(...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after
3664 # settings in target dicts. SYMROOT is a special case, because many other 3656 # settings in target dicts. SYMROOT is a special case, because many other
3665 # Xcode variables depend on it, including variables such as 3657 # Xcode variables depend on it, including variables such as
3666 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 3658 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
3667 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 3659 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
3668 # files to appear (when present) in the UI as actual files and not red 3660 # files to appear (when present) in the UI as actual files and not red
3669 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 3661 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
3670 # and therefore SYMROOT, needs to be set at the project level. 3662 # and therefore SYMROOT, needs to be set at the project level.
3671 'SYMROOT': '<(DEPTH)/xcodebuild', 3663 'SYMROOT': '<(DEPTH)/xcodebuild',
3672 }, 3664 },
3673 } 3665 }
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