Add Windows and Switch build support
This commit is contained in:
@@ -7,11 +7,28 @@ set_encodings("utf-8")
|
||||
|
||||
add_rules("mode.debug", "mode.release")
|
||||
|
||||
add_requires("libsdl2", {configs = {shared = true}})
|
||||
add_requires("libsdl2_image", {configs = {shared = true}})
|
||||
add_requires("libsdl2_mixer", {configs = {shared = true}})
|
||||
add_requires("libsdl2_ttf", {configs = {shared = true}})
|
||||
add_requires("glm")
|
||||
add_requires("zlib")
|
||||
if not is_plat("switch") then
|
||||
add_requires("libsdl2", {configs = {shared = true}})
|
||||
add_requires("libsdl2_image", {configs = {shared = true}})
|
||||
add_requires("libsdl2_mixer", {configs = {shared = true}})
|
||||
add_requires("libsdl2_ttf", {configs = {shared = true}})
|
||||
add_requires("glm")
|
||||
add_requires("zlib")
|
||||
end
|
||||
|
||||
includes("engine.lua")
|
||||
|
||||
if is_plat("windows") then
|
||||
target("Frostbite2DWindowsSmoke")
|
||||
set_kind("binary")
|
||||
add_files("examples/windows_smoke/main.cpp")
|
||||
add_deps("Frostbite2D")
|
||||
add_packages("libsdl2")
|
||||
add_packages("libsdl2_image")
|
||||
add_packages("libsdl2_mixer")
|
||||
add_packages("libsdl2_ttf")
|
||||
add_packages("glm")
|
||||
add_packages("zlib")
|
||||
add_syslinks("imm32")
|
||||
target_end()
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user