is_os 这个很简单,用来判断当前编译目标,例如: -- 如果当前操作系统是iosifis_os("ios")thenadd_files("src/xxx/*.m")end 目前支持的操作系统有:windows、linux、android、macosx、ios is_kind 用来判断当前是否编译的是动态库还是静态库 一般用于如下场景: target("test")-- 通过配置设置目标的kindset_kind...
根据is_os,is_plat,is_arch,is_kind,is_mode,is_option,可选择性编译. -- 启用调试符号set_symbols("debug") -- 禁用优化set_optimize("none") -- 隐藏符号set_symbols("hidden") -- 去掉所有符号set_strip("all") -- 开启优化为:最快速度模式set_optimize("fastest") -- 忽略帧指针add_cxflags("...
WeChat Public: tboox-os Thanks This project exists thanks to all the people who have contributed: TitanSnow: Provide the xmake logo and install scripts uael: Provide the semantic versioning library sv OpportunityLiu: Improve cuda, tests and ci xq144: Improve xrepo env shell, and contribute ...
add_rules("mode.debug","mode.release")target("console")set_kind("binary")add_files("src/*.c")ifis_mode("debug")thenadd_defines("DEBUG")end Custom scripts target("test")set_kind("binary")add_files("src/*.c")after_build(function(target)print("hello: %s",target:name())os.exec("...
另外,我们还新增了 Apple XROS 平台的构建支持,可以用于构建苹果新的 VisionOS 上的程序,还有我们还提供了更加灵活通用的check_sizeof检测接口,用于快速检测类型的大小。 链接重排序支持 这是一个存在了两年多的需求,主要用于调整 target 内部的链接顺序。
target("test") set_kind("binary") add_files("src/*.c") after_build(function(target)print("hello: %s", target:name())os.exec("echo %s", target:targetfile())end) Automatic integration of dependent packages Download and use packages inxmake-repoor third-party repositories: ...
What is Xmake?Xmake is a cross-platform build utility based on the Lua scripting language. Xmake is very lightweight and has no dependencies outside of the standard library. Uses the xmake.lua file to maintain project builds with a simple and readable syntax....
But Xmake doesn't need it. In the above one-click compilation, I actually omitted part of the output, which is actually the case. $ xmake note: install or modify (m) these packages (pass -y to skip confirm)? in xmake-repo:
#3752: Improve os.getenvs for windows #3371: Improve tools.cmake to support ninja generator for wasm #3777: Improve to find package from pkg-config #3815: Improve tools.xmake to pass toolchains for windows #3857: Improve to generate compile_commands.json #3892: Improve to search packages ...
Source Code:Github, Gitee Wechat Public: tboox-osThanksThis project exists thanks to all the people who have contributed: TitanSnow: provide the xmake logo and install scripts uael: provide the semantic versioning library sv OpportunityLiu: improve cuda, tests and ci xq144: Improve xrepo env ...