aboutsummaryrefslogtreecommitdiff
path: root/premake5.lua
diff options
context:
space:
mode:
Diffstat (limited to 'premake5.lua')
-rw-r--r--premake5.lua37
1 files changed, 32 insertions, 5 deletions
diff --git a/premake5.lua b/premake5.lua
index 2f8dc36..11c92ff 100644
--- a/premake5.lua
+++ b/premake5.lua
@@ -90,7 +90,6 @@ project "GLFW"
filter "system:linux"
pic "On"
-
systemversion "latest"
files
@@ -178,7 +177,21 @@ project "GLFW"
defines
{
"_GLFW_WIN32",
- "_CRT_SECURE_NO_WARNINGS"
+ "_CRT_SECURE_NO_WARNINGS",
+ }
+
+ links
+ {
+ "gdi32",
+ "user32",
+ "kernel32",
+ "shell32",
+ "msvcrt"
+ }
+
+ linkoptions
+ {
+ "/NODEFAULTLIB:library"
}
filter "configurations:Debug"
@@ -204,7 +217,7 @@ group ""
project "Donut"
kind "ConsoleApp"
- language "C"
+ language "C++"
staticruntime "on"
targetdir ("bin/" .. outputdir .. "/%{prj.name}")
@@ -218,7 +231,7 @@ project "Donut"
files
{
"src/**.h",
- "src/**.c"
+ "src/**.cpp"
}
includedirs
@@ -232,7 +245,6 @@ project "Donut"
{
"GLFW",
"GLAD",
- "opengl32.lib"
}
filter "system:windows"
@@ -242,6 +254,21 @@ project "Donut"
"GLFW_INCLUDE_NONE"
}
+ links
+ {
+ "gdi32",
+ "user32",
+ "kernel32",
+ "shell32",
+ "opengl32",
+ "msvcrt"
+ }
+
+ linkoptions
+ {
+ "/NODEFAULTLIB:library"
+ }
+
filter "configurations:Debug"
defines "DONUT_DEBUG"
runtime "Debug"