xmake v2.1.5 released, lots of new feature updates
原文链接 https://waruqi.github.io/2017/08/05/update-v2.1.5/
注:以下为加速网络访问所做的原文缓存,经过重新格式化,可能存在格式方面的问题,或偶有遗漏信息,请以原文为准。
This release introduces a number of new feature updates, as detailed in Some new features of xmake v2.1.5.
If you want to known more usage, please see online documents。
New features
- #83: Add
add_csnippet
andadd_cxxsnippet
intooption
for detecting some compiler features. - #83: Add user extension modules to detect program, libraries and files.
- Add
find_program
,find_file
,find_library
,find_tool
andfind_package
module interfaces. - Add
net.*
anddevel.*
extension modules - Add
val()
api to get the value of builtin-variable, .e.gval("host")
,val("env PATH")
,val("shell echo hello")
andval("reg HKEY_LOCAL_MACHINE\\XX;Value")
- Support to compile the microsoft resource file (.rc)
- Add
has_flags
,features
andhas_features
for detect module interfaces. - Add
option.on_check
,option.after_check
andoption.before_check
api - Add
target.on_load
api - #132: Add
add_frameworkdirs
api - Add
lib.detect.has_xxx
andlib.detect.find_xxx
apis. - Add
add_moduledirs
api - Add
includes
api instead ofadd_subdirs
andadd_subfiles
- #133: Improve the project plugin to generate
compile_commands.json
by runxmake project -k compile_commands
- Add
set_pcheader
andset_pcxxheader
to support the precompiled header, support gcc, clang, msvc - Add
xmake f -p cross
platform and support the custom platform
Changes
- #87: Add includes and links from target deps automatically
- Improve
import
to load user extension and global modules - #93: Improve
xmake lua
to run a single line command - Improve to print gcc error and warning info
- Improve
print
interface to dump table - #111: Add
--root
common option to allow run xmake command as root - #113: Privilege manage when running as root, store the root privilege and degrade.
- Improve
xxx_script
inxmake.lua
to support pattern match, .e.gon_build("iphoneos|arm*", function (target) end)
- improve builtin-variables to support to get the value envirnoment and registry
- Improve to detect vstudio sdk and cross toolchains envirnoment
- #71: Improve to detect compiler and linker from env vars
- Improve the option detection (cache and multi-jobs) and increase 70% speed
- #129: Check link deps and cache the target file
- Support
*.asm
source files for vs201x project plugin - Mark
add_bindings
andadd_rbindings
as deprecated - Optimize
xmake rebuild
speed on windows - Move
core.project.task
tocore.base.task
- Move
echo
andapp2ipa
plugins to xmake-plugins repo. - Add new api
set_config_header("config.h", {prefix = ""})
instead ofset_config_h
andset_config_h_prefix
Bugs fixed
- Fix
try-catch-finally
- Fix interpreter bug when parsing multi-level subdirs
- #115: Fix the path problem of the install script
get.sh
- Fix cache bug for import()