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

Side by Side Diff: build/common.gypi

Issue 1476923005: Only build against prebuilt sysroot when using clang (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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 # By default we build against a stable sysroot image to avoid 91 # By default we build against a stable sysroot image to avoid
92 # depending on the packages installed on the local machine. Set this 92 # depending on the packages installed on the local machine. Set this
93 # to 0 to build against locally installed headers and libraries (e.g. 93 # to 0 to build against locally installed headers and libraries (e.g.
94 # if packaging for a linux distro) 94 # if packaging for a linux distro)
95 'use_sysroot%': 1, 95 'use_sysroot%': 1,
96 96
97 # Set this to true when building with Clang.
98 # See http://code.google.com/p/chromium/wiki/Clang for details.
99 # If this is set, clang is used as both host and target compiler in
100 # cross-compile builds.
101 'clang%': 0,
102
97 # Override buildtype to select the desired build flavor. 103 # Override buildtype to select the desired build flavor.
98 # Dev - everyday build for development/testing 104 # Dev - everyday build for development/testing
99 # Official - release build (generally implies additional processing) 105 # Official - release build (generally implies additional processing)
100 # TODO(mmoss) Once 'buildtype' is fully supported (e.g. Windows gyp 106 # TODO(mmoss) Once 'buildtype' is fully supported (e.g. Windows gyp
101 # conversion is done), some of the things which are now controlled by 107 # conversion is done), some of the things which are now controlled by
102 # 'branding', such as symbol generation, will need to be refactored 108 # 'branding', such as symbol generation, will need to be refactored
103 # based on 'buildtype' (i.e. we don't care about saving symbols for 109 # based on 'buildtype' (i.e. we don't care about saving symbols for
104 # non-Official # builds). 110 # non-Official # builds).
105 'buildtype%': 'Dev', 111 'buildtype%': 'Dev',
106 112
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 }, { 152 }, {
147 # Default architecture we're building for is the architecture we'r e 153 # Default architecture we're building for is the architecture we'r e
148 # building on, and possibly sub-architecture (for iOS builds). 154 # building on, and possibly sub-architecture (for iOS builds).
149 'target_arch%': '<(host_arch)', 155 'target_arch%': '<(host_arch)',
150 }], 156 }],
151 ], 157 ],
152 }, 158 },
153 # Copy conditionally-set variables out one scope. 159 # Copy conditionally-set variables out one scope.
154 'chromeos%': '<(chromeos)', 160 'chromeos%': '<(chromeos)',
155 'chromecast%': '<(chromecast)', 161 'chromecast%': '<(chromecast)',
162 'clang%': '<(clang)',
156 'desktop_linux%': '<(desktop_linux)', 163 'desktop_linux%': '<(desktop_linux)',
157 'use_aura%': '<(use_aura)', 164 'use_aura%': '<(use_aura)',
158 'use_ash%': '<(use_ash)', 165 'use_ash%': '<(use_ash)',
159 'use_cras%': '<(use_cras)', 166 'use_cras%': '<(use_cras)',
160 'use_ozone%': '<(use_ozone)', 167 'use_ozone%': '<(use_ozone)',
161 'embedded%': '<(embedded)', 168 'embedded%': '<(embedded)',
162 'use_libpci%': '<(use_libpci)', 169 'use_libpci%': '<(use_libpci)',
163 'use_openssl%': '<(use_openssl)', 170 'use_openssl%': '<(use_openssl)',
164 'use_openssl_certs%': '<(use_openssl_certs)', 171 'use_openssl_certs%': '<(use_openssl_certs)',
165 'enable_viewport%': '<(enable_viewport)', 172 'enable_viewport%': '<(enable_viewport)',
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 }], 299 }],
293 300
294 ['target_arch=="mipsel"', { 301 ['target_arch=="mipsel"', {
295 'mips_arch_variant%': 'r1', 302 'mips_arch_variant%': 'r1',
296 }], 303 }],
297 304
298 # The system root for linux compiles. 305 # The system root for linux compiles.
299 # Not used when chromecast=1 since ozone_platform_gbm doesn't 306 # Not used when chromecast=1 since ozone_platform_gbm doesn't
300 # currently build against the linux sysroot 307 # currently build against the linux sysroot
301 # TODO(sbc): http://crbug.com/559708 308 # TODO(sbc): http://crbug.com/559708
302 ['OS=="linux" and chromeos==0 and chromecast==0 and use_sysroot==1', { 309 ['OS=="linux" and chromeos==0 and chromecast==0 and clang==1 and use_s ysroot==1', {
303 # sysroot needs to be an absolute path otherwise it generates 310 # sysroot needs to be an absolute path otherwise it generates
304 # incorrect results when passed to pkg-config 311 # incorrect results when passed to pkg-config
305 'conditions': [ 312 'conditions': [
306 ['target_arch=="arm"', { 313 ['target_arch=="arm"', {
307 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/build/linux/debian_wheezy _arm-sysroot', 314 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/build/linux/debian_wheezy _arm-sysroot',
308 }], 315 }],
309 ['target_arch=="x64"', { 316 ['target_arch=="x64"', {
310 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/build/linux/debian_wheezy _amd64-sysroot', 317 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/build/linux/debian_wheezy _amd64-sysroot',
311 }], 318 }],
312 ['target_arch=="ia32"', { 319 ['target_arch=="ia32"', {
313 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/build/linux/debian_wheezy _i386-sysroot', 320 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/build/linux/debian_wheezy _i386-sysroot',
314 }], 321 }],
315 ['target_arch=="mipsel"', { 322 ['target_arch=="mipsel"', {
316 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/build/linux/debian_wheezy _mips-sysroot', 323 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/build/linux/debian_wheezy _mips-sysroot',
317 }], 324 }],
318 ], 325 ],
319 }, { 326 }, {
320 'sysroot%': '' 327 'sysroot%': ''
321 }], # OS=="linux" and use_sysroot==1 328 }], # OS=="linux" and use_sysroot==1
322 ], 329 ],
323 }, 330 },
324 331
325 # Copy conditionally-set variables out one scope. 332 # Copy conditionally-set variables out one scope.
326 'chromeos%': '<(chromeos)', 333 'chromeos%': '<(chromeos)',
327 'chromecast%': '<(chromecast)', 334 'chromecast%': '<(chromecast)',
335 'clang%': '<(clang)',
328 'host_arch%': '<(host_arch)', 336 'host_arch%': '<(host_arch)',
329 'target_arch%': '<(target_arch)', 337 'target_arch%': '<(target_arch)',
330 'target_subarch%': '<(target_subarch)', 338 'target_subarch%': '<(target_subarch)',
331 'mips_arch_variant%': '<(mips_arch_variant)', 339 'mips_arch_variant%': '<(mips_arch_variant)',
332 'mips_dsp_rev%': '<(mips_dsp_rev)', 340 'mips_dsp_rev%': '<(mips_dsp_rev)',
333 'toolkit_views%': '<(toolkit_views)', 341 'toolkit_views%': '<(toolkit_views)',
334 'desktop_linux%': '<(desktop_linux)', 342 'desktop_linux%': '<(desktop_linux)',
335 'use_aura%': '<(use_aura)', 343 'use_aura%': '<(use_aura)',
336 'use_ash%': '<(use_ash)', 344 'use_ash%': '<(use_ash)',
337 'use_cras%': '<(use_cras)', 345 'use_cras%': '<(use_cras)',
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
618 # (disabled) in ~/.gyp/include.gypi or via the GYP command line. 626 # (disabled) in ~/.gyp/include.gypi or via the GYP command line.
619 # This setting will override the default. 627 # This setting will override the default.
620 # 628 #
621 # See 629 # See
622 # http://code.google.com/p/chromium/wiki/WindowsPrecompiledHeaders 630 # http://code.google.com/p/chromium/wiki/WindowsPrecompiledHeaders
623 # for details. 631 # for details.
624 'chromium_win_pch%': 0, 632 'chromium_win_pch%': 0,
625 633
626 # Clang stuff. 634 # Clang stuff.
627 'make_clang_dir%': 'third_party/llvm-build/Release+Asserts', 635 'make_clang_dir%': 'third_party/llvm-build/Release+Asserts',
628 # Set this to true when building with Clang.
629 # See http://code.google.com/p/chromium/wiki/Clang for details.
630 # If this is set, clang is used as both host and target compiler in
631 # cross-compile builds.
632 'clang%': 0,
633 636
634 # Use experimental lld linker instead of the platform's default linker. 637 # Use experimental lld linker instead of the platform's default linker.
635 'use_lld%': 0, 638 'use_lld%': 0,
636 639
637 # Enable plugin installation by default. 640 # Enable plugin installation by default.
638 'enable_plugin_installation%': 1, 641 'enable_plugin_installation%': 1,
639 642
640 # Specifies whether to use canvas_skia.cc in place of platform 643 # Specifies whether to use canvas_skia.cc in place of platform
641 # specific implementations of gfx::Canvas. Affects text drawing in the 644 # specific implementations of gfx::Canvas. Affects text drawing in the
642 # Chrome UI. 645 # Chrome UI.
(...skipping 5732 matching lines...) Expand 10 before | Expand all | Expand 10 after
6375 # settings in target dicts. SYMROOT is a special case, because many other 6378 # settings in target dicts. SYMROOT is a special case, because many other
6376 # Xcode variables depend on it, including variables such as 6379 # Xcode variables depend on it, including variables such as
6377 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 6380 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
6378 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 6381 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
6379 # files to appear (when present) in the UI as actual files and not red 6382 # files to appear (when present) in the UI as actual files and not red
6380 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 6383 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
6381 # and therefore SYMROOT, needs to be set at the project level. 6384 # and therefore SYMROOT, needs to be set at the project level.
6382 'SYMROOT': '<(DEPTH)/xcodebuild', 6385 'SYMROOT': '<(DEPTH)/xcodebuild',
6383 }, 6386 },
6384 } 6387 }
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