reworked build config, now works on windows
This commit is contained in:
parent
9d34f2cbeb
commit
e479ecf0ad
|
@ -1,12 +1,14 @@
|
|||
workspace "Fencer-Template"
|
||||
architecture "x64"
|
||||
configurations { "Debug", "Release", "Dist" }
|
||||
language "C"
|
||||
startproject "Game"
|
||||
|
||||
filter "system:windows"
|
||||
defines { "SDL_MAIN_HANDLED" }
|
||||
buildoptions { "/EHsc", "/Zc:preprocessor" }
|
||||
|
||||
OutputDir = "%{cfg.system}-%{cfg.architecture}/${cfg.buildcfg}"
|
||||
OutputDir = "%{cfg.system}-%{cfg.architecture}/%{cfg.buildcfg}"
|
||||
|
||||
|
||||
group "Core"
|
||||
|
|
|
@ -6,7 +6,7 @@ project "Engine-Core"
|
|||
|
||||
defines { "VMATH_SDL" }
|
||||
|
||||
files { "src/**.c" }
|
||||
files { "src/**.c", "src/**.h" }
|
||||
includedirs { "src/" }
|
||||
|
||||
targetdir ( "../bin/" .. OutputDir .. "/%{prj.name}" )
|
||||
|
|
|
@ -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…
Reference in a new issue