mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-18 18:30:59 +00:00
CONFIGURE: Disable check for unity when compiling with mingw (pkg-config is not available)
This commit is contained in:
parent
599695bc4f
commit
8729af342f
20
configure
vendored
20
configure
vendored
@ -2943,18 +2943,26 @@ if test "$_unix" = no || test "$_taskbar" = no; then
|
||||
_libunity=no
|
||||
else
|
||||
if test "$_libunity" = auto ; then
|
||||
# Unity has a lots of dependencies, update the libs and cflags var with them
|
||||
LIBUNITY_LIBS="$LIBUNITY_LIBS $(pkg-config --libs unity)"
|
||||
LIBUNITY_CFLAGS="$LIBUNITY_CFLAGS $(pkg-config --cflags unity)"
|
||||
_libunity=no
|
||||
cat > $TMPC << EOF
|
||||
case $_host_os in
|
||||
mingw*)
|
||||
# pkgconfig and unity are not supported on mingw
|
||||
_libunity=no
|
||||
;;
|
||||
*)
|
||||
# Unity has a lots of dependencies, update the libs and cflags var with them
|
||||
LIBUNITY_LIBS="$LIBUNITY_LIBS $(pkg-config --libs unity)"
|
||||
LIBUNITY_CFLAGS="$LIBUNITY_CFLAGS $(pkg-config --cflags unity)"
|
||||
_libunity=no
|
||||
cat > $TMPC << EOF
|
||||
#include <unity.h>
|
||||
int main(void) {
|
||||
unity_launcher_entry_get_for_desktop_id("scummvm.desktop");
|
||||
return 0;
|
||||
}
|
||||
EOF
|
||||
cc_check $LIBUNITY_CFLAGS $LIBUNITY_LIBS -lunity && _libunity=yes
|
||||
cc_check $LIBUNITY_CFLAGS $LIBUNITY_LIBS -lunity && _libunity=yes
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
if test "$_libunity" = yes ; then
|
||||
LIBS="$LIBS $LIBUNITY_LIBS -lunity"
|
||||
|
Loading…
x
Reference in New Issue
Block a user