making WEB

Signed-off-by: faumaray <faumaray@gmail.com>
This commit is contained in:
faumaray committed 2026-07-11 00:47:52 +03:00
1 parent 7a18682b0e
commit 24fecc90f3
107 files changed
+14935 -1919

No files matched your search

+15 -2
View File
@@ -59,7 +59,8 @@ CPMAddPackage(
set(CMAKE_CXX_STANDARD 26)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_CXX_MODULE_MAP_FORMAT "gcc")
set(CXX_SCAN_FOR_MODULES OFF)
# GCC 16+ exposes experimental C++26 reflection (P2996) via -freflection.
# Void's header-only INTERFACE modules (Data/Functional/Core) do not propagate
# this flag, so apply it tree-wide for every echoion target that may include
@@ -104,9 +105,10 @@ option(BUILD_API "Build EchoionApi" ON)
option(BUILD_CORE "Build EchoionCore" ON)
option(BUILD_PLUGIN "Build EchoionPlugin" ON)
option(BUILD_DESKTOP "Build EchoionDesktop" ON)
option(BUILD_WEB "Build EchoionWeb (browser interface + sync-watch)" 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" OFF)
option(ECHOION_STATIC_LINK "Statically link dependencies for standalone distribution" ON)
# Static linking configuration
if(ECHOION_STATIC_LINK)
@@ -127,6 +129,17 @@ if(BUILD_CORE)
add_subdirectory(EchoionCore)
endif()
# EchoionWeb is added after Core so it can reuse the single Boost header
# targets Core discovers. Core owns and starts the web server, so link them
# here (both targets now exist) and flag Core so the wiring compiles in.
if(BUILD_WEB AND BUILD_CORE)
add_subdirectory(EchoionWeb)
if(TARGET EchoionCore AND TARGET EchoionWeb)
target_link_libraries(EchoionCore PRIVATE EchoionWeb)
target_compile_definitions(EchoionCore PRIVATE ECHOION_WITH_WEB)
endif()
endif()
if(BUILD_PLUGIN)
add_subdirectory(EchoionPlugin)
endif()