Commit 3de317be authored by Felix Paul Kühne's avatar Felix Paul Kühne

qtsound: compile only if QTKit is present

parent 55139cf6
......@@ -1947,13 +1947,14 @@ fi
dnl
dnl QTKit
AC_ARG_ENABLE(macosx-qtkit,
[ --enable-macosx-qtkit Mac OS X qtsound (audio) module (default enabled on Mac OS X)])
[ --enable-macosx-qtkit Mac OS X qtsound (audio) module (default enabled on Mac OS X <= v10.11)])
if test "x${enable_macosx_qtkit}" != "xno" &&
(test "${SYS}" = "darwin" || test "${enable_macosx_qtkit}" = "yes")
then
VLC_ADD_PLUGIN([qtsound])
AC_CHECK_HEADERS(QTKit/QTKit.h, [
VLC_ADD_PLUGIN([qtsound])
])
fi
AM_CONDITIONAL(HAVE_QTKIT, [test "${SYS}" = "darwin" -a "x${enable_macosx_qtkit}" != "xno"])
dnl
dnl AVFoundation
......
......@@ -103,11 +103,10 @@ if HAVE_PULSE
access_LTLIBRARIES += libpulsesrc_plugin.la
endif
libqtsound_plugin_la_SOURCES = access/qtsound.m
libqtsound_plugin_la_LDFLAGS = -Wl,-framework,QTKit -Wl,-framework,CoreAudio
if HAVE_QTKIT
access_LTLIBRARIES += libqtsound_plugin.la
endif
libaccess_qtsound_plugin_la_SOURCES = access/qtsound.m
libaccess_qtsound_plugin_la_LDFLAGS = -Wl,-framework,QTKit -Wl,-framework,CoreAudio
access_LTLIBRARIES += $(LTLIBaccess_qtsound)
EXTRA_LTLIBRARIES += libaccess_qtsound_plugin.la
libaccess_wasapi_plugin_la_SOURCES = access/wasapi.c
libaccess_wasapi_plugin_la_LIBADD = -lole32 -lksuser
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment