OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 expected to be overriden on the GYP command line (-D) or by | 9 # Variables expected to be overriden on the GYP command line (-D) or by |
10 # ~/.gyp/include.gypi. | 10 # ~/.gyp/include.gypi. |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 | 78 |
79 # Disable viewport meta tag by default. | 79 # Disable viewport meta tag by default. |
80 'enable_viewport%': 0, | 80 'enable_viewport%': 0, |
81 | 81 |
82 # Enable HiDPI support. | 82 # Enable HiDPI support. |
83 'enable_hidpi%': 0, | 83 'enable_hidpi%': 0, |
84 | 84 |
85 # Enable top chrome material design. | 85 # Enable top chrome material design. |
86 'enable_topchrome_md%' : 0, | 86 'enable_topchrome_md%' : 0, |
87 | 87 |
88 # Force building against pre-built sysroot image on linux. By default | 88 # Build against pre-built sysroot image on linux. By default |
89 # the sysroot image is only used for Official builds or when cross | 89 # the sysroot image is only used for Official builds or when cross |
90 # compiling to arm or mips. | 90 # compiling. |
91 'use_sysroot%': 0, | 91 'use_sysroot%': 0, |
92 | 92 |
93 # Override buildtype to select the desired build flavor. | 93 # Override buildtype to select the desired build flavor. |
94 # Dev - everyday build for development/testing | 94 # Dev - everyday build for development/testing |
95 # Official - release build (generally implies additional processing) | 95 # Official - release build (generally implies additional processing) |
96 # TODO(mmoss) Once 'buildtype' is fully supported (e.g. Windows gyp | 96 # TODO(mmoss) Once 'buildtype' is fully supported (e.g. Windows gyp |
97 # conversion is done), some of the things which are now controlled by | 97 # conversion is done), some of the things which are now controlled by |
98 # 'branding', such as symbol generation, will need to be refactored | 98 # 'branding', such as symbol generation, will need to be refactored |
99 # based on 'buildtype' (i.e. we don't care about saving symbols for | 99 # based on 'buildtype' (i.e. we don't care about saving symbols for |
100 # non-Official # builds). | 100 # non-Official # builds). |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 | 173 |
174 # Use aurax11 for clipboard implementation. This is true on linux_aura. | 174 # Use aurax11 for clipboard implementation. This is true on linux_aura. |
175 'use_clipboard_aurax11%': 0, | 175 'use_clipboard_aurax11%': 0, |
176 | 176 |
177 # goma settings. | 177 # goma settings. |
178 # 1 to use goma. | 178 # 1 to use goma. |
179 # If no gomadir is set, it uses the default gomadir. | 179 # If no gomadir is set, it uses the default gomadir. |
180 'use_goma%': 0, | 180 'use_goma%': 0, |
181 'gomadir%': '', | 181 'gomadir%': '', |
182 | 182 |
183 # The system root for cross-compiles. Default: none. | |
184 'sysroot%': '', | |
185 'chroot_cmd%': '', | 183 'chroot_cmd%': '', |
186 | 184 |
187 # The system libdir used for this ABI. | 185 # The system libdir used for this ABI. |
188 'system_libdir%': 'lib', | 186 'system_libdir%': 'lib', |
189 | 187 |
190 # Default MIPS arch variant. This is set in the conditions block | 188 # Default MIPS arch variant. This is set in the conditions block |
191 # below for MIPS targets. | 189 # below for MIPS targets. |
192 'mips_arch_variant%': '', | 190 'mips_arch_variant%': '', |
193 | 191 |
194 # MIPS DSP ASE revision. Possible values are: | 192 # MIPS DSP ASE revision. Possible values are: |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 }, { | 278 }, { |
281 'mips_arch_variant%': 'r2', | 279 'mips_arch_variant%': 'r2', |
282 }], | 280 }], |
283 ], | 281 ], |
284 }], | 282 }], |
285 | 283 |
286 ['target_arch=="mipsel"', { | 284 ['target_arch=="mipsel"', { |
287 'mips_arch_variant%': 'r1', | 285 'mips_arch_variant%': 'r1', |
288 }], | 286 }], |
289 | 287 |
290 ['OS=="linux" and target_arch=="arm" and chromeos==0', { | 288 # The system root for cross-compiles. Default: none. |
| 289 ['OS=="linux" and chromeos==0 and ((branding=="Chrome" and buildtype==
"Official") or target_arch=="arm" or target_arch=="mipsel" or use_sysroot==1)',
{ |
291 # sysroot needs to be an absolute path otherwise it generates | 290 # sysroot needs to be an absolute path otherwise it generates |
292 # incorrect results when passed to pkg-config | 291 # incorrect results when passed to pkg-config |
293 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/build/linux/debian_wheezy_arm
-sysroot', | |
294 }], # OS=="linux" and target_arch=="arm" and chromeos==0 | |
295 | |
296 ['OS=="linux" and ((branding=="Chrome" and buildtype=="Official" and c
hromeos==0) or use_sysroot==1)' , { | |
297 'conditions': [ | 292 'conditions': [ |
| 293 ['target_arch=="arm"', { |
| 294 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/build/linux/debian_wheezy
_arm-sysroot', |
| 295 }], |
298 ['target_arch=="x64"', { | 296 ['target_arch=="x64"', { |
299 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/build/linux/debian_wheezy
_amd64-sysroot', | 297 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/build/linux/debian_wheezy
_amd64-sysroot', |
300 }], | 298 }], |
301 ['target_arch=="ia32"', { | 299 ['target_arch=="ia32"', { |
302 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/build/linux/debian_wheezy
_i386-sysroot', | 300 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/build/linux/debian_wheezy
_i386-sysroot', |
303 }], | 301 }], |
304 ], | 302 ['target_arch=="mipsel"', { |
305 }], # OS=="linux" and branding=="Chrome" and buildtype=="Official" and
chromeos==0 | 303 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/build/linux/debian_wheezy
_mips-sysroot', |
306 | 304 }], |
307 ['OS=="linux" and target_arch=="mipsel"', { | 305 ], |
308 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/build/linux/debian_wheezy_mip
s-sysroot', | 306 }, { |
309 }], | 307 'sysroot%': '' |
| 308 }], # OS=="linux" and use_sysroot==1 |
310 ], | 309 ], |
311 }, | 310 }, |
312 | 311 |
313 # Copy conditionally-set variables out one scope. | 312 # Copy conditionally-set variables out one scope. |
314 'chromeos%': '<(chromeos)', | 313 'chromeos%': '<(chromeos)', |
315 'chromecast%': '<(chromecast)', | 314 'chromecast%': '<(chromecast)', |
316 'host_arch%': '<(host_arch)', | 315 'host_arch%': '<(host_arch)', |
317 'target_arch%': '<(target_arch)', | 316 'target_arch%': '<(target_arch)', |
318 'target_subarch%': '<(target_subarch)', | 317 'target_subarch%': '<(target_subarch)', |
319 'mips_arch_variant%': '<(mips_arch_variant)', | 318 'mips_arch_variant%': '<(mips_arch_variant)', |
(...skipping 5966 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6286 # settings in target dicts. SYMROOT is a special case, because many other | 6285 # settings in target dicts. SYMROOT is a special case, because many other |
6287 # Xcode variables depend on it, including variables such as | 6286 # Xcode variables depend on it, including variables such as |
6288 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 6287 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
6289 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 6288 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
6290 # files to appear (when present) in the UI as actual files and not red | 6289 # files to appear (when present) in the UI as actual files and not red |
6291 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 6290 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
6292 # and therefore SYMROOT, needs to be set at the project level. | 6291 # and therefore SYMROOT, needs to be set at the project level. |
6293 'SYMROOT': '<(DEPTH)/xcodebuild', | 6292 'SYMROOT': '<(DEPTH)/xcodebuild', |
6294 }, | 6293 }, |
6295 } | 6294 } |
OLD | NEW |