diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-11-16 10:25:44 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-11-16 10:27:00 +0100 |
| commit | 67f502af0e8194d4dfd9010c297e51b40a85e7fc (patch) | |
| tree | 81a27a594e5cfac79bcb05c6c28fe314d68e613c /examples | |
| parent | 1350d6381de4c2b2c56a69f0dc20ce54fab7be8b (diff) | |
feat: wip TOML support for NeBuild TOML files.
fix: JSON: fix broken JSON implementation.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/example_03_hello_world_toml/hello_world.cc | 7 | ||||
| -rw-r--r-- | examples/example_03_hello_world_toml/posix.toml | 8 | ||||
| -rw-r--r-- | examples/example_03_hello_world_toml/win64.toml | 8 |
3 files changed, 23 insertions, 0 deletions
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 <iostream> +#include <string> + +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 |
