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

Side by Side Diff: build/common.gypi

Issue 42133: Allow Mac precompiled headers to be disabled based on a GYP variable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 9 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) 2009 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2009 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 { 5 {
6 'variables': { 6 'variables': {
7 # .gyp files should set chromium_code to 1 if they build Chromium-specific
8 # code, as opposed to external code. This variable is used to control
9 # such things as the set of warnings to enable, and whether warnings are
10 # treated as errors.
7 'chromium_code%': 0, 11 'chromium_code%': 0,
12
13 # Variables expected to be overriden on the GYP command line (-D) or by
14 # ~/.gyp/include.gypi.
15
16 # Override chromium_mac_pch and set it to 0 to suppress the use of
17 # precompiled headers on the Mac. Prefix header injection may still be
18 # used, but prefix headers will not be precompiled. This is useful when
19 # using distcc to distribute a build to compile slaves that don't
20 # share the same compiler executable as the system driving the compilation,
21 # because precompiled headers rely on pointers into a specific compiler
22 # executable's image. Setting this to 0 is needed to use an experimental
23 # Linux-Mac cross compiler distcc farm.
24 'chromium_mac_pch%': 1,
25
26 # Override branding to select the desired branding flavor.
8 'branding%': 'Chromium', 27 'branding%': 'Chromium',
9 }, 28 },
10 'target_defaults': { 29 'target_defaults': {
11 'conditions': [ 30 'conditions': [
12 ['branding=="Chrome"', { 31 ['branding=="Chrome"', {
13 'defines': ['GOOGLE_CHROME_BUILD'], 32 'defines': ['GOOGLE_CHROME_BUILD'],
14 }, { # else: branding!="Chrome" 33 }, { # else: branding!="Chrome"
15 'defines': ['CHROMIUM_BUILD'], 34 'defines': ['CHROMIUM_BUILD'],
16 }], 35 }],
17 ], 36 ],
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 'conditions': [ 89 'conditions': [
71 ['OS=="mac"', { 90 ['OS=="mac"', {
72 'target_defaults': { 91 'target_defaults': {
73 'xcode_settings': { 92 'xcode_settings': {
74 'ALWAYS_SEARCH_USER_PATHS': 'NO', 93 'ALWAYS_SEARCH_USER_PATHS': 'NO',
75 'GCC_C_LANGUAGE_STANDARD': 'c99', 94 'GCC_C_LANGUAGE_STANDARD': 'c99',
76 'GCC_CW_ASM_SYNTAX': 'NO', 95 'GCC_CW_ASM_SYNTAX': 'NO',
77 'GCC_DYNAMIC_NO_PIC': 'YES', 96 'GCC_DYNAMIC_NO_PIC': 'YES',
78 'GCC_ENABLE_PASCAL_STRINGS': 'NO', 97 'GCC_ENABLE_PASCAL_STRINGS': 'NO',
79 'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES', 98 'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES',
80 'GCC_PRECOMPILE_PREFIX_HEADER': 'YES',
81 'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', 99 'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES',
82 'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES', 100 'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES',
83 'GCC_VERSION': '4.2', 101 'GCC_VERSION': '4.2',
84 'GCC_WARN_ABOUT_MISSING_NEWLINE': 'YES', 102 'GCC_WARN_ABOUT_MISSING_NEWLINE': 'YES',
85 'MACOSX_DEPLOYMENT_TARGET': '10.5', 103 'MACOSX_DEPLOYMENT_TARGET': '10.5',
86 'PREBINDING': 'NO', 104 'PREBINDING': 'NO',
87 'SDKROOT': 'macosx10.5', 105 'SDKROOT': 'macosx10.5',
88 'USE_HEADERMAP': 'NO', 106 'USE_HEADERMAP': 'NO',
89 'WARNING_CFLAGS': ['-Wall', '-Wendif-labels'], 107 'WARNING_CFLAGS': ['-Wall', '-Wendif-labels'],
108 'conditions': [
109 ['chromium_mac_pch', {'GCC_PRECOMPILE_PREFIX_HEADER': 'YES'},
110 {'GCC_PRECOMPILE_PREFIX_HEADER': 'NO'}],
111 ],
90 }, 112 },
91 'target_conditions': [ 113 'target_conditions': [
92 ['_type=="shared_library"', { 114 ['_type=="shared_library"', {
93 'xcode_settings': {'GCC_DYNAMIC_NO_PIC': 'NO'}, 115 'xcode_settings': {'GCC_DYNAMIC_NO_PIC': 'NO'},
94 }], 116 }],
95 ['_type!="static_library"', { 117 ['_type!="static_library"', {
96 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, 118 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']},
97 }], 119 }],
98 ['_type=="application"', { 120 ['_type=="application"', {
99 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']}, 121 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']},
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 # settings in target dicts. SYMROOT is a special case, because many other 227 # settings in target dicts. SYMROOT is a special case, because many other
206 # Xcode variables depend on it, including variables such as 228 # Xcode variables depend on it, including variables such as
207 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 229 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
208 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 230 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
209 # files to appear (when present) in the UI as actual files and not red 231 # files to appear (when present) in the UI as actual files and not red
210 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 232 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
211 # and therefore SYMROOT, needs to be set at the project level. 233 # and therefore SYMROOT, needs to be set at the project level.
212 'SYMROOT': '<(DEPTH)/xcodebuild', 234 'SYMROOT': '<(DEPTH)/xcodebuild',
213 }, 235 },
214 } 236 }
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