Native VBS and CMake builds of the server and every registered suite: protocol and document sync, VBS/compdb providers, stock GCC diagnostics (including in-process default profile preparation), the stock occurrence observer and hover/definition, the bounded Scheduler, C++ module graph, scan and artifact cache with real CMI production, the context-aware symbol index with schema-2 snapshot migration, navigation and guarded rename, reflection provenance with splice-origin extraction, index-backed completion and signature help, live GCC worker control with a registered DAP suite, and the Neovim and VS Code clients. VoidLibrary follows main. The private GCC 16.2.0 frontend is reproduced from the versioned patches and verified stepping reflection/template code with projected values 17/34 and 41/82.
59 lines
1.9 KiB
CMake
59 lines
1.9 KiB
CMake
include(FetchContent)
|
|
|
|
function(vls_add_void_dependency)
|
|
# Function scope prevents embedding policy from leaking into the parent cache.
|
|
set(VOID_ENABLE_TESTING OFF)
|
|
set(VOID_ENABLE_BENCHMARKS OFF)
|
|
set(BUILD_SHARED_LIBS OFF)
|
|
|
|
find_package(SQLite3 QUIET)
|
|
|
|
set(VOID_ENABLED_MODULES
|
|
Configuration
|
|
Core
|
|
Crypto
|
|
Data
|
|
Functional
|
|
Text
|
|
Time
|
|
Unicode
|
|
System
|
|
Binary
|
|
Async
|
|
Resilience
|
|
IPC
|
|
SystemAsync)
|
|
|
|
set(_vls_has_sqlite OFF)
|
|
if(SQLite3_FOUND)
|
|
list(APPEND VOID_ENABLED_MODULES Sqlite)
|
|
set(_vls_has_sqlite ON)
|
|
endif()
|
|
|
|
if(BUILD_TESTING)
|
|
list(APPEND VOID_ENABLED_MODULES Testing)
|
|
endif()
|
|
|
|
if(VLS_VOID_SOURCE_DIR)
|
|
get_filename_component(_vls_void_source "${VLS_VOID_SOURCE_DIR}" ABSOLUTE
|
|
BASE_DIR "${PROJECT_SOURCE_DIR}")
|
|
if(NOT EXISTS "${_vls_void_source}/CMakeLists.txt")
|
|
message(FATAL_ERROR "VLS_VOID_SOURCE_DIR must contain a VoidLibrary CMakeLists.txt")
|
|
endif()
|
|
message(STATUS "VLS development source override: ${_vls_void_source}; upstream ref "
|
|
"${VLS_VOID_REF} is bypassed; local source is not verified by this build")
|
|
FetchContent_Declare(voidlibrary SOURCE_DIR "${_vls_void_source}" EXCLUDE_FROM_ALL SYSTEM)
|
|
else()
|
|
message(STATUS "VLS VoidLibrary ref: ${VLS_VOID_REF} (tracks upstream; remote fetch)")
|
|
FetchContent_Declare(voidlibrary
|
|
GIT_REPOSITORY https://git.faumaray.com/Void/VoidLibrary.git
|
|
GIT_TAG "${VLS_VOID_REF}"
|
|
GIT_SHALLOW FALSE
|
|
EXCLUDE_FROM_ALL SYSTEM)
|
|
endif()
|
|
FetchContent_MakeAvailable(voidlibrary)
|
|
|
|
set(VLS_VOID_TESTING_SCRIPT "${voidlibrary_SOURCE_DIR}/cmake/VoidTesting.cmake" PARENT_SCOPE)
|
|
set(VLS_HAS_VOID_SQLITE "${_vls_has_sqlite}" PARENT_SCOPE)
|
|
endfunction()
|