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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 'chromeos%': 0, | 105 'chromeos%': 0, |
106 | 106 |
107 # The system root for cross-compiles. Default: none. | 107 # The system root for cross-compiles. Default: none. |
108 'sysroot%': '', | 108 'sysroot%': '', |
109 | 109 |
110 # This is the location of the sandbox binary. Chrome looks for this before | 110 # This is the location of the sandbox binary. Chrome looks for this before |
111 # running the zygote process. If found, and SUID, it will be used to | 111 # running the zygote process. If found, and SUID, it will be used to |
112 # sandbox the zygote process and, thus, all renderer processes. | 112 # sandbox the zygote process and, thus, all renderer processes. |
113 'linux_sandbox_path%': '', | 113 'linux_sandbox_path%': '', |
114 | 114 |
| 115 # Set this to true to enable SELinux support. |
| 116 'selinux%': 0, |
| 117 |
115 'conditions': [ | 118 'conditions': [ |
116 ['OS=="linux"', { | 119 ['OS=="linux"', { |
117 'conditions': [ | 120 'conditions': [ |
118 ['branding=="Chrome" or linux_chromium_breakpad==1', { | 121 ['branding=="Chrome" or linux_chromium_breakpad==1', { |
119 'linux_breakpad%': 1, | 122 'linux_breakpad%': 1, |
120 }, { | 123 }, { |
121 'linux_breakpad%': 0, | 124 'linux_breakpad%': 0, |
122 }], | 125 }], |
123 ], | 126 ], |
124 }], # OS=="linux" | 127 }], # OS=="linux" |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 }], | 185 }], |
183 ['experimental_build_define', { | 186 ['experimental_build_define', { |
184 'defines': ['CHROME_EXP_BUILD'], | 187 'defines': ['CHROME_EXP_BUILD'], |
185 }], | 188 }], |
186 ['toolkit_views==1', { | 189 ['toolkit_views==1', { |
187 'defines': ['TOOLKIT_VIEWS=1'], | 190 'defines': ['TOOLKIT_VIEWS=1'], |
188 }], | 191 }], |
189 ['chromeos==1', { | 192 ['chromeos==1', { |
190 'defines': ['OS_CHROMEOS=1'], | 193 'defines': ['OS_CHROMEOS=1'], |
191 }], | 194 }], |
| 195 ['selinux==1', { |
| 196 'defines': ['CHROMIUM_SELINUX=1'], |
| 197 }], |
192 ['coverage!=0', { | 198 ['coverage!=0', { |
193 'conditions': [ | 199 'conditions': [ |
194 ['OS=="mac"', { | 200 ['OS=="mac"', { |
195 'xcode_settings': { | 201 'xcode_settings': { |
196 'GCC_INSTRUMENT_PROGRAM_FLOW_ARCS': 'YES', # -fprofile-arcs | 202 'GCC_INSTRUMENT_PROGRAM_FLOW_ARCS': 'YES', # -fprofile-arcs |
197 'GCC_GENERATE_TEST_COVERAGE_FILES': 'YES', # -ftest-coverage | 203 'GCC_GENERATE_TEST_COVERAGE_FILES': 'YES', # -ftest-coverage |
198 }, | 204 }, |
199 # Add -lgcov for executables, not for static_libraries. | 205 # Add -lgcov for executables, not for static_libraries. |
200 # This is a delayed conditional. | 206 # This is a delayed conditional. |
201 'target_conditions': [ | 207 'target_conditions': [ |
(...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
789 # settings in target dicts. SYMROOT is a special case, because many other | 795 # settings in target dicts. SYMROOT is a special case, because many other |
790 # Xcode variables depend on it, including variables such as | 796 # Xcode variables depend on it, including variables such as |
791 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 797 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
792 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 798 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
793 # files to appear (when present) in the UI as actual files and not red | 799 # files to appear (when present) in the UI as actual files and not red |
794 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 800 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
795 # and therefore SYMROOT, needs to be set at the project level. | 801 # and therefore SYMROOT, needs to be set at the project level. |
796 'SYMROOT': '<(DEPTH)/xcodebuild', | 802 'SYMROOT': '<(DEPTH)/xcodebuild', |
797 }, | 803 }, |
798 } | 804 } |
OLD | NEW |