zengine_test/engine/xmake/api_define.lua

9 lines
364 B
Lua
Raw Normal View History

2024-08-01 22:22:01 +08:00
function main(target, name)
local api = string.upper(name) .. "_API"
if target:kind() == "static" then
target:add("defines", api .. "=", api .. "_VAL", {public = false})
else
target:add("defines", api.."=__declspec(dllimport)", {interface=true})
target:add("defines", api.."=__declspec(dllexport)", {public=false})
end
end