关于配置文件生成的更多详情,请参考:配置文件生成 API。
我们可以使用 add_configfiles 自动生成 config.h 等配置文件。
add_configfiles
config.h
$ xmake $ xmake run