Files
Build-System/cmake/VoidDependency.cmake
T
faumaray 8e3fffd636
VoidBuildSystem CI / 1 · Requirements (push) Successful in 6s
VoidBuildSystem CI / 2B · Windows Wine build (debug) (push) Successful in 4m17s
VoidBuildSystem CI / 2A · Linux build (debug) (push) Successful in 4m25s
VoidBuildSystem CI / 2B · Windows Wine build (sanitizers) (push) Successful in 5m11s
VoidBuildSystem CI / 2A · Linux build (sanitizers) (push) Successful in 5m25s
VoidBuildSystem CI / 2A · Linux build (relwithdebinfo) (push) Successful in 6m12s
VoidBuildSystem CI / 2C · Windows native build (debug) (push) Successful in 6m20s
VoidBuildSystem CI / 2C · Windows native build (sanitizers) (push) Failing after 22s
VoidBuildSystem CI / 2B · Windows Wine build (relwithdebinfo) (push) Successful in 3m35s
VoidBuildSystem CI / 3A · Linux test (sanitizers) (push) Successful in 1m38s
VoidBuildSystem CI / 3B · Windows Wine test (relwithdebinfo) (push) Successful in 2m42s
VoidBuildSystem CI / 3B · Windows Wine test (sanitizers) (push) Successful in 2m45s
VoidBuildSystem CI / 3B · Windows Wine test (debug) (push) Successful in 2m55s
VoidBuildSystem CI / 2C · Windows native build (relwithdebinfo) (push) Successful in 4m10s
VoidBuildSystem CI / 3C · Windows native test (debug) (push) Failing after 55s
VoidBuildSystem CI / 3C · Windows native test (sanitizers) (push) Failing after 15s
VoidBuildSystem CI / 3A · Linux test (relwithdebinfo) (push) Failing after 6m29s
VoidBuildSystem CI / 3A · Linux test (debug) (push) Failing after 6m34s
VoidBuildSystem CI / 4A · Linux package (debug) (push) Skipped
VoidBuildSystem CI / 4A · Linux package (relwithdebinfo) (push) Skipped
VoidBuildSystem CI / 4A · Linux package (sanitizers) (push) Skipped
VoidBuildSystem CI / 3C · Windows native test (relwithdebinfo) (push) Failing after 48s
VoidBuildSystem CI / 4B · Windows package (debug) (push) Successful in 1m54s
VoidBuildSystem CI / 4B · Windows package (sanitizers) (push) Successful in 16s
VoidBuildSystem CI / 4B · Windows package (relwithdebinfo) (push) Successful in 4m0s
VoidBuildSystem CI / 5 · Release (push) Skipped
chore(deps): bump VoidLibrary to de1fdcda
The new pin vendors SQLite for every platform (Sqlite is now qualified
on Windows), implements FileLock, symlink swap, reflink copy and
timestamps on Windows (Void/Library#66), so the local Win32 lock and
mtime workarounds go back to the VoidLibrary primitives, and VBS enables
Void::Sqlite unconditionally since Void resolves its own backend.

Verified: MinGW-w64 Windows build of all targets, vbs under Wine, SDK
suite 17/17 under Wine, and the Linux suite 8/8.
2026-12-06 02:30:49 +03:00

52 lines
2.3 KiB
CMake

include(FetchContent)
function(vbs_add_void_dependency)
# Function scope keeps dependency policy out of the embedding project's variables/cache.
set(VOID_ENABLE_TESTING OFF)
set(VOID_ENABLE_BENCHMARKS OFF)
set(BUILD_SHARED_LIBS OFF)
set(VOID_FETCH_SQLITE3 OFF)
set(VOID_ENABLED_MODULES Configuration Text Unicode Async Algorithms Crypto Archive Log)
if(VBS_BUILD_TESTS)
list(APPEND VOID_ENABLED_MODULES Testing)
endif()
# Crypto (VL-007) and Archive (VL-006) work with zero external dependencies.
# Sqlite: Void resolves its own backend (system SQLite3, the vendored
# amalgamation, or its FetchContent fallback), so it is always available.
list(APPEND VOID_ENABLED_MODULES Sqlite)
set(VBS_HAS_VOID_SQLITE ON PARENT_SCOPE)
# Void::Net (Track E4) needs Boost url/beast/asio and OpenSSL; enable it only when the
# environment actually provides both, so minimal shells keep the pure-POSIX transport.
find_package(Boost CONFIG QUIET COMPONENTS url)
find_package(OpenSSL QUIET)
find_package(Threads QUIET)
if(Boost_FOUND AND OpenSSL_FOUND AND Threads_FOUND)
list(APPEND VOID_ENABLED_MODULES Net)
set(VBS_HAS_VOID_NET ON PARENT_SCOPE)
else()
set(VBS_HAS_VOID_NET OFF PARENT_SCOPE)
endif()
if(VBS_VOID_SOURCE_DIR)
get_filename_component(_vbs_void_source "${VBS_VOID_SOURCE_DIR}" ABSOLUTE
BASE_DIR "${CMAKE_CURRENT_SOURCE_DIR}")
if(NOT IS_DIRECTORY "${_vbs_void_source}" OR
NOT EXISTS "${_vbs_void_source}/CMakeLists.txt")
message(FATAL_ERROR "VBS_VOID_SOURCE_DIR must contain a VoidLibrary CMakeLists.txt")
endif()
message(STATUS "VBS development source override: ${_vbs_void_source}; "
"the pinned VoidLibrary revision ${VBS_VOID_REVISION} is bypassed")
FetchContent_Declare(voidlibrary SOURCE_DIR "${_vbs_void_source}")
else()
FetchContent_Declare(voidlibrary
GIT_REPOSITORY https://git.faumaray.com/Void/VoidLibrary.git
GIT_TAG "${VBS_VOID_REVISION}"
GIT_SHALLOW FALSE)
endif()
FetchContent_MakeAvailable(voidlibrary)
set(VBS_VOID_TESTING_SCRIPT "${voidlibrary_SOURCE_DIR}/cmake/VoidTesting.cmake" PARENT_SCOPE)
set(VBS_VOID_RESOLVED_SOURCE_DIR "${voidlibrary_SOURCE_DIR}" PARENT_SCOPE)
endfunction()