summaryrefslogtreecommitdiff
path: root/premake5.lua
diff options
context:
space:
mode:
Diffstat (limited to 'premake5.lua')
-rw-r--r--premake5.lua30
1 files changed, 30 insertions, 0 deletions
diff --git a/premake5.lua b/premake5.lua
new file mode 100644
index 0000000..f42393f
--- /dev/null
+++ b/premake5.lua
@@ -0,0 +1,30 @@
+-- premake5.lua
+workspace "openresolve"
+ architecture "x64"
+ configurations { "Debug", "Release" }
+ startproject "openresolve"
+
+project "openresolve"
+ kind "ConsoleApp"
+ language "C"
+ targetdir "bin/%{cfg.buildcfg}"
+ files { "openresolve.c" }
+ staticruntime "On"
+
+ filter "system:windows"
+ defines {"_WIN32", "_CRT_SECURE_NO_WARNINGS"}
+ links { "dnsapi" }
+ systemversion "latest"
+
+ filter "system:linux"
+ defines { "_POSIX_C_SOURCE=200112L" }
+ links { "resolv:static" }
+ buildoptions { "-Wall", "-Wextra" }
+
+ filter "configurations:Debug"
+ defines { "DEBUG" }
+ symbols "On"
+
+ filter "configurations:Release"
+ defines { "NDEBUG" }
+ optimize "On"