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:
@@ -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)
|
||||
|
||||
@@ -8,4 +8,7 @@ add_executable(dmf-node-decklinkout
|
||||
target_compile_features(dmf-node-decklinkout PRIVATE cxx_std_20)
|
||||
target_include_directories(dmf-node-decklinkout PRIVATE "${DECKLINK_INCLUDE}")
|
||||
target_link_libraries(dmf-node-decklinkout PRIVATE dmf-shared ${CMAKE_DL_LIBS})
|
||||
if(APPLE)
|
||||
target_link_libraries(dmf-node-decklinkout PRIVATE "-framework CoreFoundation")
|
||||
endif()
|
||||
install(TARGETS dmf-node-decklinkout RUNTIME DESTINATION bin)
|
||||
|
||||
Reference in New Issue
Block a user