Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(573)

Side by Side Diff: build/common.gypi

Issue 1472873004: Reland of Use sysroot by default for all linux builds (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | build/config/sysroot.gni » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 # Enable Wayland display server support. 88 # Enable Wayland display server support.
89 'enable_wayland_server%' : 0, 89 'enable_wayland_server%' : 0,
90 90
91 # Build against pre-built sysroot image on linux. By default 91 # By default we build against a stable sysroot image to avoid
92 # the sysroot image is only used for Official builds or when cross 92 # depending on the packages installed on the local machine. Set this
93 # compiling. 93 # to 0 to build against locally installed headers and libraries (e.g.
94 'use_sysroot%': 0, 94 # if packaging for a linux distro)
95 'use_sysroot%': 1,
95 96
96 # Override buildtype to select the desired build flavor. 97 # Override buildtype to select the desired build flavor.
97 # Dev - everyday build for development/testing 98 # Dev - everyday build for development/testing
98 # Official - release build (generally implies additional processing) 99 # Official - release build (generally implies additional processing)
99 # TODO(mmoss) Once 'buildtype' is fully supported (e.g. Windows gyp 100 # TODO(mmoss) Once 'buildtype' is fully supported (e.g. Windows gyp
100 # conversion is done), some of the things which are now controlled by 101 # conversion is done), some of the things which are now controlled by
101 # 'branding', such as symbol generation, will need to be refactored 102 # 'branding', such as symbol generation, will need to be refactored
102 # based on 'buildtype' (i.e. we don't care about saving symbols for 103 # based on 'buildtype' (i.e. we don't care about saving symbols for
103 # non-Official # builds). 104 # non-Official # builds).
104 'buildtype%': 'Dev', 105 'buildtype%': 'Dev',
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 }, { 288 }, {
288 'mips_arch_variant%': 'r2', 289 'mips_arch_variant%': 'r2',
289 }], 290 }],
290 ], 291 ],
291 }], 292 }],
292 293
293 ['target_arch=="mipsel"', { 294 ['target_arch=="mipsel"', {
294 'mips_arch_variant%': 'r1', 295 'mips_arch_variant%': 'r1',
295 }], 296 }],
296 297
297 # The system root for cross-compiles. Default: none. 298 # The system root for linux compiles.
298 ['OS=="linux" and chromeos==0 and ((branding=="Chrome" and buildtype== "Official") or target_arch=="arm" or target_arch=="mipsel" or use_sysroot==1)', { 299 # Not used when chromecast=1 since ozone_platform_gbm doesn't
300 # currently build against the linux sysroot
301 # TODO(sbc): http://crbug.com/559708
302 ['OS=="linux" and chromeos==0 and chromecast==0 and use_sysroot==1', {
299 # sysroot needs to be an absolute path otherwise it generates 303 # sysroot needs to be an absolute path otherwise it generates
300 # incorrect results when passed to pkg-config 304 # incorrect results when passed to pkg-config
301 'conditions': [ 305 'conditions': [
302 ['target_arch=="arm"', { 306 ['target_arch=="arm"', {
303 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/build/linux/debian_wheezy _arm-sysroot', 307 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/build/linux/debian_wheezy _arm-sysroot',
304 }], 308 }],
305 ['target_arch=="x64"', { 309 ['target_arch=="x64"', {
306 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/build/linux/debian_wheezy _amd64-sysroot', 310 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/build/linux/debian_wheezy _amd64-sysroot',
307 }], 311 }],
308 ['target_arch=="ia32"', { 312 ['target_arch=="ia32"', {
(...skipping 6063 matching lines...) Expand 10 before | Expand all | Expand 10 after
6372 # settings in target dicts. SYMROOT is a special case, because many other 6376 # settings in target dicts. SYMROOT is a special case, because many other
6373 # Xcode variables depend on it, including variables such as 6377 # Xcode variables depend on it, including variables such as
6374 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 6378 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
6375 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 6379 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
6376 # files to appear (when present) in the UI as actual files and not red 6380 # files to appear (when present) in the UI as actual files and not red
6377 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 6381 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
6378 # and therefore SYMROOT, needs to be set at the project level. 6382 # and therefore SYMROOT, needs to be set at the project level.
6379 'SYMROOT': '<(DEPTH)/xcodebuild', 6383 'SYMROOT': '<(DEPTH)/xcodebuild',
6380 }, 6384 },
6381 } 6385 }
OLDNEW
« no previous file with comments | « no previous file | build/config/sysroot.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698