Allow build without alsa on linux
This commit is contained in:
parent
1d5783b846
commit
caedd6bcf4
|
@ -48,16 +48,12 @@ find_package(Gettext REQUIRED)
|
||||||
find_package(PkgConfig REQUIRED)
|
find_package(PkgConfig REQUIRED)
|
||||||
find_package(Protobuf REQUIRED)
|
find_package(Protobuf REQUIRED)
|
||||||
find_package(FFTW3)
|
find_package(FFTW3)
|
||||||
|
find_package(ALSA)
|
||||||
if(LINUX)
|
if(LINUX)
|
||||||
find_package(ALSA REQUIRED)
|
|
||||||
pkg_check_modules(DBUS REQUIRED dbus-1)
|
pkg_check_modules(DBUS REQUIRED dbus-1)
|
||||||
else(LINUX)
|
else(LINUX)
|
||||||
find_package(ALSA)
|
|
||||||
pkg_check_modules(DBUS dbus-1)
|
pkg_check_modules(DBUS dbus-1)
|
||||||
endif(LINUX)
|
endif(LINUX)
|
||||||
if(ALSA_FOUND)
|
|
||||||
set(HAVE_ALSA ON)
|
|
||||||
endif()
|
|
||||||
if (NOT APPLE)
|
if (NOT APPLE)
|
||||||
find_package(X11)
|
find_package(X11)
|
||||||
endif()
|
endif()
|
||||||
|
@ -329,6 +325,10 @@ optional_component(SPARKLE ON "Sparkle integration"
|
||||||
DEPENDS "Sparkle" SPARKLE
|
DEPENDS "Sparkle" SPARKLE
|
||||||
)
|
)
|
||||||
|
|
||||||
|
optional_component(ALSA ON "ALSA integration"
|
||||||
|
DEPENDS "ALSA" ALSA_FOUND
|
||||||
|
)
|
||||||
|
|
||||||
optional_component(LIBPULSE ON "Pulse audio integration"
|
optional_component(LIBPULSE ON "Pulse audio integration"
|
||||||
DEPENDS "libpulse" LIBPULSE_FOUND
|
DEPENDS "libpulse" LIBPULSE_FOUND
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue