Merge branch 'disable-sdl-macos'
Disable the use of SDL under macOS, it doesn't compile nor is needed there. See https://github.com/wxWidgets/wxWidgets/pull/1217
This commit is contained in:
@@ -362,7 +362,7 @@ if(wxUSE_GUI)
|
||||
set(wxUSE_GSTREAMER_PLAYER OFF)
|
||||
endif()
|
||||
|
||||
if(wxUSE_SOUND AND UNIX AND wxUSE_LIBSDL)
|
||||
if(wxUSE_SOUND AND wxUSE_LIBSDL AND UNIX AND NOT APPLE)
|
||||
find_package(SDL2)
|
||||
if(NOT SDL2_FOUND)
|
||||
find_package(SDL)
|
||||
|
4
configure
vendored
4
configure
vendored
@@ -32133,7 +32133,7 @@ if test "x$ac_cv_lib_socket_inet_addr" = xyes; then :
|
||||
INET_LINK="socket"
|
||||
else
|
||||
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lnetwork" >&5
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lnetwork" >&5
|
||||
$as_echo_n "checking for inet_addr in -lnetwork... " >&6; }
|
||||
if ${ac_cv_lib_network_inet_addr+:} false; then :
|
||||
$as_echo_n "(cached) " >&6
|
||||
@@ -34514,7 +34514,7 @@ fi
|
||||
|
||||
WITH_PLUGIN_SDL=0
|
||||
if test "$wxUSE_SOUND" = "yes"; then
|
||||
if test "$USE_UNIX" = 1 ; then
|
||||
if test "$USE_UNIX" = 1 -a "$USE_MAC" != 1 ; then
|
||||
if test "$wxUSE_LIBSDL" != "no"; then
|
||||
|
||||
pkg_failed=no
|
||||
|
@@ -4530,7 +4530,7 @@ AC_CHECK_FUNCS(inet_addr,
|
||||
AC_CHECK_LIB(socket, inet_addr,
|
||||
INET_LINK="socket",
|
||||
[
|
||||
AC_CHECK_LIB(network, inet_addr,
|
||||
AC_CHECK_LIB(network, inet_addr,
|
||||
INET_LINK="network"
|
||||
)
|
||||
]
|
||||
@@ -5560,7 +5560,7 @@ fi
|
||||
|
||||
WITH_PLUGIN_SDL=0
|
||||
if test "$wxUSE_SOUND" = "yes"; then
|
||||
if test "$USE_UNIX" = 1 ; then
|
||||
if test "$USE_UNIX" = 1 -a "$USE_MAC" != 1 ; then
|
||||
if test "$wxUSE_LIBSDL" != "no"; then
|
||||
PKG_CHECK_MODULES([SDL], [sdl2 >= 2.0.0],
|
||||
[
|
||||
@@ -5579,7 +5579,7 @@ if test "$wxUSE_SOUND" = "yes"; then
|
||||
AC_DEFINE(wxUSE_LIBSDL)
|
||||
],
|
||||
[wxUSE_LIBSDL="no"])
|
||||
])
|
||||
])
|
||||
if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
|
||||
WITH_PLUGIN_SDL=1
|
||||
fi
|
||||
|
Reference in New Issue
Block a user