1 parent
2d1d03db1e
commit
ef3139ca64
60 files changed
+1774
-4412
No files matched your search
+26
-14
@@ -26,6 +26,18 @@ if(ECHOION_USE_CCACHE AND NOT CMAKE_CXX_COMPILER_LAUNCHER)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# Decide linkage before configuring CPM dependencies. Protocol and VoidLibrary
|
||||
# must be part of the validated echoiond artifact in production, otherwise a
|
||||
# release could pair a new daemon with an old/incompatible shared library.
|
||||
option(BUILD_SHARED_LIBS "Build shared libraries" ON)
|
||||
option(ECHOION_STATIC_LINK "Statically link dependencies for standalone distribution" ON)
|
||||
if(ECHOION_STATIC_LINK)
|
||||
set(CMAKE_EXE_LINKER_FLAGS "-static-libgcc -static-libstdc++" CACHE STRING "" FORCE)
|
||||
set(BUILD_SHARED_LIBS OFF)
|
||||
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
||||
message(STATUS "Static linking enabled - building standalone distribution")
|
||||
endif()
|
||||
|
||||
# Include CPM
|
||||
file(
|
||||
DOWNLOAD
|
||||
@@ -56,6 +68,18 @@ CPMAddPackage(
|
||||
"VOID_ENABLE_TESTING OFF"
|
||||
)
|
||||
|
||||
# Modern native TeamSpeak client library. Local development can point at the
|
||||
# adjacent history-preserving extraction with:
|
||||
# -DCPM_VoidTeamspeak_SOURCE=$HOME/Project/Personal/VoidTeamspeak
|
||||
CPMAddPackage(
|
||||
NAME VoidTeamspeak
|
||||
GIT_REPOSITORY http://git.faumaray.ru/void/voidteamspeak.git
|
||||
GIT_TAG main
|
||||
OPTIONS
|
||||
"VOID_TEAMSPEAK_BUILD_TESTS OFF"
|
||||
"VOID_ENABLE_TESTING OFF"
|
||||
)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 26)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
set(CMAKE_CXX_EXTENSIONS OFF)
|
||||
@@ -106,23 +130,13 @@ option(BUILD_CORE "Build EchoionCore" ON)
|
||||
option(BUILD_PLUGIN "Build archived EchoionPlugin compatibility target" OFF)
|
||||
option(BUILD_DESKTOP "Build EchoionDesktop" ON)
|
||||
option(BUILD_WEB "Build EchoionWeb (browser interface + sync-watch)" ON)
|
||||
option(BUILD_PROTOCOL "Build EchoionProtocol (native TeamSpeak UDP client)" ON)
|
||||
option(BUILD_STANDALONE "Build EchoionStandalone (daemon; no TeamSpeak client)" ON)
|
||||
option(BUILD_TESTS "Build tests" OFF)
|
||||
option(BUILD_SHARED_LIBS "Build shared libraries" ON)
|
||||
option(ECHOION_STATIC_LINK "Statically link dependencies for standalone distribution" ON)
|
||||
|
||||
if(BUILD_TESTS)
|
||||
enable_testing()
|
||||
endif()
|
||||
|
||||
# Static linking configuration
|
||||
if(ECHOION_STATIC_LINK)
|
||||
set(CMAKE_EXE_LINKER_FLAGS "-static-libgcc -static-libstdc++" CACHE STRING "" FORCE)
|
||||
set(BUILD_SHARED_LIBS OFF)
|
||||
message(STATUS "Static linking enabled - building standalone distribution")
|
||||
endif()
|
||||
|
||||
# Find packages
|
||||
find_package(Threads REQUIRED)
|
||||
|
||||
@@ -154,10 +168,8 @@ if(BUILD_PLUGIN)
|
||||
add_subdirectory(EchoionPlugin)
|
||||
endif()
|
||||
|
||||
# EchoionProtocol: standalone TeamSpeak UDP client library (no Echoion deps).
|
||||
if(BUILD_PROTOCOL OR BUILD_STANDALONE)
|
||||
add_subdirectory(EchoionProtocol)
|
||||
endif()
|
||||
# VoidTeamspeak is resolved above as a regular reusable package. The legacy
|
||||
# in-tree EchoionProtocol directory is intentionally no longer built.
|
||||
|
||||
# EchoionStandalone links the host-common loader and native protocol client.
|
||||
if(BUILD_STANDALONE)
|
||||
|
||||
Reference in new issue
Block a user