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

Side by Side Diff: build/common.gypi

Issue 1408263002: mac: In component builds, link against libc++. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: much nicer Created 5 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
« 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 5254 matching lines...) Expand 10 before | Expand all | Expand 10 after
5265 'OTHER_CFLAGS': [ 5265 'OTHER_CFLAGS': [
5266 # Someday this can be replaced by an 'GCC_STRICT_ALIASING': 'NO' 5266 # Someday this can be replaced by an 'GCC_STRICT_ALIASING': 'NO'
5267 # xcode_setting, but not until all downstream projects' mac bots are 5267 # xcode_setting, but not until all downstream projects' mac bots are
5268 # using xcode >= 4.6, because that's when the default value of the 5268 # using xcode >= 4.6, because that's when the default value of the
5269 # flag in the compiler switched. Pre-4.6, the value 'NO' for that 5269 # flag in the compiler switched. Pre-4.6, the value 'NO' for that
5270 # setting is a no-op as far as xcode is concerned, but the compiler 5270 # setting is a no-op as far as xcode is concerned, but the compiler
5271 # behaves differently based on whether -fno-strict-aliasing is 5271 # behaves differently based on whether -fno-strict-aliasing is
5272 # specified or not. 5272 # specified or not.
5273 '-fno-strict-aliasing', # See http://crbug.com/32204. 5273 '-fno-strict-aliasing', # See http://crbug.com/32204.
5274 ], 5274 ],
5275 'conditions': [
5276 ['component=="shared_library"', {
5277 # In component builds, link to the system libc++. This requires
5278 # OS X 10.7, but we currently pass -mmacosx-version-min=10.6.
5279 # Xcode's clang complains about this, but our open-source bundled
5280 # chromium clang doesn't. This has the effect of making
5281 # everything depend on libc++, which means component-build
5282 # binaries won't run on 10.6 (no libc++ there), but for a
5283 # developer-only configuration that's ok.
5284 # (We don't want to raise the deployment target yet so that
5285 # official and dev builds have the same deployment target. This
5286 # affects things like which functions are considered deprecated.)
5287 'CLANG_CXX_LIBRARY': 'libc++', # -stdlib=libc++
5288 }],
5289 ],
5275 }, 5290 },
5276 'target_conditions': [ 5291 'target_conditions': [
5277 ['_type=="executable"', { 5292 ['_type=="executable"', {
5278 'postbuilds': [ 5293 'postbuilds': [
5279 { 5294 {
5280 # Arranges for data (heap) pages to be protected against 5295 # Arranges for data (heap) pages to be protected against
5281 # code execution when running on Mac OS X 10.7 ("Lion"), and 5296 # code execution when running on Mac OS X 10.7 ("Lion"), and
5282 # ensures that the position-independent executable (PIE) bit 5297 # ensures that the position-independent executable (PIE) bit
5283 # is set for ASLR when running on Mac OS X 10.5 ("Leopard"). 5298 # is set for ASLR when running on Mac OS X 10.5 ("Leopard").
5284 'variables': { 5299 'variables': {
(...skipping 998 matching lines...) Expand 10 before | Expand all | Expand 10 after
6283 # settings in target dicts. SYMROOT is a special case, because many other 6298 # settings in target dicts. SYMROOT is a special case, because many other
6284 # Xcode variables depend on it, including variables such as 6299 # Xcode variables depend on it, including variables such as
6285 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 6300 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
6286 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 6301 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
6287 # files to appear (when present) in the UI as actual files and not red 6302 # files to appear (when present) in the UI as actual files and not red
6288 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 6303 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
6289 # and therefore SYMROOT, needs to be set at the project level. 6304 # and therefore SYMROOT, needs to be set at the project level.
6290 'SYMROOT': '<(DEPTH)/xcodebuild', 6305 'SYMROOT': '<(DEPTH)/xcodebuild',
6291 }, 6306 },
6292 } 6307 }
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