zengine/engine/xmake/rule_plugin/xmake.lua

8 lines
283 B
Lua
Raw Normal View History

2024-07-20 18:04:19 +08:00
rule("engine.plugin")
set_extensions(".h")
on_load(function (target)
2024-07-27 14:24:46 +08:00
if not is_mode("debug") then return end
2024-07-20 18:04:19 +08:00
import("make_plugin")
local file = target:extraconf("rules", "engine.plugin", "file")
make_plugin(target, file or "module.h")
end)