此版本带来了大量新特性更新,具体详见:xmake v2.1.5版本新特性介绍。
更多使用说明,请阅读:文档手册。
add_csnippet,add_cxxsnippet到option来检测一些编译器特性find_program, find_file, find_library, find_tool和find_package 等模块接口net.*和devel.*扩展模块val()接口去获取内置变量,例如:val("host"), val("env PATH"), val("shell echo hello") and val("reg HKEY_LOCAL_MACHINE\XX;Value")has_flags, features和has_features等探测模块接口option.on_check, option.after_check 和 option.before_check 接口target.on_load接口add_frameworkdirs接口lib.detect.has_xxx和lib.detect.find_xxx接口add_moduledirs接口在工程中定义和加载扩展模块includes接口替换add_subdirs和add_subfilesxmake project -k compile_commands来导出compile_commands.jsonset_pcheader和set_pcxxheader去支持跨编译器预编译头文件,支持gcc, clang和msvcxmake f -p cross平台用于交叉编译,并且支持自定义平台名includes 和 linksimport接口,去加载用户扩展模块xmake lua,支持运行单行命令和模块print接口去更好些显示table数据--root通用选项去临时支持作为root运行xxx_script工程描述api,支持多平台模式选择, 例如:on_build("iphoneos|arm*", function (target) end)*.asm文件的支持add_bindings和add_rbindings为废弃接口xmake rebuild在windows上的构建速度core.project.task模块迁移至core.base.taskecho 和 app2ipa 插件迁移到 xmake-plugins 仓库set_config_header("config.h", {prefix = ""}) 代替 set_config_h 和 set_config_h_prefixtry-catch-finallyget.sh的路径问题import()导入接口的缓存问题