diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-11-17 10:06:26 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-17 10:06:26 +0100 |
| commit | 76cf9156127bf7f082294a0c7e79f86059fe69ab (patch) | |
| tree | 5070f4695b591780f60b728cc14e624c5a31b5d8 /examples | |
| parent | a8e72e63ee1921d6a85b801d2cdeff3f4872d468 (diff) | |
| parent | c782117221f0b8f0bb018df673f935c1791fee32 (diff) | |
Merge pull request #5 from nekernel-org/dev
release: NeBuild v0.0.7
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 |
