feat: complete Track A zero-CMake self-hosting, full VOID_TEST migration, and bit-identical Stage 2/3 bootstrap
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 2s
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 2s
This commit is contained in:
1 parent
fe0d1a6483
commit
5e1916dc5c
23 files changed
+945
-141
No files matched your search
@@ -7,12 +7,9 @@ void build(Void::Build::Project &project) {
|
||||
library
|
||||
.git("https://git.faumaray.com/Void/VoidLibrary.git",
|
||||
Void::Build::Commit{"3e254055e081a104f08df68dde39711bc7813518"})
|
||||
.cmake(
|
||||
{{"VOID_ENABLED_MODULES", "Configuration;Text;Unicode;Async;Algorithms;Crypto;Archive"},
|
||||
{"VOID_ENABLE_TESTING", false},
|
||||
{"VOID_ENABLE_BENCHMARKS", false},
|
||||
{"VOID_FETCH_SQLITE3", false},
|
||||
{"BUILD_SHARED_LIBS", false}});
|
||||
.native_builder({{"VOID_ENABLED_MODULES",
|
||||
"Configuration;Text;Unicode;Async;Algorithms;Crypto;Archive;Testing"},
|
||||
{"BUILD_SHARED_LIBS", false}});
|
||||
|
||||
auto sdk = project.static_library("VoidBuildSdk");
|
||||
sdk.cxx_standard(Void::Build::CxxStandard::Cxx26)
|
||||
@@ -82,7 +79,7 @@ void build(Void::Build::Project &project) {
|
||||
ctx.architecture +
|
||||
"\";\n"
|
||||
"inline constexpr std::string_view source_dir = \"$PROJECT_ROOT\";\n"
|
||||
"inline constexpr std::string_view binary_dir = \"$BUILD_DIR\";\n"
|
||||
"inline constexpr std::string_view binary_dir = \"\";\n"
|
||||
"inline constexpr std::string_view sdk_include_dir = \"$PROJECT_ROOT/include\";\n"
|
||||
"inline constexpr std::string_view sdk_source_dir = \"$PROJECT_ROOT/src\";\n"
|
||||
"}\n"
|
||||
@@ -122,4 +119,60 @@ void build(Void::Build::Project &project) {
|
||||
.sources({"tests/SelfBuildSmoke.cpp"})
|
||||
.link(core);
|
||||
BuildSupport::compiler_warnings(smoke_test, ctx);
|
||||
|
||||
auto benchmarks = project.executable("vbs_benchmarks");
|
||||
benchmarks.cxx_standard(Void::Build::CxxStandard::Cxx26)
|
||||
.sources({"benchmarks/EngineBenchmarks.cpp"})
|
||||
.depends_on(bootstrap_cfg)
|
||||
.include_directory("$GEN/include", Void::Build::Visibility::Private)
|
||||
.link(core);
|
||||
BuildSupport::compiler_warnings(benchmarks, ctx);
|
||||
|
||||
auto sdk_tests = project.test("vbs_sdk_tests");
|
||||
sdk_tests.cxx_standard(Void::Build::CxxStandard::Cxx26)
|
||||
.sources({"tests/SdkDeclarations.cpp", "tests/ExampleContexts.cpp", "build.cpp",
|
||||
"build.profiles.cpp", "build-support/Defaults.cpp"})
|
||||
.link(sdk)
|
||||
.link(library.target("Void::Testing"))
|
||||
.link(library.target("Void::Configuration"));
|
||||
BuildSupport::compiler_warnings(sdk_tests, ctx);
|
||||
|
||||
auto core_tests = project.test("vbs_core_tests");
|
||||
core_tests.cxx_standard(Void::Build::CxxStandard::Cxx26)
|
||||
.sources({"tests/CoreEngineTests.cpp"})
|
||||
.depends_on(bootstrap_cfg)
|
||||
.include_directory("$GEN/include", Void::Build::Visibility::Private)
|
||||
.link(core)
|
||||
.link(library.target("Void::Testing"));
|
||||
BuildSupport::compiler_warnings(core_tests, ctx);
|
||||
|
||||
auto v1_tests = project.test("vbs_v1_tests");
|
||||
v1_tests.cxx_standard(Void::Build::CxxStandard::Cxx26)
|
||||
.sources({"tests/FullV1Tests.cpp"})
|
||||
.depends_on(bootstrap_cfg)
|
||||
.depends_on(cli)
|
||||
.include_directory("$GEN/include", Void::Build::Visibility::Private)
|
||||
.link(core)
|
||||
.link(library.target("Void::Testing"));
|
||||
BuildSupport::compiler_warnings(v1_tests, ctx);
|
||||
|
||||
auto reg_tests = project.test("vbs_registry_tests");
|
||||
reg_tests.cxx_standard(Void::Build::CxxStandard::Cxx26)
|
||||
.sources({"tests/RegistryTests.cpp"})
|
||||
.depends_on(bootstrap_cfg)
|
||||
.depends_on(cli)
|
||||
.include_directory("$GEN/include", Void::Build::Visibility::Private)
|
||||
.link(registry_lib)
|
||||
.link(library.target("Void::Testing"));
|
||||
BuildSupport::compiler_warnings(reg_tests, ctx);
|
||||
|
||||
auto selfhost_tests = project.test("vbs_selfhost_tests");
|
||||
selfhost_tests.cxx_standard(Void::Build::CxxStandard::Cxx26)
|
||||
.sources({"tests/SelfHostTests.cpp"})
|
||||
.depends_on(bootstrap_cfg)
|
||||
.depends_on(cli)
|
||||
.include_directory("$GEN/include", Void::Build::Visibility::Private)
|
||||
.link(core)
|
||||
.link(library.target("Void::Testing"));
|
||||
BuildSupport::compiler_warnings(selfhost_tests, ctx);
|
||||
}
|
||||
Reference in new issue
Block a user