lw-build-system/scripts/config-printflags.sh

9 lines
256 B
Bash
Executable File

#!/bin/sh
for pkg in $@
do
varname="$(echo "${pkg}" | tr a-z A-Z)"
echo '[ -z "${'${varname}'_CFLAGS}" ] && '${varname}'_CFLAGS="$('${pkg}'-config --cflags)"'
echo '[ -z "${'${varname}'_LIBS}" ] && '${varname}'_LIBS="$('${pkg}'-config --cflags)"'
done