xmake-repo

xmake-repo

官方跨平台C/C++包仓库

xmake-repo作为xmake的官方包仓库,提供丰富的C/C++跨平台软件包。覆盖Windows、Linux、macOS和Android等主流系统,支持多种架构。开发者可轻松管理依赖,提高开发效率。开放的包提交机制鼓励社区参与,不断丰富软件生态。

xmake-repo包管理C++跨平台开源项目Github
<div align="center"> <a href="https://xmake.io"> <img width="160" height="160" src="https://yellow-cdn.veclightyear.com/0a4dffa0/a3e50e30-8bb3-4125-a0dd-0363dfcc62dd.png"> </a> <h1>xmake-仓库</h1> <div> <a href="https://github.com/xmake-io/xmake-repo/actions?query=workflow%3AWindows"> <img src="https://img.shields.io/github/actions/workflow/status/xmake-io/xmake-repo/windows.yml?branch=dev&style=flat-square&logo=windows" alt="github-ci" /> </a> <a href="https://github.com/xmake-io/xmake-repo/actions?query=workflow%3ALinux"> <img src="https://img.shields.io/github/actions/workflow/status/xmake-io/xmake-repo/ubuntu.yml?branch=dev&style=flat-square&logo=linux" alt="github-ci" /> </a> <a href="https://github.com/xmake-io/xmake-repo/actions?query=workflow%3AmacOS"> <img src="https://img.shields.io/github/actions/workflow/status/xmake-io/xmake-repo/macos.yml?branch=dev&style=flat-square&logo=apple" alt="github-ci" /> </a> <a href="https://github.com/xmake-io/xmake-repo/actions?query=workflow%3AAndroid"> <img src="https://img.shields.io/github/actions/workflow/status/xmake-io/xmake-repo/android.yml?branch=dev&style=flat-square&logo=android" alt="github-ci" /> </a> </div> <div> <a href="https://www.reddit.com/r/tboox/"> <img src="https://yellow-cdn.veclightyear.com/0a4dffa0/6fe106c2-a7d6-4a30-854e-0c626682bf8b.svg?style=flat-square" alt="Reddit" /> </a> <a href="https://gitter.im/tboox/tboox?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge"> <img src="https://yellow-cdn.veclightyear.com/0a4dffa0/0c7fbce3-adfc-48a7-95f4-cc17b51dd585.svg?style=flat-square&colorB=96c312" alt="Gitter" /> </a> <a href="https://t.me/tbooxorg"> <img src="https://yellow-cdn.veclightyear.com/0a4dffa0/c8e63e7e-453c-4dc9-b57f-cd442032ecfd.svg?style=flat-square" alt="Telegram" /> </a> <a href="https://jq.qq.com/?_wv=1027&k=5hpwWFv"> <img src="https://yellow-cdn.veclightyear.com/0a4dffa0/32588b26-dbd9-4b89-936a-9be7ef8c3058.svg?style=flat-square" alt="QQ" /> </a> <a href="https://discord.gg/XXRp26A4Gr"> <img src="https://yellow-cdn.veclightyear.com/0a4dffa0/c975b6a2-23de-4ad4-9462-c96bf32973c4.svg?style=flat-square" alt="Discord" /> </a> <a href="https://github.com/xmake-io/xmake-repo/blob/master/LICENSE.md"> <img src="https://yellow-cdn.veclightyear.com/0a4dffa0/1bad6013-fa77-4a77-84a9-92d6350fb210.svg?colorB=f48041&style=flat-square" alt="license" /> </a> <a href="http://xmake.io/pages/donation.html#donate"> <img src="https://yellow-cdn.veclightyear.com/0a4dffa0/00f0af79-8c1b-40ba-b6b9-711633f7dbb1.svg?style=flat-square" alt="Donate" /> </a> </div> <p>一个官方的xmake软件包仓库</p> </div>

支持项目

通过成为赞助商来支持这个项目。您的logo将出现在这里,并附上您网站的链接。🙏 <a href="https://opencollective.com/xmake#sponsors" target="_blank"><img src="https://yellow-cdn.veclightyear.com/0a4dffa0/8aacb212-2470-4d44-ba64-3bcbe952bf9c.svg?width=890"></a> <a href="https://opencollective.com/xmake#backers" target="_blank"><img src="https://yellow-cdn.veclightyear.com/0a4dffa0/81d6118d-1e06-4ab4-aae5-5766f24875d9.svg?width=890"></a>

简介 (English)

xmake-repo 是 xmake 的官方包仓库。

包依赖关系

<img src="https://yellow-cdn.veclightyear.com/0a4dffa0/edf827f5-4f66-46ee-86c4-f02004fa6c69.png" width="70%" />

包管理

<img src="https://yellow-cdn.veclightyear.com/0a4dffa0/174e68bd-45ee-408a-a87c-f1f85873542e.png" width="80%" />

如果你想了解更多,请参考 xmake 文档:

Xrepo

xrepo 是一个基于 Xmake 的跨平台 C/C++ 包管理器。

它基于 xmake 提供的运行时,但它是一个完整且独立的包管理程序。与 vcpkg/homebrew 等包管理器相比,xrepo 可以同时为更多平台和架构提供 C/C++ 包。

如果你想了解更多,请参考 xrepo 文档:

向仓库提交包

packages/x/xxx/xmake.lua 中编写新包的 xmake.lua,并向 dev 分支提交一个拉取请求。

例如,packages/z/zlib/xmake.lua

如果你想了解更多,请参见:创建和提交包到官方仓库

从 Github 创建包模板

首先需要安装 gh 命令行工具,然后执行以下命令登录 github。

$ gh auth login

根据 github 的包地址,创建一个包配置文件到本仓库。

$ xmake l scripts/new.lua github:glennrp/libpng package("libpng") set_homepage("http://libpng.sf.net") set_description("LIBPNG: Portable Network Graphics support, official libpng repository") add_urls("https://github.com/glennrp/libpng/archive/refs/tags/$(version).tar.gz", "https://github.com/glennrp/libpng.git") add_versions("v1.6.35", "6d59d6a154ccbb772ec11772cb8f8beb0d382b61e7ccc62435bf7311c9f4b210") add_deps("cmake") on_install(function (package) local configs = {} table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release")) table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF")) import("package.tools.cmake").install(package, configs) end) on_test(function (package) assert(package:has_cfuncs("foo", {includes = "foo.h"})) end) packages/l/libpng/xmake.lua generated!

在本地测试包

$ xmake l scripts/test.lua --shallow -vD zlib
$ xmake l scripts/test.lua --shallow -vD -p iphoneos zlib
$ xmake l scripts/test.lua --shallow -vD -k shared -m debug zlib
$ xmake l scripts/test.lua --shallow -vD --vs_runtime=MD zlib

编辑推荐精选

Vora

Vora

免费创建高清无水印Sora视频

Vora是一个免费创建高清无水印Sora视频的AI工具

Refly.AI

Refly.AI

最适合小白的AI自动化工作流平台

无需编码,轻松生成可复用、可变现的AI自动化工作流

酷表ChatExcel

酷表ChatExcel

大模型驱动的Excel数据处理工具

基于大模型交互的表格处理系统,允许用户通过对话方式完成数据整理和可视化分析。系统采用机器学习算法解析用户指令,自动执行排序、公式计算和数据透视等操作,支持多种文件格式导入导出。数据处理响应速度保持在0.8秒以内,支持超过100万行数据的即时分析。

AI工具酷表ChatExcelAI智能客服AI营销产品使用教程
TRAE编程

TRAE编程

AI辅助编程,代码自动修复

Trae是一种自适应的集成开发环境(IDE),通过自动化和多元协作改变开发流程。利用Trae,团队能够更快速、精确地编写和部署代码,从而提高编程效率和项目交付速度。Trae具备上下文感知和代码自动完成功能,是提升开发效率的理想工具。

AI工具TraeAI IDE协作生产力转型热门
AIWritePaper论文写作

AIWritePaper论文写作

AI论文写作指导平台

AIWritePaper论文写作是一站式AI论文写作辅助工具,简化了选题、文献检索至论文撰写的整个过程。通过简单设定,平台可快速生成高质量论文大纲和全文,配合图表、参考文献等一应俱全,同时提供开题报告和答辩PPT等增值服务,保障数据安全,有效提升写作效率和论文质量。

AI辅助写作AI工具AI论文工具论文写作智能生成大纲数据安全AI助手热门
博思AIPPT

博思AIPPT

AI一键生成PPT,就用博思AIPPT!

博思AIPPT,新一代的AI生成PPT平台,支持智能生成PPT、AI美化PPT、文本&链接生成PPT、导入Word/PDF/Markdown文档生成PPT等,内置海量精美PPT模板,涵盖商务、教育、科技等不同风格,同时针对每个页面提供多种版式,一键自适应切换,完美适配各种办公场景。

AI办公办公工具AI工具博思AIPPTAI生成PPT智能排版海量精品模板AI创作热门
潮际好麦

潮际好麦

AI赋能电商视觉革命,一站式智能商拍平台

潮际好麦深耕服装行业,是国内AI试衣效果最好的软件。使用先进AIGC能力为电商卖家批量提供优质的、低成本的商拍图。合作品牌有Shein、Lazada、安踏、百丽等65个国内外头部品牌,以及国内10万+淘宝、天猫、京东等主流平台的品牌商家,为卖家节省将近85%的出图成本,提升约3倍出图效率,让品牌能够快速上架。

iTerms

iTerms

企业专属的AI法律顾问

iTerms是法大大集团旗下法律子品牌,基于最先进的大语言模型(LLM)、专业的法律知识库和强大的智能体架构,帮助企业扫清合规障碍,筑牢风控防线,成为您企业专属的AI法律顾问。

SimilarWeb流量提升

SimilarWeb流量提升

稳定高效的流量提升解决方案,助力品牌曝光

稳定高效的流量提升解决方案,助力品牌曝光

Sora2视频免费生成

Sora2视频免费生成

最新版Sora2模型免费使用,一键生成无水印视频

最新版Sora2模型免费使用,一键生成无水印视频

下拉加载更多