content
{:toc}
Note: This documents is only a mirror, if you want to see newest documents please goto: http://xmake.io/#/plugins
Plugin Development
Introduction
XMake supports the plugin module and we can develop ourself plugin module conveniently.
We can run command xmake -h to look over some builtin plugins of xm继续阅读 »
Typically, you only need to execute the following command for compiling project.
bash
xmake
xmake will probe your host environment and target platform automaticly.
The default mode is release and xmake will compile all targets.
You can compile only one given target which name is 'test' for executing the follo继续阅读 »
xrepo is a cross-platform C/C++ package manager based on Xmake.
Github
Official Document
It is based on the runtime provided by xmake, but it is a complete and independent package management program. Compared with package managers such as vcpkg/homebrew, xrepo can provide C/C++ packages for more platforms and architec继续阅读 »
xmake will automatically detect the system environment and create the most appropriate configuration to compile project when building a program
Usually we only need to run:
bash
$ xmake
And it will not re-generate configuration if the project description has not changed.
But we can also modify configuration manual继续阅读 »
xmake在xmake.lua中提供了 $(varname) 的语法,来支持内置变量的获取,例如:
lua
add_cxflags("-I$(buildir)")
它将会在在实际编译的时候,将内置的 buildir 变量转换为实际的构建输出目录:-I./build
并且这些变量在自定义脚本中,也是可以支持的,例如:
lua
target("test")
after_build(target)
print("build ok for $(plat)!")
end
这将会在编译完后,输出:
lua
build ok for macosx!
这些内置变量,大部分都是通过配置的时候,缓存的继续阅读 »