docs: add expansion roadmap and workflow baseline
This commit is contained in:
1 parent
f1f9ba375b
commit
faa8a5198d
65 files changed
+9292
No files matched your search
@@ -0,0 +1,127 @@
|
||||
# Build, packaging, and distribution plan
|
||||
|
||||
Status: future build improvements and validation. Current behavior is grounded in
|
||||
[CMakeLists.txt](../../CMakeLists.txt), [Module.cmake](../../cmake/Module.cmake),
|
||||
[Dependencies.cmake](../../cmake/Dependencies.cmake), and
|
||||
[VoidConfig.cmake.in](../../cmake/VoidConfig.cmake.in).
|
||||
|
||||
## Current build contract
|
||||
|
||||
The project requires CMake 4.0+, C++26 and compiler support for the features each selected
|
||||
module uses. GCC 16.2.0 and CMake 4.4.4 were observed locally. GNU builds at version 16+
|
||||
receive reflection flags through current build logic. That is not evidence that every
|
||||
other compiler/version supports all reflection consumers.
|
||||
|
||||
Modules are discovered from `src/`; source-bearing modules honor `BUILD_SHARED_LIBS`,
|
||||
while Testing is static and header-only modules are interface targets. Selection uses
|
||||
`VOID_ENABLED_MODULES`; an empty value selects all. Installed consumers use `find_package`
|
||||
and `Void::<Module>` targets. The current package also loads the test scanner helper.
|
||||
|
||||
Current dependencies include Boost (with a pinned 1.84 fallback), OpenSSL, libsodium,
|
||||
SQLite, LibArchive and Threads. Shared compiled modules hide many implementation
|
||||
dependencies from consumers; static links still need their transitive closure. Fetched
|
||||
shared runtime dependencies have packaging obligations independent of development headers.
|
||||
|
||||
## Target configuration profiles
|
||||
|
||||
| Profile | Purpose | Required result |
|
||||
| --- | --- | --- |
|
||||
| Foundation-minimal | Select individual foundation targets without optional packages | Configure, compile public headers, link and run a tiny installed/embedded consumer |
|
||||
| Module-focused | Select a complete module and only required dependencies | No accidental discovery/link of unrelated engines or runtime services |
|
||||
| Full-shared | All supported modules, shared runtime libraries | Full tests and relocatable installed consumers succeed |
|
||||
| Full-static | Selected/full static modules with explicit transitive libraries | Static closure is complete; tests do not wrongly disable required dependencies |
|
||||
| Embedded | Parent project uses add_subdirectory | Parent linkage/cache policy retained; testing/dependency discovery opt-in is predictable |
|
||||
| Hardened diagnostics | Owned-code warnings-as-errors and supported sanitizers | Dependency warnings isolated appropriately; owned-code diagnostics remain strict |
|
||||
| Offline reproducible | Populated verified sources and declared toolchain | No opportunistic downloads; missing prerequisites fail clearly |
|
||||
|
||||
Profiles are validation concepts, not existing preset names. New CMake presets/manifests
|
||||
are PROPOSED until their implementation task creates them.
|
||||
|
||||
## Dependency and toolchain policy
|
||||
|
||||
- Preserve component-aware resolution and pinned/hash-verified fetched sources. Give
|
||||
users explicit system-package, prepopulated-source, and permitted-fetch paths.
|
||||
- Keep external include diagnostics classified as external/system headers where
|
||||
appropriate; retain warnings-as-errors for owned source. This is the initial repair
|
||||
direction for the Boost/C++26 warning failure, followed by a separately reviewed
|
||||
dependency-version update if desired. Do not disable warning classes globally.
|
||||
- Probe required language/library features and provide actionable errors before large
|
||||
builds. Publish verified versions separately from anticipated support.
|
||||
- Test minimal dependencies independently from the all-module build. Source-level
|
||||
includes must match exported target obligations and installed header sets.
|
||||
- Resolve static consumers' external dependencies explicitly. Shared runtime packaging
|
||||
must not reference the build tree or assume undeclared system libraries are present.
|
||||
- Keep reflection/generation deterministic and scoped to declared inputs. Generated
|
||||
code/tables have reproducible commands, pinned inputs, and one owner per wave.
|
||||
|
||||
The current offline configure needs an existing Boost source tree when the system Boost
|
||||
probe fails. That requirement is documented in [VALIDATION.md](VALIDATION.md), not hidden
|
||||
behind an assumption that an offline first configure can fetch missing sources.
|
||||
|
||||
## CURRENT interfaces and portable command templates
|
||||
|
||||
These templates use existing options, but configurations beyond the recorded baseline
|
||||
have not been executed in this documentation task. Prerequisites are the selected
|
||||
compiler/features and the selected modules' development dependencies.
|
||||
|
||||
```sh
|
||||
# TEMPLATE: ordinary build using available system dependencies or permitted fetch.
|
||||
cmake -S . -B build-roadmap-check -G Ninja \
|
||||
-DCMAKE_CXX_COMPILER=g++ -DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||
-DVOID_ENABLE_TESTING=ON
|
||||
cmake --build build-roadmap-check --parallel 4
|
||||
ctest --test-dir build-roadmap-check --output-on-failure
|
||||
|
||||
# TEMPLATE: minimal foundation library configuration; consumer test is separate.
|
||||
cmake -S . -B build-core-check -G Ninja \
|
||||
-DVOID_ENABLED_MODULES=Core -DVOID_ENABLE_TESTING=OFF
|
||||
|
||||
# TEMPLATE: supported sanitizer configuration; confirm toolchain support first.
|
||||
cmake -S . -B build-sanitize-check -G Ninja \
|
||||
-DVOID_ENABLE_ASAN=ON -DVOID_ENABLE_UBSAN=ON \
|
||||
-DVOID_ENABLE_TESTING=ON -DCMAKE_BUILD_TYPE=Debug
|
||||
```
|
||||
|
||||
Do not reuse a user's existing build directory with incompatible options. Selection plus
|
||||
testing currently needs an audit: internal tests and test-support targets assume broader
|
||||
module availability. A successful `VOID_ENABLE_TESTING=OFF` configure does not prove that
|
||||
selected-module tests or installed consumers work.
|
||||
|
||||
## Packaging and public distribution
|
||||
|
||||
Preserve independent component installs/consumers, shared and static support, correct
|
||||
runtime search paths, and deterministic export metadata. Add relocatability checks that
|
||||
move an installation away from its build tree and execute consumers with only declared
|
||||
runtime dependencies. Verify public headers and adapter targets separately.
|
||||
|
||||
The existing [Gitea release workflow](../../.gitea/workflows/release.yml) builds/tests,
|
||||
installs, packages and publishes on its configured release path, using pinned external
|
||||
release tooling. This documentation does not execute that workflow. Changes must preserve
|
||||
immutable inputs, version/tag agreement, reproducible archive metadata and artifact
|
||||
verification. Do not copy credentials or other repository contents into plans.
|
||||
|
||||
Distribution additions include documented source consumption, installed SDK/runtime
|
||||
consumption, package manifests where justified, artifact checksums, dependency inventory,
|
||||
and version/support metadata. A public release also needs a project-owner decision on
|
||||
licensing if no tracked license exists; this roadmap does not choose or grant a license.
|
||||
|
||||
## CI matrix and tasks
|
||||
|
||||
| ID | Planned work | Acceptance |
|
||||
| --- | --- | --- |
|
||||
| X-BUILD-01 | Module/header/dependency closure audit and metadata repair | All minimal consumers use only declared dependencies; bridge targets isolated. |
|
||||
| X-BUILD-02 | Selected-module test construction and fixtures | Missing unrelated modules do not break configure/build; requested unsupported combinations fail clearly. |
|
||||
| X-BUILD-03 | Toolchain/dependency feature probes and diagnostic policy | Verified compiler matrix; external warnings do not require weakening owned-code warnings. |
|
||||
| X-BUILD-04 | Shared/static/embedded/installed/relocated consumer matrix | Every declared profile has compile/link/runtime evidence. |
|
||||
| X-BUILD-05 | Reproducible preset/dependency and offline workflows | Pinned inputs and explicit prerequisites; no lockfile/source mutation during verification. |
|
||||
| X-BUILD-06 | Release artifacts, package metadata and documentation | Reproducibility and dependency closure checked before separately authorized publication. |
|
||||
|
||||
Current CI is GCC/Linux-focused. Add other compilers/platforms as their required feature
|
||||
probes and implementations pass; do not claim parity from a matrix entry that skips the
|
||||
relevant modules. Start with Linux x86_64 baseline and explicit portability checks, then
|
||||
expand architecture/OS coverage through capability-specific tasks.
|
||||
|
||||
Validation includes configuration failures, missing package diagnostics, install/export
|
||||
consistency, relocation, static closure, scanner integration and parent-project cache
|
||||
preservation. Existing installed-consumer success is useful evidence but does not cover
|
||||
all proposed profiles. Release and remote side effects require separate authorization.
|
||||
Reference in new issue
Block a user