Index: build/common.gypi |
diff --git a/build/common.gypi b/build/common.gypi |
index 0929defdbcdfe6b858ed11028c9fe46eaffb1f87..509dcea9c8828d629120178847c755dac577f916 100644 |
--- a/build/common.gypi |
+++ b/build/common.gypi |
@@ -84,11 +84,6 @@ |
# Enable top chrome material design. |
'enable_topchrome_md%' : 0, |
- |
- # Force building against pre-built sysroot image on linux. By default |
- # the sysroot image is only used for Official builds or when cross |
- # compiling to arm or mips. |
- 'use_sysroot%': 0, |
# Override buildtype to select the desired build flavor. |
# Dev - everyday build for development/testing |
@@ -182,6 +177,7 @@ |
# The system root for cross-compiles. Default: none. |
'sysroot%': '', |
+ 'use_sysroot%': 0, |
'chroot_cmd%': '', |
# The system libdir used for this ABI. |
@@ -285,28 +281,6 @@ |
['target_arch=="mipsel"', { |
'mips_arch_variant%': 'r1', |
- }], |
- |
- ['OS=="linux" and target_arch=="arm" and chromeos==0', { |
- # sysroot needs to be an absolute path otherwise it generates |
- # incorrect results when passed to pkg-config |
- 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/chrome/installer/linux/debian_wheezy_arm-sysroot', |
- }], # OS=="linux" and target_arch=="arm" and chromeos==0 |
- |
- ['OS=="linux" and ((branding=="Chrome" and buildtype=="Official" and chromeos==0) or use_sysroot==1)' , { |
- 'conditions': [ |
- ['target_arch=="x64"', { |
- 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/chrome/installer/linux/debian_wheezy_amd64-sysroot', |
- }], |
- ['target_arch=="ia32"', { |
- 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/chrome/installer/linux/debian_wheezy_i386-sysroot', |
- }], |
- ], |
- }], # OS=="linux" and branding=="Chrome" and buildtype=="Official" and chromeos==0 |
- |
- ['OS=="linux" and target_arch=="mipsel"', { |
- 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/mipsel-sysroot/sysroot', |
- 'CXX%': '<!(cd <(DEPTH) && pwd -P)/mipsel-sysroot/bin/mipsel-linux-gnu-gcc', |
}], |
], |
}, |
@@ -969,6 +943,28 @@ |
'enable_settings_app%': 0, |
}], |
+ ['OS=="linux" and target_arch=="arm" and chromeos==0', { |
+ # sysroot needs to be an absolute path otherwise it generates |
+ # incorrect results when passed to pkg-config |
+ 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/chrome/installer/linux/debian_wheezy_arm-sysroot', |
+ }], # OS=="linux" and target_arch=="arm" and chromeos==0 |
+ |
+ ['OS=="linux" and ((branding=="Chrome" and buildtype=="Official" and chromeos==0) or use_sysroot==1)' , { |
+ 'conditions': [ |
+ ['target_arch=="x64"', { |
+ 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/chrome/installer/linux/debian_wheezy_amd64-sysroot', |
+ }], |
+ ['target_arch=="ia32"', { |
+ 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/chrome/installer/linux/debian_wheezy_i386-sysroot', |
+ }], |
+ ], |
+ }], # OS=="linux" and branding=="Chrome" and buildtype=="Official" and chromeos==0 |
+ |
+ ['OS=="linux" and target_arch=="mipsel"', { |
+ 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/mipsel-sysroot/sysroot', |
+ 'CXX%': '<!(cd <(DEPTH) && pwd -P)/mipsel-sysroot/bin/mipsel-linux-gnu-gcc', |
+ }], |
+ |
# Whether tests targets should be run, archived or just have the |
# dependencies verified. All the tests targets have the '_run' suffix, |
# e.g. base_unittests_run runs the target base_unittests. The test |
@@ -1022,12 +1018,6 @@ |
'sas_dll_path%': '<(DEPTH)/third_party/platformsdk_win7/files/redist/amd64', |
}, { |
'sas_dll_path%': '<(DEPTH)/third_party/platformsdk_win7/files/redist/x86', |
- }], |
- |
- ['sysroot!=""', { |
- 'pkg-config': '<(DEPTH)/build/linux/pkg-config-wrapper "<(sysroot)" "<(target_arch)" "<(system_libdir)"', |
- }, { |
- 'pkg-config': 'pkg-config' |
}], |
], |
@@ -1140,7 +1130,6 @@ |
'arm_neon%': '<(arm_neon)', |
'arm_neon_optional%': '<(arm_neon_optional)', |
'sysroot%': '<(sysroot)', |
- 'pkg-config%': '<(pkg-config)', |
'chroot_cmd%': '<(chroot_cmd)', |
'system_libdir%': '<(system_libdir)', |
'component%': '<(component)', |