Commit Graph
4 Commits
Author SHA1 Message Date
faumaray 1b1947340f build: make dependency detection and pthread flags target-aware
- Skip host system roots and CPATH/LIBRARY_PATH when cross-compiling, and
  search the target sysroot instead.
- Guard -pthread on Windows for Net and the System/Async/CryptoAsync/
  SecurityAsync targets (MinGW has no -lpthread).
- Compare the target OS case-insensitively.

Fixes #67
Fixes #68
2026-12-06 14:06:16 +03:00
faumaray bd5488b15b Windows: qualify Configuration, Crypto and System
- Allowlist Configuration, Crypto and System for the Windows target.
- System: link winmm for the Win32 audio backend; include windows.h before
  mmsystem.h.
- Tests: add a whole-file // @requires-posix gate (CMake path and the VBS
  build.cpp) and mark the POSIX-only System suites; skip helper-based cases
  on Windows; make setenv/unsetenv and getpid portable.
- The POSIX process helper is no longer built on Windows.

Cross-built with x86_64-w64-mingw32 GCC 16.2: all modules and VoidTests.exe
link. Linux System+Testing suite still passes (477 tests, 474 passed).

Refs #65
2026-12-05 15:57:12 +03:00
faumaray 128829bc42 docs: add MIT LICENSE and ship it on install
Add the MIT license text (matching the other Void projects), state it in
the README, and install it to share/licenses/VoidLibrary from build.cpp.

Closes #63
2026-12-05 12:05:10 +03:00
faumaray f98204935e Build: first-class VoidBuildSystem description for all modules
Add build.cpp declaring every Void module with its internal dependency
closure, external dependencies detected from the environment or
conventional prefixes, optional backends (OpenSSL/LibArchive/Lua), the
Void::Testing suites, helper executables and plugin fixtures, plus install
rules for libraries and headers. Track build.cpp/build.profiles.cpp past
the build* ignore rule.

Verified with vbs on GCC 16: all 57 modules build; the test binary
discovers 1,949 cases (1,924 pass, 23 skip) with two subreaper-related
process-group tests failing only under vbs test supervision; install
produces a 332-file relocatable prefix and an installer archive.

Refs #61
2026-12-05 10:03:28 +03:00