Release: use independent component repositories
Container CI / release-build (push) Successful in 16m22s
Nightly release / publish-nightly (push) Successful in 16m6s

This commit is contained in:
faumaray committed 2026-07-28 21:24:30 +03:00
1 parent 8c69efc56f
commit f78004e822
26 files changed
+571 -49

No files matched your search

+18 -3
View File
@@ -4,6 +4,20 @@ project(Echoion VERSION 1.0.7 LANGUAGES CXX)
include(GNUInstallDirs)
include(cmake/DependencyLock.cmake)
# The root product version is the only manually edited version. Every
# component project consumes this value when orchestrated by Echoion; their
# standalone fallback is intentionally 0.0.0 and is never used for a product
# release.
if(DEFINED ECHOION_RELEASE_VERSION AND
NOT ECHOION_RELEASE_VERSION STREQUAL "")
set(ECHOION_COMPONENT_VERSION "${ECHOION_RELEASE_VERSION}")
string(REGEX REPLACE "[-+].*$" ""
ECHOION_PRODUCT_VERSION "${ECHOION_RELEASE_VERSION}")
else()
set(ECHOION_PRODUCT_VERSION "${PROJECT_VERSION}")
set(ECHOION_COMPONENT_VERSION "${PROJECT_VERSION}")
endif()
# Default to a Release build when the developer/CI did not pick a config.
# Without this, single-config generators leave CMAKE_BUILD_TYPE empty and GCC
# falls back to -O0, so "production" builds shipped unoptimised. Set this before
@@ -82,6 +96,7 @@ file(
EXPECTED_HASH SHA256=78ba32abdf798bc616bab7c73aac32a17bbd7b06ad9e26a6add69de8f3ae4791
)
include(${CMAKE_CURRENT_BINARY_DIR}/cmake/CPM.cmake)
include(cmake/EchoionComponents.cmake)
# Include PackageProject.cmake
CPMAddPackage(
@@ -183,7 +198,7 @@ find_package(Threads REQUIRED)
# Add subdirectories
if(BUILD_API)
add_subdirectory(EchoionApi)
echoion_add_component(EchoionApi)
endif()
if(BUILD_FIRST_PARTY_PLUGINS)
@@ -195,7 +210,7 @@ if(BUILD_STANDALONE)
endif()
if(BUILD_CORE)
add_subdirectory(EchoionCore)
echoion_add_component(EchoionCore)
endif()
# EchoionWeb is added after Core so it can reuse the single Boost header
@@ -226,7 +241,7 @@ if(BUILD_STANDALONE)
endif()
if(BUILD_DESKTOP)
add_subdirectory(EchoionDesktop)
echoion_add_component(EchoionDesktop)
endif()
# The release install component is deliberately runtime-only. Nested projects