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
继续阅读 »