content
{:toc}
注:此处为镜像文档,最新在线文档请看:http://xmake.io/#/zh/plugins
插件开发
简介
XMake完全支持插件模式,我们可以很方便的扩展实现自己的插件,并且xmake也提供了一些内建的使用插件。
我们可以执行下 xmake -h 看下当前支持的插件:
Plugins:
l, lua Run the lua script.
m, macro Run the given macro.
doxygen 继续阅读 »
xmake v2.0 has supported the plugin module and we can develop ourself plugin module conveniently.
We can run command xmake -h to look over some builtin plugins of xmake
Plugins:
l, lua Run the lua script.
m, macro Run the given macro.继续阅读 »
xmake provides the grammar: $(varname) for supporting builtin variable.
.e.g
lua
add_cxflags("-I$(buildir)")
It will translate this variable to the real value when building.
-I$(buildir) => -I./build
We can also use these variables in the custom scripts.
lua
target("test")
after_build(target)
print继续阅读 »