OLD | NEW |
---|---|
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 | 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 | 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 | 9 # such things as the set of warnings to enable, and whether warnings are |
10 # treated as errors. | 10 # treated as errors. |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
87 # The architecture that we're building on. | 87 # The architecture that we're building on. |
88 'target_arch%': 'ia32', | 88 'target_arch%': 'ia32', |
89 | 89 |
90 # By default linux does not use views. To turn on views in Linux | 90 # By default linux does not use views. To turn on views in Linux |
91 # set the variable GYP_DEFINES to "toolkit_views=1", or modify | 91 # set the variable GYP_DEFINES to "toolkit_views=1", or modify |
92 # ~/.gyp/include.gypi . | 92 # ~/.gyp/include.gypi . |
93 'toolkit_views%': 0, | 93 'toolkit_views%': 0, |
94 | 94 |
95 'chromeos%': 0, | 95 'chromeos%': 0, |
96 | 96 |
97 'chrome_personalization%': 0, | 97 # Whether or not browser sync code is built in. |
98 'chrome_personalization%': 1, | |
99 | |
100 # Used to build and statically link a stub (no-op) syncapi engine. | |
101 'use_syncapi_stub%' : 1, | |
98 | 102 |
99 # Set the restrictions on the SUID sandbox binary. | 103 # Set the restrictions on the SUID sandbox binary. |
100 # Path: only exec the hard coded chrome binary path | 104 # Path: only exec the hard coded chrome binary path |
101 # User: only exec binaries owned by the running user. | 105 # User: only exec binaries owned by the running user. |
102 # | 106 # |
103 # Developers should read | 107 # Developers should read |
104 # http://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment | 108 # http://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment |
105 'linux_suid_sandbox_restrictions%': 'Path', | 109 'linux_suid_sandbox_restrictions%': 'Path', |
106 | 110 |
107 # This is the location of the sandbox binary. Chrome looks for this before | 111 # This is the location of the sandbox binary. Chrome looks for this before |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
173 }, { # else: branding!="Chrome" | 177 }, { # else: branding!="Chrome" |
174 'defines': ['CHROMIUM_BUILD'], | 178 'defines': ['CHROMIUM_BUILD'], |
175 }], | 179 }], |
176 ['toolkit_views==1', { | 180 ['toolkit_views==1', { |
177 'defines': ['TOOLKIT_VIEWS=1'], | 181 'defines': ['TOOLKIT_VIEWS=1'], |
178 }], | 182 }], |
179 ['chromeos==1', { | 183 ['chromeos==1', { |
180 'defines': ['OS_CHROMEOS=1'], | 184 'defines': ['OS_CHROMEOS=1'], |
181 }], | 185 }], |
182 ['chrome_personalization==1', { | 186 ['chrome_personalization==1', { |
183 'defines': ['CHROME_PERSONALIZATION=1'], | 187 'conditions': [ |
184 }], | 188 ['OS=="win"', { |
189 # For now sync is only enabled on windows. | |
190 'defines': ['CHROME_PERSONALIZATION=1'], | |
191 }], # OS==win | |
192 ], # conditions for chrome_personalization | |
193 }], # chrome_personalization==1 | |
194 ['use_syncapi_stub==1', { | |
195 'defines': ['COMPILING_SYNCAPI_STUB'], | |
Mark Mentovai
2009/08/11 04:10:04
Did we really need to define this for every single
tim (not reviewing)
2009/08/11 18:57:00
We don't need this for every single file we build,
| |
196 }], # use_syncapi_stub==1 | |
185 ['coverage!=0', { | 197 ['coverage!=0', { |
186 'conditions': [ | 198 'conditions': [ |
187 ['OS=="mac"', { | 199 ['OS=="mac"', { |
188 'xcode_settings': { | 200 'xcode_settings': { |
189 'GCC_INSTRUMENT_PROGRAM_FLOW_ARCS': 'YES', | 201 'GCC_INSTRUMENT_PROGRAM_FLOW_ARCS': 'YES', |
190 'GCC_GENERATE_TEST_COVERAGE_FILES': 'YES', | 202 'GCC_GENERATE_TEST_COVERAGE_FILES': 'YES', |
191 }, | 203 }, |
192 # Add -lgcov for executables, not for static_libraries. | 204 # Add -lgcov for executables, not for static_libraries. |
193 # This is a delayed conditional. | 205 # This is a delayed conditional. |
194 'target_conditions': [ | 206 'target_conditions': [ |
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
744 # settings in target dicts. SYMROOT is a special case, because many other | 756 # settings in target dicts. SYMROOT is a special case, because many other |
745 # Xcode variables depend on it, including variables such as | 757 # Xcode variables depend on it, including variables such as |
746 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 758 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
747 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 759 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
748 # files to appear (when present) in the UI as actual files and not red | 760 # files to appear (when present) in the UI as actual files and not red |
749 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 761 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
750 # and therefore SYMROOT, needs to be set at the project level. | 762 # and therefore SYMROOT, needs to be set at the project level. |
751 'SYMROOT': '<(DEPTH)/xcodebuild', | 763 'SYMROOT': '<(DEPTH)/xcodebuild', |
752 }, | 764 }, |
753 } | 765 } |
OLD | NEW |