connection between 2 systems and bug fixes (#14)

This commit is contained in:
tompzf
2026-07-03 14:53:48 +02:00
committed by GitHub
parent 0fb5660d27
commit 46842200f1
284 changed files with 35200 additions and 8265 deletions

View File

@@ -12,22 +12,57 @@ if(UNIX)
# Define project
project(uds_unix_tunnel VERSION 1.0 LANGUAGES CXX)
# Define target
add_library(uds_unix_tunnel STATIC
set(UDS_UNIX_TUNNEL_SOURCES
channel_mgnt.cpp
connection.cpp
watchdog.cpp
)
# Define targets
add_library(uds_unix_tunnel STATIC
${UDS_UNIX_TUNNEL_SOURCES}
)
target_link_libraries(uds_unix_tunnel rt ${CMAKE_DL_LIBS} ${CMAKE_THREAD_LIBS_INIT})
add_library(uds_unix_tunnel_module SHARED
${UDS_UNIX_TUNNEL_SOURCES}
)
target_include_directories(uds_unix_tunnel PRIVATE ./include/)
set_target_properties(uds_unix_tunnel PROPERTIES PREFIX "")
set_target_properties(uds_unix_tunnel PROPERTIES SUFFIX ".sdv")
target_link_libraries(uds_unix_tunnel
PRIVATE
uds_unix_sockets_static
rt
${CMAKE_DL_LIBS}
${CMAKE_THREAD_LIBS_INIT}
)
target_link_libraries(uds_unix_tunnel_module
PRIVATE
uds_unix_sockets_static
rt
${CMAKE_DL_LIBS}
${CMAKE_THREAD_LIBS_INIT}
)
target_include_directories(uds_unix_tunnel
PRIVATE
./include/
../uds_unix_sockets/
)
target_include_directories(uds_unix_tunnel_module
PRIVATE
./include/
../uds_unix_sockets/
)
set_target_properties(uds_unix_tunnel_module PROPERTIES PREFIX "")
set_target_properties(uds_unix_tunnel_module PROPERTIES SUFFIX ".sdv")
set_target_properties(uds_unix_tunnel_module PROPERTIES OUTPUT_NAME "uds_unix_tunnel")
# Build dependencies
add_dependencies(uds_unix_tunnel CompileCoreIDL)
add_dependencies(uds_unix_tunnel_module CompileCoreIDL)
# Appending the service in the service list
set(SDV_Service_List ${SDV_Service_List} uds_unix_tunnel PARENT_SCOPE)
set(SDV_Service_List ${SDV_Service_List} uds_unix_tunnel_module PARENT_SCOPE)
endif()