blob: ad652cb5394744a2412e55a7014d098a0fc030ff [file] [log] [blame]
Patrick Georgi53ea1d42019-11-22 16:55:58 +01001#!/bin/sh
2# SPDX-License-Identifier: GPL-2.0
3
4PKG="Qt5Core Qt5Gui Qt5Widgets"
5
Patrick Georgi1215cc72022-10-28 01:00:26 +02006if [ -z "$(command -v ${HOSTPKG_CONFIG})" ]; then
Patrick Georgi53ea1d42019-11-22 16:55:58 +01007 echo >&2 "*"
Patrick Georgi1215cc72022-10-28 01:00:26 +02008 echo >&2 "* 'make xconfig' requires '${HOSTPKG_CONFIG}'. Please install it."
Patrick Georgi53ea1d42019-11-22 16:55:58 +01009 echo >&2 "*"
10 exit 1
11fi
12
Patrick Georgi1215cc72022-10-28 01:00:26 +020013if ${HOSTPKG_CONFIG} --exists $PKG; then
14 echo cflags=\"-std=c++11 -fPIC $(${HOSTPKG_CONFIG} --cflags $PKG)\"
15 echo libs=\"$(${HOSTPKG_CONFIG} --libs $PKG)\"
16 echo moc=\"$(${HOSTPKG_CONFIG} --variable=host_bins Qt5Core)/moc\"
Patrick Georgi53ea1d42019-11-22 16:55:58 +010017 exit 0
18fi
19
20echo >&2 "*"
Patrick Georgi1215cc72022-10-28 01:00:26 +020021echo >&2 "* Could not find Qt5 via ${HOSTPKG_CONFIG}."
Patrick Georgi53ea1d42019-11-22 16:55:58 +010022echo >&2 "* Please install Qt5 and make sure it's in PKG_CONFIG_PATH"
Patrick Georgiaa8796d2022-10-28 01:00:26 +020023echo >&2 "* You need $PKG"
Patrick Georgi53ea1d42019-11-22 16:55:58 +010024echo >&2 "*"
25exit 1