|
|
@@ -127,11 +127,14 @@ else ()
|
|
|
# end todo
|
|
|
include_directories (${ALSA_INCLUDE_DIRS})
|
|
|
|
|
|
- include (FindPkgConfig)
|
|
|
- pkg_check_modules (PKG_PULSEAUDIO libpulse-simple)
|
|
|
- if (PKG_PULSEAUDIO_FOUND)
|
|
|
- add_definitions (-DSDL_AUDIO_DRIVER_PULSEAUDIO=1 -DSDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC="libpulse-simple.so")
|
|
|
- file (GLOB PULSEAUDIO_SOURCES src/audio/pulseaudio/*.c)
|
|
|
+ # FIXME: There is a flaw in the current detection logic for PulseAudio development library as it actually only detects its presense in the host/build system which does not mean anything when we are cross-compiling
|
|
|
+ if (NOT CMAKE_CROSSCOMPILING)
|
|
|
+ include (FindPkgConfig)
|
|
|
+ pkg_check_modules (PKG_PULSEAUDIO libpulse-simple)
|
|
|
+ if (PKG_PULSEAUDIO_FOUND)
|
|
|
+ add_definitions (-DSDL_AUDIO_DRIVER_PULSEAUDIO=1 -DSDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC="libpulse-simple.so")
|
|
|
+ file (GLOB PULSEAUDIO_SOURCES src/audio/pulseaudio/*.c)
|
|
|
+ endif ()
|
|
|
endif ()
|
|
|
|
|
|
file (GLOB SYS_C_FILES
|