change windows backend to sdl2
This commit is contained in:
@@ -4,19 +4,19 @@ add_rules("mode.debug", "mode.release")
|
||||
|
||||
target("Tower Defense")
|
||||
set_kind("binary")
|
||||
add_includedirs("include")
|
||||
add_includedirs("include", "src/render/gui")
|
||||
add_files("src/*.cpp", "src/*/*.cpp", "src/*/*/*.cpp", "src/*/*/*/*.cpp")
|
||||
add_cxflags("-pthread")
|
||||
|
||||
set_languages("c++14")
|
||||
|
||||
add_links("glbinding", "z")
|
||||
add_links("glbinding", "z", "SDL2")
|
||||
|
||||
if is_os("linux") then
|
||||
add_links("glfw", "GL", "pthread")
|
||||
add_links("GL", "pthread")
|
||||
end
|
||||
if is_os("windows") then
|
||||
add_links("glfw3", "opengl32", "ws2_32", "mingw32", "gdi32", "imm32")
|
||||
add_links("opengl32", "ws2_32", "mingw32", "gdi32", "imm32")
|
||||
end
|
||||
|
||||
if is_mode("release") then
|
||||
|
||||
Reference in New Issue
Block a user