Add ipc-util static library for IPC functions
Originally I made the "win_pipe" stuff for named pipes on windows but it was argued that it should be available to all modules and programs/libraries that the modules might communicate with. It cannot really be put in to libobs due to the fact that there would hypothetically be things unrelated to libobs that might want to use it, so I felt the best option was just to create a simple static library specific for interprocess communication. Non-windows versions of these functions are still yet to be implemented.
This commit is contained in:
30
deps/ipc-util/CMakeLists.txt
vendored
Normal file
30
deps/ipc-util/CMakeLists.txt
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
# TODO: Add posix support
|
||||
if(NOT WIN32)
|
||||
return()
|
||||
endif()
|
||||
|
||||
project(ipc-util)
|
||||
|
||||
set(ipc-util_HEADERS
|
||||
ipc-util/pipe.h)
|
||||
|
||||
if(WIN32)
|
||||
set(ipc-util_HEADERS
|
||||
${ipc-util_HEADERS}
|
||||
ipc-util/pipe-windows.h)
|
||||
set(ipc-util_SOURCES
|
||||
ipc-util/pipe-windows.c)
|
||||
else()
|
||||
set(ipc-util_HEADERS
|
||||
${ipc-util_HEADERS}
|
||||
ipc-util/pipe-posix.h)
|
||||
set(ipc-util_SOURCES
|
||||
ipc-util/pipe-posix.c)
|
||||
endif()
|
||||
|
||||
add_library(ipc-util STATIC
|
||||
${ipc-util_SOURCES}
|
||||
${ipc-util_HEADERS})
|
||||
target_include_directories(ipc-util
|
||||
PUBLIC .)
|
||||
target_link_libraries(ipc-util)
|
Reference in New Issue
Block a user