diff --git a/Languages/xmake/使用记录.txt b/Languages/xmake/使用记录.txt new file mode 100644 index 0000000..b4b4012 --- /dev/null +++ b/Languages/xmake/使用记录.txt @@ -0,0 +1,24 @@ +【1】部署私有的仓库库。 +1,新建一个仓库,作为仓库库,存储其他库信息的库。 +2,对于某个库, +(远程git库)使用xmake package -f remote +生成一个以packages开头的目录结构, +将该目录结构放到仓库库根目录(packages目录)。 +3,使用方使用方法,先添加仓库库(如果没有添加),其中xmake-library是仓库库,可以跟分支信息。 +xmake repo用于当前工程。 +xrepo是全局设定,这里用全局的。 +xrepo add-repo xmake-library https://www.sinxmiao.cn/taynpg/xmake-library.git main +xrepo rm-repo xmake-library删除。 +4,工程配置示例: +add_rules("mode.debug", "mode.release") +add_rules("plugin.compile_commands.autoupdate", {outputdir = "build"}) +add_requires("zoost") + +if is_plat("windows") then + add_cxxflags("/utf-8") +end + +target("zoost-use") + set_kind("binary") + add_files("src/*.cpp") + add_packages("zoost") \ No newline at end of file