Skip to content

Commit

Permalink
fix:luatos LUAT_USE_TTS_8K LUAT_USE_TLS_DISABLE判断
Browse files Browse the repository at this point in the history
  • Loading branch information
Dozingfiretruck committed Jul 8, 2024
1 parent 14aa3e5 commit 32495ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions project/luatos/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,14 @@ target(project_name,function()
target:add("defines","AP_FLASH_LOAD_SIZE=0x"..script_addr.."-"..ap_load_add,{public = true})
target:add("defines","AP_PKGIMG_LIMIT_SIZE=0x"..script_addr.."-"..ap_load_add,{public = true})
target:add("linkgroups","tts_res", {whole = true,public = true})
local LUAT_USE_TTS_8K = conf_data:find("\r#define LUAT_USE_TTS_8K") or conf_data:find("\n#define LUAT_USE_TTS_8K")
local LUAT_USE_TTS_8K = conf_data:find("#define LUAT_USE_TTS_8K")
if LUAT_USE_TTS_8K then
target:add("linkgroups","aisound50_8K", {whole = true,public = true})
else
target:add("linkgroups","aisound50_16K", {whole = true,public = true})
end
target:add("linkgroups","image_decoder_0", {whole = true,public = true})
local LUAT_USE_TLS_DISABLE = conf_data:find("\r#define LUAT_USE_TLS_DISABLE") or conf_data:find("\n#define LUAT_USE_TLS_DISABLE")
local LUAT_USE_TLS_DISABLE = conf_data:find("#define LUAT_USE_TLS_DISABLE")
if not LUAT_USE_TLS_DISABLE then
-- mbedtls
target:add("defines", "LUAT_USE_TLS",{public = true})
Expand Down

0 comments on commit 32495ae

Please sign in to comment.