Signed-off-by: faumaray <faumaray@gmail.com>
This commit is contained in:
faumaray committed 2026-07-11 16:30:05 +03:00
1 parent c9a52b73ac
commit 2d1d03db1e
22 files changed
+2040 -102

No files matched your search

+10 -9
View File
@@ -103,7 +103,7 @@ set_property(GLOBAL PROPERTY USE_FOLDERS ON)
# Options
option(BUILD_API "Build EchoionApi" ON)
option(BUILD_CORE "Build EchoionCore" ON)
option(BUILD_PLUGIN "Build EchoionPlugin" 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)
@@ -112,6 +112,10 @@ 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)
@@ -127,6 +131,10 @@ if(BUILD_API)
add_subdirectory(EchoionApi)
endif()
if(BUILD_PLUGIN OR BUILD_STANDALONE)
add_subdirectory(EchoionHost)
endif()
if(BUILD_CORE)
add_subdirectory(EchoionCore)
endif()
@@ -151,8 +159,7 @@ if(BUILD_PROTOCOL OR BUILD_STANDALONE)
add_subdirectory(EchoionProtocol)
endif()
# EchoionStandalone: reuses the plugin's CoreLoader, so it needs EchoionPlugin's
# sources present. It links the Api + EchoionProtocol and loads Core at runtime.
# EchoionStandalone links the host-common loader and native protocol client.
if(BUILD_STANDALONE)
add_subdirectory(EchoionStandalone)
endif()
@@ -161,12 +168,6 @@ if(BUILD_DESKTOP)
add_subdirectory(EchoionDesktop)
endif()
# Tests
if(BUILD_TESTS)
enable_testing()
add_subdirectory(tests)
endif()
# Packaging configuration
include(CPack)
set(CPACK_PACKAGE_NAME "Echoion")