mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 21:32:45 +00:00
e42c21321b
This moves the check for a Qt5 moc into its own file, qb.moc.sh which is executed at the end of the script to avoid the direct dependency on pkg-config. Now instead it depends on the QT5CORE_CFLAGS and QT5CORE_LIBS variables set in config.lib.sh. These should always be set if HAVE_QT=yes. This also creates a new qb.make.sh file to ensure that the config.mk and config.h files are created at the end of the configure script.
13 lines
371 B
Bash
13 lines
371 B
Bash
# Creates config.mk and config.h.
|
|
add_define MAKEFILE GLOBAL_CONFIG_DIR "$GLOBAL_CONFIG_DIR"
|
|
set -- $(set | grep ^HAVE_)
|
|
while [ $# -gt 0 ]; do
|
|
tmpvar="${1%=*}"
|
|
shift 1
|
|
var="${tmpvar#HAVE_}"
|
|
vars="${vars} $var"
|
|
done
|
|
VARS="$(printf %s "$vars" | tr ' ' '\n' | $SORT)"
|
|
create_config_make config.mk $(printf %s "$VARS")
|
|
create_config_header config.h $(printf %s "$VARS")
|