[xray-mux] Build as a shared library (#5674)
author박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Wed, 17 Jul 2019 07:57:48 +0000 (16:57 +0900)
committer이춘석/On-Device Lab(SR)/Staff Engineer/삼성전자 <chunseok.lee@samsung.com>
Wed, 17 Jul 2019 07:57:48 +0000 (16:57 +0900)
It turns out that "xprobe" cannot access "pipe" implementation in "mux"
if it is built as a static library.

Let's fix this issue by building "xray-mux" as a shared library.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
runtimes/libs/xray/mux/CMakeLists.txt

index 0484a82..d67454b 100644 (file)
@@ -1,5 +1,7 @@
-add_library(nnfw_lib_xray_mux STATIC src/mux.cc)
+add_library(nnfw_lib_xray_mux SHARED src/mux.cc)
 set_target_properties(nnfw_lib_xray_mux PROPERTIES POSITION_INDEPENDENT_CODE ON)
 target_include_directories(nnfw_lib_xray_mux PUBLIC include)
 target_link_libraries(nnfw_lib_xray_mux PUBLIC nnfw_lib_xray_event)
 target_link_libraries(nnfw_lib_xray_mux PUBLIC nnfw_lib_xray_pipe)
+
+install(TARGETS nnfw_lib_xray_mux LIBRARY DESTINATION lib)