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

Unified Diff: build/linux/libgcrypt-config-wrapper

Issue 204553003: linux: use correct libgcrypt-config paths when cross-compiling (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 6 years, 9 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | build/linux/system.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/linux/libgcrypt-config-wrapper
diff --git a/build/linux/libgcrypt-config-wrapper b/build/linux/libgcrypt-config-wrapper
new file mode 100755
index 0000000000000000000000000000000000000000..48a2a8e59fb2fb3c5c84c24b6265d2c12793776b
--- /dev/null
+++ b/build/linux/libgcrypt-config-wrapper
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+# This program wraps around libgcrypt-config to generate the correct include and
+# library paths when cross-compiling using a sysroot.
+
+sysroot="$1"
+shift
+
+if [ -z "$sysroot" ]
+then
+ echo "usage: $0 /path/to/sysroot [libgcrypt-config-arguments]" >&2
+ exit 1
+fi
+
+config_path=$sysroot/usr/bin/libgcrypt-config
+set -e
+echo `$config_path "$@" | sed -e 's|/|'$sysroot'/|'`
« no previous file with comments | « no previous file | build/linux/system.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698