Move mac display capture to mac-capture module
It was kind of silly that it was residing within the test-input module.
This commit is contained in:
@@ -3,10 +3,14 @@ project(mac-capture)
|
||||
find_library(COREAUDIO CoreAudio)
|
||||
find_library(AUDIOUNIT AudioUnit)
|
||||
find_library(COREFOUNDATION CoreFoundation)
|
||||
find_library(IOSURF IOSurface)
|
||||
find_library(COCOA Cocoa)
|
||||
|
||||
include_directories(${COREAUDIO}
|
||||
${AUDIOUNIT}
|
||||
${COREFOUNDATION})
|
||||
${COREFOUNDATION}
|
||||
${IOSURF}
|
||||
${COCOA})
|
||||
|
||||
set(mac-capture_HEADERS
|
||||
audio-device-enum.h
|
||||
@@ -15,8 +19,13 @@ set(mac-capture_HEADERS
|
||||
set(mac-capture_SOURCES
|
||||
plugin-main.c
|
||||
audio-device-enum.c
|
||||
mac-audio.c)
|
||||
mac-audio.c
|
||||
mac-screen-capture.m)
|
||||
|
||||
set_source_files_properties(mac-screen-capture.m
|
||||
PROPERTIES LANGUAGE C
|
||||
COMPILE_FLAGS "-fobjc-arc")
|
||||
|
||||
add_library(mac-capture MODULE
|
||||
${mac-capture_SOURCES}
|
||||
${mac-capture_HEADERS})
|
||||
@@ -24,6 +33,9 @@ target_link_libraries(mac-capture
|
||||
libobs
|
||||
${COREAUDIO}
|
||||
${AUDIOUNIT}
|
||||
${COREFOUNDATION})
|
||||
${COREFOUNDATION}
|
||||
${IOSURF}
|
||||
${COCOA})
|
||||
|
||||
install_obs_plugin(mac-capture)
|
||||
install_obs_plugin_data(mac-capture ../../build/data/obs-plugins/mac-capture)
|
||||
|
Reference in New Issue
Block a user