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 # 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, | |
102 | |
103 # Set the restrictions on the SUID sandbox binary. | 97 # Set the restrictions on the SUID sandbox binary. |
104 # Path: only exec the hard coded chrome binary path | 98 # Path: only exec the hard coded chrome binary path |
105 # User: only exec binaries owned by the running user. | 99 # User: only exec binaries owned by the running user. |
106 # | 100 # |
107 # Developers should read | 101 # Developers should read |
108 # http://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment | 102 # http://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment |
109 'linux_suid_sandbox_restrictions%': 'Path', | 103 'linux_suid_sandbox_restrictions%': 'Path', |
110 | 104 |
111 # This is the location of the sandbox binary. Chrome looks for this before | 105 # This is the location of the sandbox binary. Chrome looks for this before |
112 # running the zygote process. If found, and SUID, it will be used to | 106 # running the zygote process. If found, and SUID, it will be used to |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 ], | 170 ], |
177 }, { # else: branding!="Chrome" | 171 }, { # else: branding!="Chrome" |
178 'defines': ['CHROMIUM_BUILD'], | 172 'defines': ['CHROMIUM_BUILD'], |
179 }], | 173 }], |
180 ['toolkit_views==1', { | 174 ['toolkit_views==1', { |
181 'defines': ['TOOLKIT_VIEWS=1'], | 175 'defines': ['TOOLKIT_VIEWS=1'], |
182 }], | 176 }], |
183 ['chromeos==1', { | 177 ['chromeos==1', { |
184 'defines': ['OS_CHROMEOS=1'], | 178 'defines': ['OS_CHROMEOS=1'], |
185 }], | 179 }], |
186 ['chrome_personalization==1', { | |
187 'conditions': [ | |
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'], | |
196 }], # use_syncapi_stub==1 | |
197 ['coverage!=0', { | 180 ['coverage!=0', { |
198 'conditions': [ | 181 'conditions': [ |
199 ['OS=="mac"', { | 182 ['OS=="mac"', { |
200 'xcode_settings': { | 183 'xcode_settings': { |
201 'GCC_INSTRUMENT_PROGRAM_FLOW_ARCS': 'YES', # -fprofile-arcs | 184 'GCC_INSTRUMENT_PROGRAM_FLOW_ARCS': 'YES', # -fprofile-arcs |
202 'GCC_GENERATE_TEST_COVERAGE_FILES': 'YES', # -ftest-coverage | 185 'GCC_GENERATE_TEST_COVERAGE_FILES': 'YES', # -ftest-coverage |
203 }, | 186 }, |
204 # Add -lgcov for executables, not for static_libraries. | 187 # Add -lgcov for executables, not for static_libraries. |
205 # This is a delayed conditional. | 188 # This is a delayed conditional. |
206 'target_conditions': [ | 189 'target_conditions': [ |
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
767 # settings in target dicts. SYMROOT is a special case, because many other | 750 # settings in target dicts. SYMROOT is a special case, because many other |
768 # Xcode variables depend on it, including variables such as | 751 # Xcode variables depend on it, including variables such as |
769 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 752 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
770 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 753 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
771 # files to appear (when present) in the UI as actual files and not red | 754 # files to appear (when present) in the UI as actual files and not red |
772 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 755 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
773 # and therefore SYMROOT, needs to be set at the project level. | 756 # and therefore SYMROOT, needs to be set at the project level. |
774 'SYMROOT': '<(DEPTH)/xcodebuild', | 757 'SYMROOT': '<(DEPTH)/xcodebuild', |
775 }, | 758 }, |
776 } | 759 } |
OLD | NEW |