OLD | NEW |
1 # Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2010 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': { | 9 'variables': { |
10 # .gyp files or targets should set chromium_code to 1 if they build | 10 # .gyp files or targets should set chromium_code to 1 if they build |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 | 201 |
202 # Strip the binary after dumping symbols. | 202 # Strip the binary after dumping symbols. |
203 'linux_strip_binary%': 0, | 203 'linux_strip_binary%': 0, |
204 | 204 |
205 # Enable TCMalloc. | 205 # Enable TCMalloc. |
206 'linux_use_tcmalloc%': 1, | 206 'linux_use_tcmalloc%': 1, |
207 | 207 |
208 # Disable TCMalloc's heapchecker. | 208 # Disable TCMalloc's heapchecker. |
209 'linux_use_heapchecker%': 0, | 209 'linux_use_heapchecker%': 0, |
210 | 210 |
| 211 # Turn on seccomp sandbox by default. |
| 212 # (Note: this is disabled for official builds.) |
| 213 'linux_use_seccomp_sandbox%': 1, |
| 214 |
211 # Set to select the Title Case versions of strings in GRD files. | 215 # Set to select the Title Case versions of strings in GRD files. |
212 'use_titlecase_in_grd_files%': 0, | 216 'use_titlecase_in_grd_files%': 0, |
213 | 217 |
214 # Used to disable Native Client at compile time, for platforms where it | 218 # Used to disable Native Client at compile time, for platforms where it |
215 # isn't supported | 219 # isn't supported |
216 'disable_nacl%': 0, | 220 'disable_nacl%': 0, |
217 | 221 |
218 # Set Thumb compilation flags. | 222 # Set Thumb compilation flags. |
219 'arm_thumb%': 0, | 223 'arm_thumb%': 0, |
220 | 224 |
(...skipping 729 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
950 }], | 954 }], |
951 ['no_strict_aliasing==1', { | 955 ['no_strict_aliasing==1', { |
952 'cflags': [ | 956 'cflags': [ |
953 '-fno-strict-aliasing', | 957 '-fno-strict-aliasing', |
954 ], | 958 ], |
955 }], | 959 }], |
956 ['linux_breakpad==1', { | 960 ['linux_breakpad==1', { |
957 'cflags': [ '-gstabs' ], | 961 'cflags': [ '-gstabs' ], |
958 'defines': ['USE_LINUX_BREAKPAD'], | 962 'defines': ['USE_LINUX_BREAKPAD'], |
959 }], | 963 }], |
| 964 ['linux_use_seccomp_sandbox==1 and buildtype!="Official"', { |
| 965 'defines': ['USE_SECCOMP_SANDBOX'], |
| 966 }], |
960 ['library=="shared_library"', { | 967 ['library=="shared_library"', { |
961 # When building with shared libraries, remove the visiblity-hiding | 968 # When building with shared libraries, remove the visiblity-hiding |
962 # flag. | 969 # flag. |
963 'cflags!': [ '-fvisibility=hidden' ], | 970 'cflags!': [ '-fvisibility=hidden' ], |
964 'conditions': [ | 971 'conditions': [ |
965 ['target_arch=="x64" or target_arch=="arm"', { | 972 ['target_arch=="x64" or target_arch=="arm"', { |
966 # Shared libraries need -fPIC on x86-64 and arm | 973 # Shared libraries need -fPIC on x86-64 and arm |
967 'cflags': ['-fPIC'] | 974 'cflags': ['-fPIC'] |
968 }] | 975 }] |
969 ], | 976 ], |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1242 # and therefore SYMROOT, needs to be set at the project level. | 1249 # and therefore SYMROOT, needs to be set at the project level. |
1243 'SYMROOT': '<(DEPTH)/xcodebuild', | 1250 'SYMROOT': '<(DEPTH)/xcodebuild', |
1244 }, | 1251 }, |
1245 } | 1252 } |
1246 | 1253 |
1247 # Local Variables: | 1254 # Local Variables: |
1248 # tab-width:2 | 1255 # tab-width:2 |
1249 # indent-tabs-mode:nil | 1256 # indent-tabs-mode:nil |
1250 # End: | 1257 # End: |
1251 # vim: set expandtab tabstop=2 shiftwidth=2: | 1258 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |