Enforce signed licenses and seamless track handoff
Independent component release / publish (push) Failing after 11s

This commit is contained in:
faumaray committed 2026-08-02 01:47:23 +03:00
1 parent c2ec314eb9
commit a6555d4c69
15 files changed
+1367 -98

No files matched your search

+40 -1
View File
@@ -7,6 +7,17 @@ if(NOT DEFINED ECHOION_COMPONENT_VERSION)
endif()
project(EchoionCore VERSION "${ECHOION_COMPONENT_VERSION}" LANGUAGES CXX)
set(ECHOION_LICENSE_ROOT_KEY_ID "" CACHE STRING
"Pinned EchoionLicensing root key id")
set(ECHOION_LICENSE_ROOT_PUBLIC_KEY "" CACHE STRING
"Pinned base64url Ed25519 EchoionLicensing root public key")
set(ECHOION_PRODUCT_VERSION "${ECHOION_COMPONENT_VERSION}" CACHE STRING
"Echoion product version bound into licensing decisions")
set(ECHOION_BUILD_SIGNATURE "development:${ECHOION_COMPONENT_VERSION}" CACHE STRING
"Immutable signed-build identifier used by licensing revocation")
option(ECHOION_ALLOW_DEVELOPMENT_LICENSE_KEYS
"Allow opt-in trust keys from config (never enable for releases)" OFF)
if(PROJECT_IS_TOP_LEVEL)
set(BUILD_SHARED_LIBS ON CACHE BOOL
"Build shared component dependencies" FORCE)
@@ -47,7 +58,15 @@ target_compile_definitions(EchoionCore PRIVATE
ECHOION_MODULE_BUILD
ECHOION_COMPONENT_VERSION_MAJOR=${PROJECT_VERSION_MAJOR}
ECHOION_COMPONENT_VERSION_MINOR=${PROJECT_VERSION_MINOR}
ECHOION_COMPONENT_VERSION_PATCH=${PROJECT_VERSION_PATCH})
ECHOION_COMPONENT_VERSION_PATCH=${PROJECT_VERSION_PATCH}
ECHOION_LICENSE_ROOT_KEY_ID="${ECHOION_LICENSE_ROOT_KEY_ID}"
ECHOION_LICENSE_ROOT_PUBLIC_KEY="${ECHOION_LICENSE_ROOT_PUBLIC_KEY}"
ECHOION_PRODUCT_VERSION="${ECHOION_PRODUCT_VERSION}"
ECHOION_BUILD_SIGNATURE="${ECHOION_BUILD_SIGNATURE}")
if(ECHOION_ALLOW_DEVELOPMENT_LICENSE_KEYS)
target_compile_definitions(EchoionCore PRIVATE
ECHOION_ALLOW_DEVELOPMENT_LICENSE_KEYS)
endif()
add_library(Echoion::Core ALIAS EchoionCore)
@@ -177,6 +196,9 @@ target_link_libraries(EchoionCore
Void::Service
Void::ShortUrl
Void::Plugin
Void::Crypto
Void::Update
Void::Security
PRIVATE
Threads::Threads
qjs
@@ -291,6 +313,23 @@ if(BUILD_TESTS)
add_test(NAME echoion_core_config_loader_tests
COMMAND echoion_core_config_loader_tests)
add_executable(echoion_core_gapless_handoff_tests
tests/test_gapless_handoff.cpp)
target_include_directories(echoion_core_gapless_handoff_tests PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/include)
target_compile_features(echoion_core_gapless_handoff_tests PRIVATE cxx_std_23)
add_test(NAME echoion_core_gapless_handoff_tests
COMMAND echoion_core_gapless_handoff_tests)
add_executable(echoion_core_license_verifier_tests
tests/test_license_verifier.cpp)
target_include_directories(echoion_core_license_verifier_tests PRIVATE
"${CMAKE_CURRENT_SOURCE_DIR}/include")
target_link_libraries(echoion_core_license_verifier_tests PRIVATE
EchoionCore OpenSSL::Crypto)
add_test(NAME echoion_core_license_verifier_tests
COMMAND echoion_core_license_verifier_tests)
add_executable(echoion_core_extension_state_tests
tests/test_extension_state.cpp)
target_include_directories(echoion_core_extension_state_tests PRIVATE