Add Windows and Switch build support

This commit is contained in:
2026-06-08 22:33:06 +08:00
parent 7a925c3736
commit 5525343656
11 changed files with 610 additions and 70 deletions
+23 -6
View File
@@ -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