From 37be901c97e89f6ebb24e87933ddf57cd57371d5 Mon Sep 17 00:00:00 2001 From: Amlal Date: Tue, 22 Oct 2024 20:49:53 +0200 Subject: IMP: Refactor of the source code. Signed-off-by: Amlal --- tests/example.cc | 8 ++++++++ tests/example.cxx | 8 -------- tests/posix.json | 18 +++++------------- tests/win64.json | 26 +++++++++----------------- 4 files changed, 22 insertions(+), 38 deletions(-) create mode 100644 tests/example.cc delete mode 100644 tests/example.cxx (limited to 'tests') diff --git a/tests/example.cc b/tests/example.cc new file mode 100644 index 0000000..dfef2e4 --- /dev/null +++ b/tests/example.cc @@ -0,0 +1,8 @@ +#include +#include + +int main(int argc, char** argv) +{ + std::cout << "hello, world!\n"; + return 0; +} diff --git a/tests/example.cxx b/tests/example.cxx deleted file mode 100644 index dfef2e4..0000000 --- a/tests/example.cxx +++ /dev/null @@ -1,8 +0,0 @@ -#include -#include - -int main(int argc, char** argv) -{ - std::cout << "hello, world!\n"; - return 0; -} diff --git a/tests/posix.json b/tests/posix.json index 805e5c1..944b320 100644 --- a/tests/posix.json +++ b/tests/posix.json @@ -1,18 +1,10 @@ { "compiler_path": "g++", "compiler_std": "c++20", - "headers_path": [ - "inc" - ], - "sources_path": [ - "example.cxx" - ], + "headers_path": ["inc"], + "sources_path": ["example.cc"], "output_name": "example.elf", - "compiler_flags": [ - "-fPIC" - ], - "cpp_macros": [ - "FOO_MACRO" - ], + "compiler_flags": ["-fPIC"], + "cpp_macros": ["FOO_MACRO"], "run_after_build": true -} \ No newline at end of file +} diff --git a/tests/win64.json b/tests/win64.json index f074c43..cba2af7 100644 --- a/tests/win64.json +++ b/tests/win64.json @@ -1,18 +1,10 @@ { - "compiler_path": "x86_64-w64-mingw32-g++", - "compiler_std": "c++20", - "headers_path": [ - "inc" - ], - "sources_path": [ - "example.cxx" - ], - "output_name": "example.elf", - "compiler_flags": [ - "-fPIC" - ], - "cpp_macros": [ - "FOO_MACRO" - ], - "run_after_build": true - } \ No newline at end of file + "compiler_path": "x86_64-w64-mingw32-g++", + "compiler_std": "c++20", + "headers_path": ["inc"], + "sources_path": ["example.cc"], + "output_name": "example.elf", + "compiler_flags": ["-fPIC"], + "cpp_macros": ["FOO_MACRO"], + "run_after_build": true +} -- cgit v1.2.3