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_csnippetandadd_cxxsnippetintooptionfor detecting some compiler features. - #83: Add user extension modules to detect program, libraries and files.
- Add
find_program,find_file,find_library,find_toolandfind_packagemodule 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,featuresandhas_featuresfor detect module interfaces. - Add
option.on_check,option.after_checkandoption.before_checkapi - Add
target.on_loadapi - #132: Add
add_frameworkdirsapi - Add
lib.detect.has_xxxandlib.detect.find_xxxapis. - Add
add_moduledirsapi - Add
includesapi instead ofadd_subdirsandadd_subfiles - #133: Improve the project plugin to generate
compile_commands.jsonby runxmake project -k compile_commands - Add
set_pcheaderandset_pcxxheaderto support the precompiled header, support gcc, clang, msvc - Add
xmake f -p crossplatform and support the custom platform
Changes
- #87: Add includes and links from target deps automatically
- Improve
importto load user extension and global modules - #93: Improve
xmake luato run a single line command - Improve to print gcc error and warning info
- Improve
printinterface to dump table - #111: Add
--rootcommon option to allow run xmake command as root - #113: Privilege manage when running as root, store the root privilege and degrade.
- Improve
xxx_scriptinxmake.luato 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
*.asmsource files for vs201x project plugin - Mark
add_bindingsandadd_rbindingsas deprecated - Optimize
xmake rebuildspeed on windows - Move
core.project.tasktocore.base.task - Move
echoandapp2ipaplugins to xmake-plugins repo. - Add new api
set_config_header("config.h", {prefix = ""})instead ofset_config_handset_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()