- 修改音频系统初始化逻辑,增加备用初始化参数 - 优化音乐和音效加载方式,直接加载文件而非内存 - 增加错误日志输出,便于排查问题 - 更新MingW平台构建脚本,完善依赖DLL复制
34 lines
752 B
Lua
34 lines
752 B
Lua
set_project("Frostbite2D")
|
|
set_version("1.0.0")
|
|
set_license("MIT")
|
|
|
|
-- 语言和编码设置
|
|
set_languages("c++17")
|
|
set_encodings("utf-8")
|
|
|
|
add_rules("mode.debug", "mode.release")
|
|
|
|
local host_plat = "mingw"
|
|
local target_plat = get_config("plat") or host_plat
|
|
if target_plat == "windows" then
|
|
target_plat = "mingw"
|
|
end
|
|
local supported_plats = {mingw = true, linux = true, macosx = true, switch = true}
|
|
|
|
-- 自动选择平台
|
|
if not supported_plats[target_plat] then
|
|
os.exists(1)
|
|
end
|
|
|
|
|
|
-- 引入对应平台的配置文件
|
|
local platform_config_file = "platform/" .. target_plat .. ".lua"
|
|
|
|
if os.isfile(platform_config_file) then
|
|
includes(platform_config_file)
|
|
else
|
|
print("Platform config file not found: " .. platform_config_file)
|
|
end
|
|
|
|
|