summaryrefslogtreecommitdiffstats
path: root/third_party/harfbuzz-ng/harfbuzz.gyp
diff options
context:
space:
mode:
authorspang <spang@chromium.org>2015-05-27 13:43:24 -0700
committerCommit bot <commit-bot@chromium.org>2015-05-27 20:43:53 +0000
commit8505ef356013ec9239f295501a283ec9fd43b08a (patch)
treeeb0fb909e23596fb57fdb230a156ec5247bde323 /third_party/harfbuzz-ng/harfbuzz.gyp
parent2c4354dac3cb75199df4666f26613485caf91347 (diff)
downloadchromium_src-8505ef356013ec9239f295501a283ec9fd43b08a.zip
chromium_src-8505ef356013ec9239f295501a283ec9fd43b08a.tar.gz
chromium_src-8505ef356013ec9239f295501a283ec9fd43b08a.tar.bz2
Revert of Fix use of 'sysroot' variable in harfbuzz.gyp (patchset #6 id:100001 of https://codereview.chromium.org/1151753002/)
Reason for revert: Breaks GYP for Chrome OS builds. Repro steps: cros chrome-sdk --board=amd64-generic gclient runhooks Updating projects from gyp files... /bin/sh: /build/amd64-generic/build/bin/pkg-config: No such file or directory gyp: Call to '/build/amd64-generic/build/bin/pkg-config --libs-only-l nss | sed -e "s/-lssl3//"' returned exit status 0. /bin/sh: /build/amd64-generic/build/bin/pkg-config: No such file or directory gyp: Call to '/build/amd64-generic/build/bin/pkg-config --libs libcras' returned exit status 127. /bin/sh: /build/amd64-generic/build/bin/pkg-config: No such file or directory gyp: Call to '/build/amd64-generic/build/bin/pkg-config --cflags x11' returned exit status 127. Error: Command /usr/bin/python src/build/gyp_chromium returned non-zero exit status 1 in /ssd/src/chromium TEST=cros chrome-sdk --board=amd64-generic && gclient runhooks Original issue's description: > Fix use of 'sysroot' variable in harfbuzz.gyp > > The sysroot variable is set conditionally in common.gypi > but not at the nesting level required for other conditional > to depend on it like the one in hardbuzz does. This means > that sysroot always appeared to be empty to harfbuzz.gyp, > and hence the special handling for ARM linux was required. > > This change moves the setting of 'sysroot' up one level of > nesting and defines 'pkg-config' in common.gypi so it can > be shared. > > Committed: https://crrev.com/6a80b32f309490f44347f2925589a6f0fc23c3ff > Cr-Commit-Position: refs/heads/master@{#331506} TBR=mazda@chromium.org,dpranke@chromium.org,cpu@chromium.org,sbc@chromium.org NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true Review URL: https://codereview.chromium.org/1154213004 Cr-Commit-Position: refs/heads/master@{#331642}
Diffstat (limited to 'third_party/harfbuzz-ng/harfbuzz.gyp')
-rw-r--r--third_party/harfbuzz-ng/harfbuzz.gyp18
1 files changed, 18 insertions, 0 deletions
diff --git a/third_party/harfbuzz-ng/harfbuzz.gyp b/third_party/harfbuzz-ng/harfbuzz.gyp
index 8580879..96e4b7c 100644
--- a/third_party/harfbuzz-ng/harfbuzz.gyp
+++ b/third_party/harfbuzz-ng/harfbuzz.gyp
@@ -7,6 +7,18 @@
'../../build/win_precompile.gypi',
],
'variables': {
+ 'variables': {
+ 'conditions': [
+ ['sysroot!=""', {
+ 'pkg-config': '<(chroot_cmd) ../../build/linux/pkg-config-wrapper "<(sysroot)" "<(target_arch)" "<(system_libdir)"',
+ }, {
+ 'pkg-config': 'pkg-config'
+ }],
+ ],
+ },
+
+ 'pkg-config': '<(pkg-config)',
+
'conditions': [
['OS=="linux" and (buildtype!="Official" or chromeos==1) and embedded==0', {
# Since version 1.31.0, pangoft2 which we depend on pulls in harfbuzz
@@ -18,6 +30,12 @@
}, {
'use_system_harfbuzz': 0,
}],
+ ['OS=="linux" and target_arch=="arm" and chromeos==0', {
+ # Override use_system_harfbuzz for ARM cross compiling so system
+ # harfbuzz is not used because the corresponding package is not
+ # available.
+ 'use_system_harfbuzz': 0,
+ }],
],
},
'conditions': [