3
0
mirror of https://github.com/Qortal/Brooklyn.git synced 2025-02-07 06:44:18 +00:00
Brooklyn/scripts/kconfig/qconf-cfg.sh

26 lines
670 B
Bash
Raw Normal View History

2022-04-02 13:24:21 +00:00
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
PKG="Qt5Core Qt5Gui Qt5Widgets"
2022-09-09 09:20:25 +00:00
if [ -z "$(command -v ${HOSTPKG_CONFIG})" ]; then
2022-04-02 13:24:21 +00:00
echo >&2 "*"
2022-09-09 09:20:25 +00:00
echo >&2 "* 'make xconfig' requires '${HOSTPKG_CONFIG}'. Please install it."
2022-04-02 13:24:21 +00:00
echo >&2 "*"
exit 1
fi
2022-09-09 09:20:25 +00:00
if ${HOSTPKG_CONFIG} --exists $PKG; then
echo cflags=\"-std=c++11 -fPIC $(${HOSTPKG_CONFIG} --cflags $PKG)\"
echo libs=\"$(${HOSTPKG_CONFIG} --libs $PKG)\"
echo moc=\"$(${HOSTPKG_CONFIG} --variable=host_bins Qt5Core)/moc\"
2022-04-02 13:24:21 +00:00
exit 0
fi
echo >&2 "*"
2022-09-09 09:20:25 +00:00
echo >&2 "* Could not find Qt5 via ${HOSTPKG_CONFIG}."
2022-04-02 13:24:21 +00:00
echo >&2 "* Please install Qt5 and make sure it's in PKG_CONFIG_PATH"
2022-09-09 09:20:25 +00:00
echo >&2 "* You need $PKG"
2022-04-02 13:24:21 +00:00
echo >&2 "*"
exit 1