set_version("1.0.1",{soname="1.0"})->libfoo.so.1.0,libfoo.1.0.dylibset_version("1.0.1",{soname="1"})->libfoo.so.1,libfoo.1.dylibset_version("1.0.1",{soname="A"})->libfoo.so.A,libfoo.A.dylibset_version("1.0.1",{soname=""})->libfoo.so,libfoo.dylib 而如果没设置 son...
set_kind("binary") add_files("src/*.cpp") xpack("test") set_formats("nsis", "zip", "targz", "runself") set_title("hello") set_author("ruki") set_description("A test installer.") set_homepage("https://xmake.io") set_licensefile("LICENSE.md") add_targets("test") add_inst...
set_version("1.0.0")add_rules("mode.debug","mode.release")includes("@builtin/xpack")target("test")set_kind("binary")add_files("src/*.cpp")xpack("test")set_formats("nsis","zip","targz","runself")set_title("hello")set_author("ruki")set_description("A test installer.")set_ho...
`set_kind("binary")`对应可执行程序类型。除了这三种类型,`set_kind`还支持其他类型如`phony`、`object`、`headeronly`。`add_files`是一个强大的接口,通过`*`匹配文件后缀。命令行操作如`xmake f -m debug`表示使用默认配置直接构建。完整命令包括配置和构建步骤。`xmake --help`输出所有命令行...
set_version("1.6.5", {build = "%Y%m%d%H%M"}) -- set common flags set_warnings("all", "error") set_languages("c99") add_cxflags("-Wno-error=deprecated-declarations", "-fno-strict-aliasing", "-Wno-error=expansion-to-defined") ...
xmake doxygen xmake doxygen -o /tmp/output project/src //输出目录,源码目录 -- 设置工程名 set_project("tbox") -- 设置版本号 set_version("v1.5.1") 如上,会检查是否有doxygen工具. add_target("test") -- 动态类型,默认为静态,加`共享`时为`动态`. set_kind("$(kind)") -- 加文件 add_...
set_version(XMACS_VERSION, {build = "%Y-%m-%d"}) add_configfiles("src/System/config.h.xmake", { filename = "config.h", variables = { NOMINMAX = is_plat("windows"), MACOSX_EXTENSIONS = is_plat("macosx"), SIZEOF_VOID_P = 8, USE_FONTCONFIG = is_plat("linux"), ...
-- build/packages/g/great-project/xmake.lua package("great-project") set_description("The great-project package") add_urls("https://github.com/myrepo/foo.git") add_versions("1.0", "<shasum256 or gitcommit>") on_install(function (package) local configs = {} if package:config("shared...
add_rules("mode.debug", "mode.release") add_requires("cppfront") target("test") add_rules("cppfront") set_kind("binary") add_files("src/*.cpp2") add_files("src/*.h2") add_packages("cppfront") Improve build speed In the new version, we have also fixed an issue related to pa...
set_version 设置工程版本 set_project 设置工程名 set_xmakever 设置xmake版本 add_subdirs 添加子工程目录 add_subfiles 添加子工程文件 add_moduledirs 添加扩展模块 add_plugindirs 添加插件目录 add_packagedirs 添加包目录 set_config 设置默认配置