diff options
Diffstat (limited to 'examples/example_01')
| -rw-r--r-- | examples/example_01/example.cc | 8 | ||||
| -rw-r--r-- | examples/example_01/posix.json | 10 | ||||
| -rw-r--r-- | examples/example_01/win64.json | 10 |
3 files changed, 28 insertions, 0 deletions
diff --git a/examples/example_01/example.cc b/examples/example_01/example.cc new file mode 100644 index 0000000..dfef2e4 --- /dev/null +++ b/examples/example_01/example.cc @@ -0,0 +1,8 @@ +#include <string> +#include <iostream> + +int main(int argc, char** argv) +{ + std::cout << "hello, world!\n"; + return 0; +} diff --git a/examples/example_01/posix.json b/examples/example_01/posix.json new file mode 100644 index 0000000..17a6022 --- /dev/null +++ b/examples/example_01/posix.json @@ -0,0 +1,10 @@ +{ + "compiler_path": "g++", + "compiler_std": "c++20", + "headers_path": ["lib"], + "sources_path": ["example.cc"], + "output_name": "example.elf", + "compiler_flags": ["-fPIC"], + "cpp_macros": ["FOO_MACRO"], + "run_after_build": true +} diff --git a/examples/example_01/win64.json b/examples/example_01/win64.json new file mode 100644 index 0000000..1712d8b --- /dev/null +++ b/examples/example_01/win64.json @@ -0,0 +1,10 @@ +{ + "compiler_path": "x86_64-w64-mingw32-g++", + "compiler_std": "c++20", + "headers_path": ["lib"], + "sources_path": ["example.cc"], + "output_name": "example.elf", + "compiler_flags": ["-fPIC"], + "cpp_macros": ["FOO_MACRO"], + "run_after_build": true +} |
