From 67f502af0e8194d4dfd9010c297e51b40a85e7fc Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sun, 16 Nov 2025 10:25:44 +0100 Subject: feat: wip TOML support for NeBuild TOML files. fix: JSON: fix broken JSON implementation. Signed-off-by: Amlal El Mahrouss --- examples/example_03_hello_world_toml/hello_world.cc | 7 +++++++ examples/example_03_hello_world_toml/posix.toml | 8 ++++++++ examples/example_03_hello_world_toml/win64.toml | 8 ++++++++ 3 files changed, 23 insertions(+) create mode 100644 examples/example_03_hello_world_toml/hello_world.cc create mode 100644 examples/example_03_hello_world_toml/posix.toml create mode 100644 examples/example_03_hello_world_toml/win64.toml (limited to 'examples') diff --git a/examples/example_03_hello_world_toml/hello_world.cc b/examples/example_03_hello_world_toml/hello_world.cc new file mode 100644 index 0000000..ae47ce8 --- /dev/null +++ b/examples/example_03_hello_world_toml/hello_world.cc @@ -0,0 +1,7 @@ +#include +#include + +int main(int argc, char** argv) { + std::cout << "hello, world!\n"; + return 0; +} diff --git a/examples/example_03_hello_world_toml/posix.toml b/examples/example_03_hello_world_toml/posix.toml new file mode 100644 index 0000000..4f71f7d --- /dev/null +++ b/examples/example_03_hello_world_toml/posix.toml @@ -0,0 +1,8 @@ +compiler_path = "g++" +compiler_std = "c++20" +headers_path = [ "lib" ] +sources_path = [ "hello_world.cc" ] +output_name = "hello_world.elf" +compiler_flags = [ "-fPIC" ] +cpp_macros = [ "FOO_MACRO" ] +run_after_build = true diff --git a/examples/example_03_hello_world_toml/win64.toml b/examples/example_03_hello_world_toml/win64.toml new file mode 100644 index 0000000..c8001a4 --- /dev/null +++ b/examples/example_03_hello_world_toml/win64.toml @@ -0,0 +1,8 @@ +compiler_path = "x86_64-w64-mingw32-g++" +compiler_std = "c++20" +headers_path = [ "lib" ] +sources_path = [ "hello_world.cc" ] +output_name = "hello_world.elf" +compiler_flags = [ "-fPIC" ] +cpp_macros = [ "FOO_MACRO" ] +run_after_build = true -- cgit v1.2.3