fix: DeckLink macOS build — CFStringRef and CoreFoundation

GetDisplayName returns CFStringRef on macOS (not const char*).
Add #ifdef __APPLE__ handling in DeckLinkSender.hpp and
DeckLinkReceiver.hpp, and link -framework CoreFoundation in
decklinkin/decklinkout CMakeLists.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
JohannesItten
2026-07-07 19:58:46 +03:00
parent 8dfeeacecd
commit 32fe6aa22a
4 changed files with 40 additions and 6 deletions
+3
View File
@@ -8,4 +8,7 @@ add_executable(dmf-node-decklinkin
target_compile_features(dmf-node-decklinkin PRIVATE cxx_std_20)
target_include_directories(dmf-node-decklinkin PRIVATE "${DECKLINK_INCLUDE}")
target_link_libraries(dmf-node-decklinkin PRIVATE dmf-shared ${CMAKE_DL_LIBS})
if(APPLE)
target_link_libraries(dmf-node-decklinkin PRIVATE "-framework CoreFoundation")
endif()
install(TARGETS dmf-node-decklinkin RUNTIME DESTINATION bin)