代码拉取完成,页面将自动刷新
同步操作将从 tboox/xmake 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
has_config
, get_config
, and is_config
apisset_config
to set the default configuration$xmake --try
to try building project using third-party buildsystemset_enabled(false)
to disable targetadd_requires("tbox ~1.6.1")
add_files()
on windowsdetect.sdks.find_qt
lib.detect.find_package
to support vcpkg$ xmake f --menu
set_tools
and add_tools
apis to change the toolchains for special targetmode.debug
, mode.release
, mode.profile
and mode.check
is_mode
, is_arch
and is_plat
builtin apis in the custom scriptsqt.console
, qt.application
rulesos.files
and os.dirs
apimake clean
for generating makefile plugindel_files()
api to delete files in the files listrule()
, add_rules()
api to implement the custom build rule and improve add_files("src/*.md", {rule = "markdown"})
os.filesize()
apicore.ui.xxx
cui componentsxmake f --menu
to configure project with a menu configuration interfaceset_values
api to option()
xmake f --cc=gcc@ccmips.exe
add_cxflags
.., force to set flags without auto checking: add_cxflags("-DTEST", {force = true})
add_files
, add force block to force to set flags without auto checking: add_files("src/*.c", {force = {cxflags = "-DTEST"}})
os.nuldev()
for gcc on mingwar.exe
xmake f --cross
erroros.cd
to the windows root path bugXMAKE_LOGFILE
environment variable to dump the output info to file.gitignore
file when creating new projectsset_config_header
to support set_config_header("config", {version = "2.1.8", build = "%Y%m%d%H%M"})
add_imports
to bulk import modules for the target, option and package scriptxmake -y/--yes
to confirm the user input by defaultxmake l package.manager.install xxx
to install software packagexmake macro ..
to run the last commandcprint()
@loader_path
and $ORIGIN
for add_rpathdirs()
set_version("x.x.x", {build = "%Y%m%d%H%M"})
and add build versionCOLORTERM=nocolor
to disable color outputand_bindings
and add_rbindings
apilib.detect.find_program
interface-w|--warning
arguments to enable the warnings outputset_pcxxheader
bugos.tmpdir()
in fakerootos.getenv
charset bug on windowsadd_files
to configure the compile option of the given filestarget.add_deps
and add inherit config, .e.g add_deps("test", {inherit = false})
tbox.pkg
/Zi
instead of /ZI
for msvctarget:add
and option:add
bugadd_csnippet
and add_cxxsnippet
into option
for detecting some compiler features.find_program
, find_file
, find_library
, find_tool
and find_package
module interfaces.net.*
and devel.*
extension modulesval()
api to get the value of builtin-variable, .e.g val("host")
, val("env PATH")
, val("shell echo hello")
and val("reg HKEY_LOCAL_MACHINE\\XX;Value")
has_flags
, features
and has_features
for detect module interfaces.option.on_check
, option.after_check
and option.before_check
apitarget.on_load
apiadd_frameworkdirs
apilib.detect.has_xxx
and lib.detect.find_xxx
apis.add_moduledirs
apiincludes
api instead of add_subdirs
and add_subfiles
compile_commands.json
by run xmake project -k compile_commands
set_pcheader
and set_pcxxheader
to support the precompiled header, support gcc, clang, msvcxmake f -p cross
platform and support the custom platformimport
to load user extension and global modulesxmake lua
to run a single line commandprint
interface to dump table--root
common option to allow run xmake command as rootxxx_script
in xmake.lua
to support pattern match, .e.g on_build("iphoneos|arm*", function (target) end)
*.asm
source files for vs201x project pluginadd_bindings
and add_rbindings
as deprecatedxmake rebuild
speed on windowscore.project.task
to core.base.task
echo
and app2ipa
plugins to xmake-plugins repo.set_config_header("config.h", {prefix = ""})
instead of set_config_h
and set_config_h_prefix
try-catch-finally
get.sh
$(programdir)
and $(xmake)
builtin variablesis_host
api to get current host operating systemxmake lua
to run interactive commands, read-eval-print (REPL)xmake.lua
in add_subdirs
and use independent sub-scope to avoid dirty scope.xmake
directory if be not in projectsudo make install
permission problemos.host
and os.arch
interfacescprint
no color reset eolset_default
api for target to modify default build and install behaviorxmake
command in project subdirectories, it will find the project root directory automaticallyadd_rpathdirs
for target and optionxmake install
and xmake uninstall
task with administrator permissionrpm
, deb
and osxpkg
install packagexmake.lua
automaticallyarmv8-a
error--links
, --linkdirs
and --includedirs
configure argumentsxmake.lua
xmake.lua
set_xmakever
api for xmake.lua
add_frameworks
api for objc
and swift
golang
, dlang
and rust
languagetarget_end
, option_end
, task_end
apis for scopegolang
, dlang
and rust
project templatesos.run
, os.exec
, os.cp
, os.mv
and os.rm
interfaces and support wildcard pattern-q|--quiet
optionos.iorun
bugcore/tools
(msys toolchains) and uses xmake to compile core sources on windowsxmake/packages
for templates-def:xxx.def
flags failed for msvcxmake.lua
. .e.g add_ldflags("$(shell pkg-config --libs sqlite3)")
getenv
interface for the global scope of xmake.lua
set_default
api for option*.cxx
files failedxmake run -d program ...
import
interface--sdk=xxx
xmake config --xxx=[y|n|yes|no|true|false]
-j/--jobs
argument for supporting multi-jobsadd_files
api and support to add *.o/obj/a/lib
files for merging static library and object filesset_runscript
api and support custom actionset_installscript
x86_64
has_config
, get_config
和is_config
接口去快速判断option和配置值set_config
接口去设置默认配置$xmake --try
去尝试构建工程set_enabled(false)
去显示的禁用targetadd_requires("tbox ~1.6.1")
add_files()
在windows上支持大小写不敏感路径模式匹配detect.sdks.find_qt
对于Qt根目录的探测lib.detect.find_package
支持vcpkg$ xmake f --menu
中Exit问题以及cpu过高问题set_tools
和add_tools
接口为指定target目标设置编译工具链mode.debug
, mode.release
, mode.profile
和mode.check
is_mode
, is_arch
和is_plat
内置接口到自定义脚本域qt.console
, qt.application
等规则rule()
os.files
和os.dirs
接口,加速文件模式匹配make clean
add_ldflags("xx", "xx", {force = true})
强制设置多个flags的问题del_files()
接口去从已添加的文件列表中移除一些文件rule()
, add_rules()
接口实现自定义构建规则,并且改进add_files("src/*.md", {rule = "markdown"})
os.filesize()
接口core.ui.xxx
等cui组件模块,实现终端可视化界面,用于实现跟用户进行短暂的交互xmake f --menu
实现可视化菜单交互配置,简化工程的编译配置set_values
接口到optionxmake f --cc=gcc@ccmips.exe
add_cxflags
等flags api的设置,添加force参数,来禁用自动检测和映射,强制设置选项:add_cxflags("-DTEST", {force = true})
add_files
的flags设置,添加force域,用于设置不带自动检测和映射的原始flags:add_files("src/*.c", {force = {cxflags = "-DTEST"}})
os.nuldev()
在mingw上传入gcc时出现问题xmake f --cross
无法配置问题os.cd
到windows根路径问题XMAKE_LOGFILE
环境变量,启用输出到日志文件.gitignore
文件,忽略一些xmake的临时文件和目录set_config_header
接口,支持局部版本号设置,优先于全局set_version
,例如:set_config_header("config", {version = "2.1.8", build = "%Y%m%d%H%M"})
add_imports
去为target,option和package的自定义脚本批量导入模块,简化自定义脚本xmake -y/--yes
去确认用户输入xmake l package.manager.install xxx
模块,进行跨平台一致性安装软件包xmake macro ..
快速运行最近一次命令cprint()
,支持24位真彩色输出add_rpathdirs()
增加对@loader_path
和$ORIGIN
的内置变量支持,提供可迁移动态库加载set_version("x.x.x", {build = "%Y%m%d%H%M"})
支持buildversion设置COLORTERM=nocolor
环境变量开关,禁用彩色输出add_rbindings
和add_bindings
接口lib.detect.find_program
模块接口-w|--warning
参数来启用实时警告输出set_pcxxheader
编译没有继承flags配置问题os.tmpdir()
在fakeroot下的冲突问题os.getenv
在windows上的中文编码问题add_files
,支持对files粒度进行编译选项的各种配置,更加灵活。target.add_deps
接口,添加继承配置,允许手动禁止依赖继承,例如:add_deps("test", {inherit = false})
tbox.pkg
二进制依赖,直接集成tbox源码进行编译target:add
和option:add
问题/ZI
的兼容性问题,用/Zi
替代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_subfiles
xmake project -k compile_commands
来导出compile_commands.json
set_pcheader
和set_pcxxheader
去支持跨编译器预编译头文件,支持gcc
, clang
和msvc
xmake f -p cross
平台用于交叉编译,并且支持自定义平台名includes
和 links
import
接口,去加载用户扩展模块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.task
echo
和 app2ipa
插件迁移到 xmake-plugins 仓库set_config_header("config.h", {prefix = ""})
代替 set_config_h
和 set_config_h_prefix
try-catch-finally
get.sh
的路径问题import()
导入接口的缓存问题add_subdirs
中的子xmake.lua
中,使用独立子作用域,避免作用域污染导致的干扰问题xmake --help
输出.xmake
目录,如果不在工程中的时候sudo make install
命令权限问题os.host
, os.arch
等接口cprint
色彩打印中断问题set_default
接口用于修改默认的构建所有targets行为xmake
命令进行构建,xmake会自动检测所在的工程根目录add_rpathdirs
api到target和option,支持动态库的自动加载运行xmake install
and xmake uninstall
任务,更友好的处理root安装问题rpm
, deb
和osxpkg
安装包xmake.lua
时,添加更友好的用户提示,避免用户无操作armv8-a
架构失败问题yaourt
包管理器进行安装。--links
, --linkdirs
and --includedirs
配置参数xmake.lua
工程描述增加dictionay语法风格xmake.lua
等工程描述文件的情况下,也能直接快速编译xmake.lua
工程描述添加set_xmakever
接口,更加友好的处理版本兼容性问题objc
和swift
程序添加add_frameworks
接口golang
, dlang
和rust
程序构建的支持target_end
, option_end
和task_end
等可选api,用于显示结束描述域,进入根域设置,提高可读性golang
, dlang
和rust
工程模板os.run
, os.exec
, os.cp
, os.mv
和 os.rm
等接口,支持通配符模式匹配和批量文件操作-q|--quiet
选项实现静默构建makefile
生成插件,抽取编译工具和编译选项到全局变量os.iorun
返回数据不对问题core/tools
目录以及msys工具链,在windows上使用xmake自编译core源码进行安装,优化xmake源码磁盘空间xmake/packages
,默认模板安装不再内置二进制packages,暂时需要手动放置,以后再做成自动包依赖下载编译-def:xxx.def
xmake.lua
中添加原生shell支持,例如:add_ldflags("$(shell pkg-config --libs sqlite3)")
getenv
接口到xmake.lua
的全局作用域中set_default
接口*.cxx
编译失败问题xmake run -d program ...
windows/linux/macosx
等大部分pc平台import
根目录错误问题add_files("*.a")
,修复一些bug--sdk=xxx
参数实现更加方便智能的进行交叉编译配置,简化mingw平台的编译配置xmake config --xxx=[y|n|yes|no|true|false]
等开关值add_files
接口,支持直接添加*.o/obj/a/lib
文件,并且支持静态库的合并此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。