Back to home page

OSCL-LXR

 
 

    


0001 #!/bin/sh
0002 # SPDX-License-Identifier: GPL-2.0
0003 
0004 PKG="Qt5Core Qt5Gui Qt5Widgets"
0005 
0006 if [ -z "$(command -v ${HOSTPKG_CONFIG})" ]; then
0007         echo >&2 "*"
0008         echo >&2 "* 'make xconfig' requires '${HOSTPKG_CONFIG}'. Please install it."
0009         echo >&2 "*"
0010         exit 1
0011 fi
0012 
0013 if ${HOSTPKG_CONFIG} --exists $PKG; then
0014         echo cflags=\"-std=c++11 -fPIC $(${HOSTPKG_CONFIG} --cflags $PKG)\"
0015         echo libs=\"$(${HOSTPKG_CONFIG} --libs $PKG)\"
0016         echo moc=\"$(${HOSTPKG_CONFIG} --variable=host_bins Qt5Core)/moc\"
0017         exit 0
0018 fi
0019 
0020 echo >&2 "*"
0021 echo >&2 "* Could not find Qt5 via ${HOSTPKG_CONFIG}."
0022 echo >&2 "* Please install Qt5 and make sure it's in PKG_CONFIG_PATH"
0023 echo >&2 "* You need $PKG"
0024 echo >&2 "*"
0025 exit 1