PageRenderTime 28ms CodeModel.GetById 16ms RepoModel.GetById 0ms 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
Possible License(s): LGPL-2.1
  1. # -*- cmake -*-
  2. include(Prebuilt)
  3. set(PULSEAUDIO OFF CACHE BOOL "Build with PulseAudio support, if available.")
  4. if (PULSEAUDIO)
  5. if (STANDALONE)
  6. include(FindPkgConfig)
  7. pkg_check_modules(PULSEAUDIO libpulse)
  8. elseif (LINUX)
  9. use_prebuilt_binary(pulseaudio)
  10. set(PULSEAUDIO_FOUND ON FORCE BOOL)
  11. set(PULSEAUDIO_INCLUDE_DIRS
  12. ${LIBS_PREBUILT_DIR}/include
  13. )
  14. # We don't need to explicitly link against pulseaudio itself, because
  15. # the viewer probes for the system's copy at runtime.
  16. set(PULSEAUDIO_LIBRARIES
  17. # none needed!
  18. )
  19. endif (STANDALONE)
  20. endif (PULSEAUDIO)
  21. if (PULSEAUDIO_FOUND)
  22. add_definitions(-DLL_PULSEAUDIO_ENABLED=1)
  23. endif (PULSEAUDIO_FOUND)