Skip to content

Commit

Permalink
fix: 当metas.json不包含目标平台的库信息时,打印提示信息
Browse files Browse the repository at this point in the history
  • Loading branch information
wendal committed Dec 4, 2024
1 parent b8207ce commit ec74bc9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions csdk.lua
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,10 @@ function description_common()
-- print("libs_plat:",libs_plat)
local libs_plat_dir = csdk_root.."/PLAT/libs/"..libs_plat
local metas_table = json.loadfile(csdk_root.."/PLAT/libs/metas.json")
if metas_table["libs"][libs_plat] == nil then
print("当前metas.json不支持该配置项 " .. libs_plat)
return
end
local plat_sha1 = metas_table["libs"][libs_plat]["sha1"]

local libs_prebuild_dir = csdk_root.."/PLAT/prebuild/"
Expand Down

0 comments on commit ec74bc9

Please sign in to comment.