diff options
| author | dmlunar <root@lunar.sh> | 2026-01-23 15:21:03 +0200 |
|---|---|---|
| committer | dmlunar <root@lunar.sh> | 2026-01-23 19:54:44 +0200 |
| commit | 21aca7177fe0174d41cc2abd9103910659884321 (patch) | |
| tree | 5762a3c813b9f251747f42760c1faefeebd535ae /premake5.lua | |
| download | openresolve-21aca7177fe0174d41cc2abd9103910659884321.tar.gz openresolve-21aca7177fe0174d41cc2abd9103910659884321.zip | |
openalias: initial commit
Initial commit.
Diffstat (limited to 'premake5.lua')
| -rw-r--r-- | premake5.lua | 30 |
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"
|
