feat(platform): build on native Windows hosts
VoidBuildSystem CI / 1 · Requirements (push) Successful in 6s
VoidBuildSystem CI / 2C · Windows native build (debug) (push) Failing after 1m32s
VoidBuildSystem CI / 2C · Windows native build (sanitizers) (push) Failing after 18s
VoidBuildSystem CI / 2C · Windows native build (relwithdebinfo) (push) Failing after 3m4s
VoidBuildSystem CI / 2B · Windows Wine build (debug) (push) Successful in 6m20s
VoidBuildSystem CI / 2A · Linux build (debug) (push) Successful in 6m32s
VoidBuildSystem CI / 3C · Windows native test (debug) (push) Failing after 1m45s
VoidBuildSystem CI / 2B · Windows Wine build (sanitizers) (push) Successful in 6m55s
VoidBuildSystem CI / 2A · Linux build (sanitizers) (push) Successful in 6m59s
VoidBuildSystem CI / 2A · Linux build (relwithdebinfo) (push) Successful in 6m59s
VoidBuildSystem CI / 3C · Windows native test (sanitizers) (push) Failing after 15s
VoidBuildSystem CI / 3C · Windows native test (relwithdebinfo) (push) Failing after 1m47s
VoidBuildSystem CI / 3A · Linux test (sanitizers) (push) Successful in 2m4s
VoidBuildSystem CI / 4B · Windows package (debug) (push) Successful in 1m6s
VoidBuildSystem CI / 4B · Windows package (sanitizers) (push) Successful in 12s
VoidBuildSystem CI / 2B · Windows Wine build (relwithdebinfo) (push) Successful in 4m2s
VoidBuildSystem CI / 4B · Windows package (relwithdebinfo) (push) Successful in 1m44s
VoidBuildSystem CI / 3B · Windows Wine test (sanitizers) (push) Successful in 3m16s
VoidBuildSystem CI / 3B · Windows Wine test (debug) (push) Successful in 3m21s
VoidBuildSystem CI / 3A · Linux test (relwithdebinfo) (push) Failing after 6m45s
VoidBuildSystem CI / 3A · Linux test (debug) (push) Failing after 6m54s
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 / 5 · Release (push) Skipped
VoidBuildSystem CI / 3B · Windows Wine test (relwithdebinfo) (push) Successful in 3m42s
VoidBuildSystem CI / 1 · Requirements (push) Successful in 6s
VoidBuildSystem CI / 2C · Windows native build (debug) (push) Failing after 1m32s
VoidBuildSystem CI / 2C · Windows native build (sanitizers) (push) Failing after 18s
VoidBuildSystem CI / 2C · Windows native build (relwithdebinfo) (push) Failing after 3m4s
VoidBuildSystem CI / 2B · Windows Wine build (debug) (push) Successful in 6m20s
VoidBuildSystem CI / 2A · Linux build (debug) (push) Successful in 6m32s
VoidBuildSystem CI / 3C · Windows native test (debug) (push) Failing after 1m45s
VoidBuildSystem CI / 2B · Windows Wine build (sanitizers) (push) Successful in 6m55s
VoidBuildSystem CI / 2A · Linux build (sanitizers) (push) Successful in 6m59s
VoidBuildSystem CI / 2A · Linux build (relwithdebinfo) (push) Successful in 6m59s
VoidBuildSystem CI / 3C · Windows native test (sanitizers) (push) Failing after 15s
VoidBuildSystem CI / 3C · Windows native test (relwithdebinfo) (push) Failing after 1m47s
VoidBuildSystem CI / 3A · Linux test (sanitizers) (push) Successful in 2m4s
VoidBuildSystem CI / 4B · Windows package (debug) (push) Successful in 1m6s
VoidBuildSystem CI / 4B · Windows package (sanitizers) (push) Successful in 12s
VoidBuildSystem CI / 2B · Windows Wine build (relwithdebinfo) (push) Successful in 4m2s
VoidBuildSystem CI / 4B · Windows package (relwithdebinfo) (push) Successful in 1m44s
VoidBuildSystem CI / 3B · Windows Wine test (sanitizers) (push) Successful in 3m16s
VoidBuildSystem CI / 3B · Windows Wine test (debug) (push) Successful in 3m21s
VoidBuildSystem CI / 3A · Linux test (relwithdebinfo) (push) Failing after 6m45s
VoidBuildSystem CI / 3A · Linux test (debug) (push) Failing after 6m54s
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 / 5 · Release (push) Skipped
VoidBuildSystem CI / 3B · Windows Wine test (relwithdebinfo) (push) Successful in 3m42s
Bump VoidLibrary to 482a3ea (Windows target support: qualified Configuration/Crypto/System/Archive, Windows DirectoryWatcher, TempDir/TempFile, process pipes) and port VBS's own host backends: - Toolchain: Windows/macOS host names and architectures without uname. - Platform FileOps: Win32 stat metadata, CreateFileW+LockFileEx file locks (Void FileLock is POSIX-only, Void/Library#66), no-op directory fsync, GetModuleFileNameW executable path, mtime via std::filesystem, and a file-copy fallback for the compdb alias. - ProcessSupervisor: Windows PATH/PATHEXT resolution and no POSIX waitpid reaping (job objects own descendants). - Snapshot: directory listing through std::filesystem on Windows. - Remote cache/registry client/CDash: curl or Winsock-based HTTP on Windows (Void::Net is not qualified there yet). - Daemon: explicit unsupported errors on Windows (named-pipe transport is Track C3); the registry service stays POSIX-only and is excluded from the Windows build. - StateStore/Sbom/Main/Graph: portable stat, time and path handling. Verified: MinGW-w64 GCC 16.2 builds vbs, vbs_describe, vbs_benchmarks and the sdk/core/v1/selfhost test executables; vbs runs under Wine and the SDK suite passes 17/17. The Linux suite stays green (8/8).
This commit is contained in:
1 parent
8768720e54
commit
e333bbe84b
23 files changed
+715
-127
No files matched your search
+25
-11
@@ -18,7 +18,7 @@ endif()
|
||||
option(VBS_BUILD_TESTS "Build declaration SDK and native engine test suites" ON)
|
||||
option(VBS_BUILD_BENCHMARKS "Build reproducible VBS benchmark harness" ON)
|
||||
set(VBS_VOID_SOURCE_DIR "" CACHE PATH "Development-only VoidLibrary source override (bypasses pin)")
|
||||
set(VBS_VOID_REVISION "0002e74a7da94a756f55a4a5574d20b77736c185")
|
||||
set(VBS_VOID_REVISION "482a3ea46b0050ec07f5063fd319e66180b4d2e4")
|
||||
include(cmake/VoidDependency.cmake)
|
||||
vbs_add_void_dependency()
|
||||
|
||||
@@ -90,6 +90,10 @@ target_link_libraries(VoidBuild_Core PUBLIC
|
||||
Void::Archive
|
||||
Void::Log)
|
||||
target_compile_definitions(VoidBuild_Core PUBLIC VBS_HAS_VOID_CRYPTO=1 VBS_HAS_VOID_ARCHIVE=1)
|
||||
if(WIN32)
|
||||
# Winsock for the registry client and the native Windows HTTP fallbacks.
|
||||
target_link_libraries(VoidBuild_Core PUBLIC ws2_32)
|
||||
endif()
|
||||
if(VBS_HAS_VOID_SQLITE)
|
||||
target_link_libraries(VoidBuild_Core PUBLIC Void::Sqlite)
|
||||
target_compile_definitions(VoidBuild_Core PUBLIC VBS_HAS_VOID_SQLITE=1)
|
||||
@@ -99,12 +103,16 @@ if(VBS_HAS_VOID_NET)
|
||||
target_compile_definitions(VoidBuild_Core PUBLIC VBS_HAS_VOID_NET=1)
|
||||
endif()
|
||||
|
||||
add_library(VoidBuild_Registry STATIC
|
||||
registry/service/HttpServer.cpp
|
||||
registry/service/RegistryService.cpp)
|
||||
add_library(Void::BuildRegistry ALIAS VoidBuild_Registry)
|
||||
target_include_directories(VoidBuild_Registry PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/registry/include")
|
||||
target_link_libraries(VoidBuild_Registry PUBLIC Void::BuildCore)
|
||||
if(NOT WIN32)
|
||||
# The registry service uses a POSIX socket loop; its Windows port (named pipes
|
||||
# or Winsock) is Track C3 work.
|
||||
add_library(VoidBuild_Registry STATIC
|
||||
registry/service/HttpServer.cpp
|
||||
registry/service/RegistryService.cpp)
|
||||
add_library(Void::BuildRegistry ALIAS VoidBuild_Registry)
|
||||
target_include_directories(VoidBuild_Registry PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/registry/include")
|
||||
target_link_libraries(VoidBuild_Registry PUBLIC Void::BuildCore)
|
||||
endif()
|
||||
|
||||
configure_file(cmake/BootstrapConfig.hpp.in generated/Void/Build/BootstrapConfig.hpp @ONLY)
|
||||
|
||||
@@ -112,9 +120,11 @@ add_executable(vbs src/Main.cpp)
|
||||
target_include_directories(vbs PRIVATE "${CMAKE_CURRENT_BINARY_DIR}/generated")
|
||||
target_link_libraries(vbs PRIVATE Void::BuildCore)
|
||||
|
||||
add_executable(vbs-registry registry/cli/Main.cpp)
|
||||
target_include_directories(vbs-registry PRIVATE "${CMAKE_CURRENT_BINARY_DIR}/generated")
|
||||
target_link_libraries(vbs-registry PRIVATE Void::BuildRegistry)
|
||||
if(NOT WIN32)
|
||||
add_executable(vbs-registry registry/cli/Main.cpp)
|
||||
target_include_directories(vbs-registry PRIVATE "${CMAKE_CURRENT_BINARY_DIR}/generated")
|
||||
target_link_libraries(vbs-registry PRIVATE Void::BuildRegistry)
|
||||
endif()
|
||||
|
||||
add_library(VoidBuild_ExampleDescription STATIC
|
||||
build.cpp
|
||||
@@ -127,8 +137,12 @@ add_executable(vbs_describe src/Describe.cpp)
|
||||
target_include_directories(vbs_describe PRIVATE "${CMAKE_CURRENT_BINARY_DIR}/generated")
|
||||
target_link_libraries(vbs_describe PRIVATE VoidBuild_ExampleDescription Void::Configuration)
|
||||
|
||||
set_target_properties(vbs vbs-registry vbs_describe PROPERTIES
|
||||
set_target_properties(vbs vbs_describe PROPERTIES
|
||||
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/bin")
|
||||
if(TARGET vbs-registry)
|
||||
set_target_properties(vbs-registry PROPERTIES
|
||||
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/bin")
|
||||
endif()
|
||||
|
||||
if(VBS_BUILD_BENCHMARKS)
|
||||
add_executable(vbs_benchmarks benchmarks/EngineBenchmarks.cpp)
|
||||
|
||||
Reference in new issue
Block a user