summaryrefslogtreecommitdiffhomepage
path: root/targets
diff options
context:
space:
mode:
Diffstat (limited to 'targets')
-rw-r--r--targets/osx-dylib.json10
-rw-r--r--targets/osx.json10
-rw-r--r--targets/posix-dylib.json10
-rw-r--r--targets/posix.json10
-rw-r--r--targets/win64.json10
5 files changed, 50 insertions, 0 deletions
diff --git a/targets/osx-dylib.json b/targets/osx-dylib.json
new file mode 100644
index 0000000..d5b87bc
--- /dev/null
+++ b/targets/osx-dylib.json
@@ -0,0 +1,10 @@
+{
+ "compiler_path": "clang++",
+ "compiler_std": "c++20",
+ "headers_path": ["include", "vendor"],
+ "sources_path": ["src/lib/*.cc"],
+ "output_name": "libNeBuildKit.dylib",
+ "compiler_flags": ["-fPIC", "-shared"],
+ "cpp_macros": ["NEBUILD_DYLIB", "NEBUILD_OSX"],
+ "run_after_build": false
+}
diff --git a/targets/osx.json b/targets/osx.json
new file mode 100644
index 0000000..bdcab49
--- /dev/null
+++ b/targets/osx.json
@@ -0,0 +1,10 @@
+{
+ "compiler_path": "clang++",
+ "compiler_std": "c++20",
+ "headers_path": ["include", "vendor"],
+ "sources_path": ["src/lib/*.cc", "src/cli/*.cc"],
+ "output_name": "nebuild",
+ "compiler_flags": ["-fPIC"],
+ "cpp_macros": ["NEBUILD_POSIX", "NEBUILD_OSX"],
+ "run_after_build": false
+}
diff --git a/targets/posix-dylib.json b/targets/posix-dylib.json
new file mode 100644
index 0000000..3326b3e
--- /dev/null
+++ b/targets/posix-dylib.json
@@ -0,0 +1,10 @@
+{
+ "compiler_path": "clang++",
+ "compiler_std": "c++20",
+ "headers_path": ["include/", "vendor"],
+ "sources_path": ["src/lib/*.cc"],
+ "output_name": "libNeBuildKit.so",
+ "compiler_flags": ["-fPIC", "-shared"],
+ "cpp_macros": ["NEBUILD_POSIX", "NEBUILD_DYLIB"],
+ "run_after_build": false
+}
diff --git a/targets/posix.json b/targets/posix.json
new file mode 100644
index 0000000..679296c
--- /dev/null
+++ b/targets/posix.json
@@ -0,0 +1,10 @@
+{
+ "compiler_path": "clang++",
+ "compiler_std": "c++20",
+ "headers_path": ["include/", "vendor"],
+ "sources_path": ["src/lib/*.cc", "src/cli/*.cc"],
+ "output_name": "nebuild",
+ "compiler_flags": ["-fPIC"],
+ "cpp_macros": ["NEBUILD_POSIX"],
+ "run_after_build": false
+}
diff --git a/targets/win64.json b/targets/win64.json
new file mode 100644
index 0000000..75c025a
--- /dev/null
+++ b/targets/win64.json
@@ -0,0 +1,10 @@
+{
+ "compiler_path": "x86_64-w64-mingw32-g++.exe",
+ "compiler_std": "c++20",
+ "headers_path": ["include", "vendor"],
+ "sources_path": ["src/lib/*.cc", "src/cli/*.cc"],
+ "output_name": "nebuild.exe",
+ "compiler_flags": ["-fPIC"],
+ "cpp_macros": ["NEBUILD_WINDOWS"],
+ "run_after_build": false
+}