diff options
author | bbudge@chromium.org <bbudge@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-08 21:38:35 +0000 |
---|---|---|
committer | bbudge@chromium.org <bbudge@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-08 21:38:35 +0000 |
commit | 43c1f53f555da045e68bb217f787ba49c08ba2bc (patch) | |
tree | edad20a51ffd4407a437424c6da671c5983b2ab5 /build/config/sysroot.gni | |
parent | a1683a1fa2d6a18dee198572bf26e990abf45351 (diff) | |
download | chromium_src-43c1f53f555da045e68bb217f787ba49c08ba2bc.zip chromium_src-43c1f53f555da045e68bb217f787ba49c08ba2bc.tar.gz chromium_src-43c1f53f555da045e68bb217f787ba49c08ba2bc.tar.bz2 |
GN: Get Mac build working for IPC target at least.
- Move sysroot.gni up a directory, as it applies to multiple
platforms now.
- Use existing find_sdk.py script to locate Mac SDK.
- Fix some gtest includes for Mac files.
BUG=
R=brettw@chromium.org
Review URL: https://codereview.chromium.org/116763005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243654 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/config/sysroot.gni')
-rw-r--r-- | build/config/sysroot.gni | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/build/config/sysroot.gni b/build/config/sysroot.gni new file mode 100644 index 0000000..ce1c5f2 --- /dev/null +++ b/build/config/sysroot.gni @@ -0,0 +1,27 @@ +# Copyright (c) 2013 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +# This header file defines the "sysroot" variable which is the absolute path +# of the sysroot. If no sysroot applies, the variable will be an empty string. + +# For official linux builds, use the sysroot checked into the internal source +# repo so that the builds work on older versions of Linux. +if (is_linux && is_chrome_branded && is_official_build && !is_chromeos) { + if (cpu_arch == "x64") { + sysroot = rebase_path( + "//chrome/installer/linux/debian_wheezy_amd64-sysroot", ".", "") + } else if (cpu_arch == "x86") { + sysroot = rebase_path( + "//chrome/installer/linux/debian_wheezy_i386-sysroot", ".", "") + } else { + # Any other builds don't use a sysroot. + sysroot = "" + } +} else if (is_mac) { + import("//build/config/mac/mac_sdk.gni") + + sysroot = mac_sdk_path +} else { + sysroot = "" +} |