PageRenderTime 8ms CodeModel.GetById 2ms app.highlight 2ms RepoModel.GetById 2ms app.codeStats 0ms

/indra/cmake/PulseAudio.cmake

https://bitbucket.org/lindenlab/viewer-beta/
CMake | 28 lines | 19 code | 5 blank | 4 comment | 4 complexity | be71fdd97144896d451181c53bbc3388 MD5 | raw file
 1# -*- cmake -*-
 2include(Prebuilt)
 3
 4set(PULSEAUDIO OFF CACHE BOOL "Build with PulseAudio support, if available.")
 5
 6if (PULSEAUDIO)
 7  if (STANDALONE)
 8    include(FindPkgConfig)
 9
10    pkg_check_modules(PULSEAUDIO libpulse)
11
12  elseif (LINUX)
13    use_prebuilt_binary(pulseaudio)
14    set(PULSEAUDIO_FOUND ON FORCE BOOL)
15    set(PULSEAUDIO_INCLUDE_DIRS
16        ${LIBS_PREBUILT_DIR}/include
17        )
18    # We don't need to explicitly link against pulseaudio itself, because
19    # the viewer probes for the system's copy at runtime.
20    set(PULSEAUDIO_LIBRARIES
21      # none needed!
22      )
23  endif (STANDALONE)
24endif (PULSEAUDIO)
25
26if (PULSEAUDIO_FOUND)
27  add_definitions(-DLL_PULSEAUDIO_ENABLED=1)
28endif (PULSEAUDIO_FOUND)