reworked build config, now works on windows
This commit is contained in:
parent
9d34f2cbeb
commit
e479ecf0ad
3 changed files with 13 additions and 6 deletions
|
|
@ -1,12 +1,12 @@
|
|||
project "Game"
|
||||
kind "ConsoleApp"
|
||||
kind "WindowedApp"
|
||||
language "C"
|
||||
staticruntime "Off"
|
||||
targetdir "bin/%{cfg.buildcfg}"
|
||||
|
||||
defines { "VMATH_SDL" }
|
||||
|
||||
files { "src/*.c" }
|
||||
files { "src/**.c", "src/**.h" }
|
||||
includedirs {
|
||||
"src/",
|
||||
"../core/src"
|
||||
|
|
@ -15,11 +15,16 @@ project "Game"
|
|||
"Engine-Core"
|
||||
}
|
||||
|
||||
links { "SDL2", "SDL2_image", "SDL2_ttf", "m", "cjson"}
|
||||
|
||||
targetdir ("../bin/" .. OutputDir .. "/%{prj.name}" )
|
||||
objdir ("../intermediate/" .. OutputDir .. "/%{prj.name}" )
|
||||
|
||||
filter "system:linux"
|
||||
links { "SDL2", "SDL2_image", "SDL2_ttf", "m", "cjson"}
|
||||
|
||||
filter "system:windows"
|
||||
linkoptions { "/ENTRY:mainCRTStartup" }
|
||||
links { "../SDL2.dll", "../SDL2_image.dll" }
|
||||
|
||||
filter "configurations:Debug"
|
||||
defines { "DEBUG" }
|
||||
runtime "Debug"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue