Skip to content

Commit

Permalink
Implement Standalone MuxClient
Browse files Browse the repository at this point in the history
  • Loading branch information
radkesvat committed Jul 20, 2024
1 parent 8de5bd5 commit 027a23a
Show file tree
Hide file tree
Showing 5 changed files with 525 additions and 0 deletions.
14 changes: 14 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ option(INCLUDE_HALFDUPLEX_SERVER "link HalfDuplexServer staticly to the core" T
option(INCLUDE_HALFDUPLEX_CLIENT "link HalfDuplexClient staticly to the core" TRUE)
option(INCLUDE_BGP4_SERVER "link Bgp4Server staticly to the core" TRUE)
option(INCLUDE_BGP4_CLIENT "link Bgp4Client staticly to the core" TRUE)
option(INCLUDE_MUX_CLIENT "link MuxClient staticly to the core" TRUE)

set(OPENSSL_CONFIGURE_VERBOSE ON)

Expand Down Expand Up @@ -355,6 +356,19 @@ target_link_directories(Waterwall PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/tunnels/cli
target_link_libraries(Waterwall Bgp4Client)
endif()

#Mux client
if (INCLUDE_MUX_CLIENT)
target_compile_definitions(Waterwall PUBLIC INCLUDE_MUX_CLIENT=1)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/tunnels/client/mux)
target_link_directories(Waterwall PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/tunnels/client/mux)
target_link_libraries(Waterwall MuxClient)
endif()







#------------------------------------------------------------------------------------------
if (BUILD_OPENSSL_GLOBALS)
Expand Down
16 changes: 16 additions & 0 deletions tunnels/client/mux/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

add_library(MuxClient STATIC
mux_client.c

)

#ww api
target_include_directories(MuxClient PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../../../ww)
target_link_libraries(MuxClient PUBLIC ww)

# add dependencies
include(${CMAKE_BINARY_DIR}/cmake/CPM.cmake)

target_include_directories(MuxClient PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../../shared/mux)

target_compile_definitions(MuxClient PRIVATE MuxClient_VERSION=0.1)
Loading

0 comments on commit 027a23a

Please sign in to comment.