2020-04-19 23:12:50 +00:00
|
|
|
#!/bin/sh
|
2020-09-22 08:46:30 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
2020-04-19 23:12:50 +00:00
|
|
|
|
|
|
|
PKG="Qt5Core Qt5Gui Qt5Widgets"
|
|
|
|
|
|
|
|
if [ -z "$(command -v pkg-config)" ]; then
|
|
|
|
echo >&2 "*"
|
|
|
|
echo >&2 "* 'make xconfig' requires 'pkg-config'. Please install it."
|
|
|
|
echo >&2 "*"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
if pkg-config --exists $PKG; then
|
2021-11-24 21:25:43 +00:00
|
|
|
echo cflags=\"-std=c++11 -fPIC $(pkg-config --cflags $PKG)\"
|
2020-04-19 23:12:50 +00:00
|
|
|
echo libs=\"$(pkg-config --libs $PKG)\"
|
|
|
|
echo moc=\"$(pkg-config --variable=host_bins Qt5Core)/moc\"
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo >&2 "*"
|
2021-11-24 21:25:43 +00:00
|
|
|
echo >&2 "* Could not find Qt5 via pkg-config."
|
|
|
|
echo >&2 "* Please install Qt5 and make sure it's in PKG_CONFIG_PATH"
|
2020-04-19 23:12:50 +00:00
|
|
|
echo >&2 "*"
|
|
|
|
exit 1
|