Changeset View
Changeset View
Standalone View
Standalone View
multimedia/obs-studio/files/patch-plugins_oss-audio_CMakeLists.txt
- This file was added.
--- plugins/oss-audio/CMakeLists.txt.orig 2020-06-01 19:59:40 UTC | |||||
+++ plugins/oss-audio/CMakeLists.txt | |||||
@@ -0,0 +1,36 @@ | |||||
+project(oss-audio) | |||||
+ | |||||
+if(DISABLE_OSS) | |||||
+ message(STATUS "OSS support disabled") | |||||
+ return() | |||||
+endif() | |||||
+ | |||||
+find_package(OSS) | |||||
+if(NOT OSS_FOUND AND ENABLE_OSS) | |||||
+ message(FATAL_ERROR "OSS not found but set as enabled") | |||||
+elseif(NOT OSS_FOUND) | |||||
+ message(STATUS "OSS not found, disabling OSS plugin") | |||||
+ return() | |||||
+endif() | |||||
+ | |||||
+configure_file(oss-platform.h.in oss-platform.h) | |||||
+ | |||||
+include_directories( | |||||
+ SYSTEM "${CMAKE_SOURCE_DIR}/libobs" | |||||
+ "${OSS_INCLUDE_DIR}" | |||||
+ "${CMAKE_CURRENT_BINARY_DIR}" | |||||
+) | |||||
+ | |||||
+set(oss-audio_SOURCES | |||||
+ oss-audio.c | |||||
+ oss-input.c | |||||
+) | |||||
+ | |||||
+add_library(oss-audio MODULE | |||||
+ ${oss-audio_SOURCES} | |||||
+) | |||||
+target_link_libraries(oss-audio | |||||
+ libobs | |||||
+) | |||||
+ | |||||
+install_obs_plugin(oss-audio) |