{"id":13531093,"url":"https://github.com/xmake-io/xmake-repo","last_synced_at":"2025-05-14T13:06:09.479Z","repository":{"id":37359211,"uuid":"87712244","full_name":"xmake-io/xmake-repo","owner":"xmake-io","description":"📦 An official xmake package repository ","archived":false,"fork":false,"pushed_at":"2025-05-12T04:14:06.000Z","size":11534,"stargazers_count":793,"open_issues_count":422,"forks_count":435,"subscribers_count":16,"default_branch":"dev","last_synced_at":"2025-05-12T05:25:19.114Z","etag":null,"topics":["build","cross-platform","package","repository","xmake"],"latest_commit_sha":null,"homepage":"https://xrepo.xmake.io","language":"Xmake","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xmake-io.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"waruqi","open_collective":"xmake","custom":"https://xmake.io/#/sponsor"}},"created_at":"2017-04-09T13:56:00.000Z","updated_at":"2025-05-12T03:38:17.000Z","dependencies_parsed_at":"2023-09-29T18:14:46.089Z","dependency_job_id":"f3eb0b0b-f87f-4c38-9627-7b3406b5efac","html_url":"https://github.com/xmake-io/xmake-repo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xmake-io%2Fxmake-repo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xmake-io%2Fxmake-repo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xmake-io%2Fxmake-repo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xmake-io%2Fxmake-repo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xmake-io","download_url":"https://codeload.github.com/xmake-io/xmake-repo/tar.gz/refs/heads/dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254149949,"owners_count":22022851,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["build","cross-platform","package","repository","xmake"],"created_at":"2024-08-01T07:00:59.883Z","updated_at":"2025-05-14T13:06:09.452Z","avatar_url":"https://github.com/xmake-io.png","language":"Xmake","funding_links":["https://github.com/sponsors/waruqi","https://opencollective.com/xmake","https://xmake.io/#/sponsor"],"categories":["Xmake","Repositories"],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://xmake.io\"\u003e\n    \u003cimg width=\"160\" heigth=\"160\" src=\"https://tboox.org/static/img/xmake/logo256c.png\"\u003e\n  \u003c/a\u003e\n\n  \u003ch1\u003exmake-repo\u003c/h1\u003e\n\n  \u003cdiv\u003e\n    \u003ca href=\"https://github.com/xmake-io/xmake-repo/actions?query=workflow%3AWindows\"\u003e\n      \u003cimg src=\"https://img.shields.io/github/actions/workflow/status/xmake-io/xmake-repo/windows.yml?branch=dev\u0026style=flat-square\u0026logo=windows\" alt=\"github-ci\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/xmake-io/xmake-repo/actions?query=workflow%3ALinux\"\u003e\n      \u003cimg src=\"https://img.shields.io/github/actions/workflow/status/xmake-io/xmake-repo/ubuntu.yml?branch=dev\u0026style=flat-square\u0026logo=linux\" alt=\"github-ci\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/xmake-io/xmake-repo/actions?query=workflow%3AmacOS\"\u003e\n      \u003cimg src=\"https://img.shields.io/github/actions/workflow/status/xmake-io/xmake-repo/macos.yml?branch=dev\u0026style=flat-square\u0026logo=apple\" alt=\"github-ci\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/xmake-io/xmake-repo/actions?query=workflow%3AAndroid\"\u003e\n      \u003cimg src=\"https://img.shields.io/github/actions/workflow/status/xmake-io/xmake-repo/android.yml?branch=dev\u0026style=flat-square\u0026logo=android\" alt=\"github-ci\" /\u003e\n    \u003c/a\u003e\n  \u003c/div\u003e\n  \u003cdiv\u003e\n    \u003ca href=\"https://www.reddit.com/r/tboox/\"\u003e\n      \u003cimg src=\"https://img.shields.io/badge/chat-on%20reddit-ff3f34.svg?style=flat-square\" alt=\"Reddit\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://gitter.im/tboox/tboox?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge\"\u003e\n      \u003cimg src=\"https://img.shields.io/gitter/room/tboox/tboox.svg?style=flat-square\u0026colorB=96c312\" alt=\"Gitter\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://t.me/tbooxorg\"\u003e\n      \u003cimg src=\"https://img.shields.io/badge/chat-on%20telegram-blue.svg?style=flat-square\" alt=\"Telegram\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://jq.qq.com/?_wv=1027\u0026k=5hpwWFv\"\u003e\n      \u003cimg src=\"https://img.shields.io/badge/chat-on%20QQ-ff69b4.svg?style=flat-square\" alt=\"QQ\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://discord.gg/XXRp26A4Gr\"\u003e\n      \u003cimg src=\"https://img.shields.io/badge/chat-on%20discord-7289da.svg?style=flat-square\" alt=\"Discord\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/xmake-io/xmake-repo/blob/master/LICENSE.md\"\u003e\n      \u003cimg src=\"https://img.shields.io/github/license/xmake-io/xmake-repo.svg?colorB=f48041\u0026style=flat-square\" alt=\"license\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"http://xmake.io/pages/donation.html#donate\"\u003e\n      \u003cimg src=\"https://img.shields.io/badge/donate-us-orange.svg?style=flat-square\" alt=\"Donate\" /\u003e\n    \u003c/a\u003e\n  \u003c/div\u003e\n\n  \u003cp\u003eAn official xmake package repository\u003c/p\u003e\n\u003c/div\u003e\n\n## Supporting the project\n\nSupport this project by [becoming a sponsor](https://xmake.io/#/about/sponsor). Your logo will show up here with a link to your website. 🙏\n\n\u003ca href=\"https://opencollective.com/xmake#sponsors\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/xmake/sponsors.svg?width=890\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/xmake#backers\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/xmake/backers.svg?width=890\"\u003e\u003c/a\u003e\n\n## Introduction ([中文](/README_zh.md))\n\nxmake-repo is an official xmake package repository.\n\n## Package dependences\n\n\u003cimg src=\"https://xmake.io/assets/img/index/add_require.png\" width=\"70%\" /\u003e\n\n## Package management\n\n\u003cimg src=\"https://xmake.io/assets/img/index/package_manage.png\" width=\"80%\" /\u003e\n\nIf you want to know more, please refer to the xmake documentation:\n\n* [Documents](https://xmake.io/#/package/remote_package)\n* [Github](https://github.com/xmake-io/xmake)\n* [HomePage](https://xmake.io)\n\n## Xrepo\n\nxrepo is a cross-platform C/C++ package manager based on [Xmake](https://github.com/xmake-io/xmake).\n\nIt is based on the runtime provided by xmake, but it is a complete and independent package management program. Compared with package managers such as vcpkg/homebrew, xrepo can provide C/C++ packages for more platforms and architectures at the same time.\n\nIf you want to know more, please refer to the xrepo documentation:\n\n* [Documents](https://xrepo.xmake.io/#/getting_started)\n* [Github](https://github.com/xmake-io/xrepo)\n* [Gitee](https://gitee.com/tboox/xrepo)\n\n![](https://xrepo.xmake.io/assets/img/xrepo.gif)\n\n## Submit package to repository\n\nWrite a xmake.lua of new package in `packages/x/xxx/xmake.lua` and push a pull-request to the dev branch.\n\nFor example, [packages/z/zlib/xmake.lua](https://github.com/xmake-io/xmake-repo/blob/dev/packages/z/zlib/xmake.lua):\n\nIf you want to known more, please see: [Create and Submit packages to the official repository](https://xmake.io/#/package/remote_package?id=submit-packages-to-the-official-repository)\n\n## Create a package template from Github\n\nWe need to install the [gh](https://github.com/cli/cli) cli tool first, and then execute the following command to log in to github.\n\n```console\n$ gh auth login\n```\n\nCreate a package configuration file to this warehouse based on the package address of github.\n\n```console\n$ xmake l scripts/new.lua github:glennrp/libpng\npackage(\"libpng\")\n    set_homepage(\"http://libpng.sf.net\")\n    set_description(\"LIBPNG: Portable Network Graphics support, official libpng repository\")\n\n    add_urls(\"https://github.com/glennrp/libpng/archive/refs/tags/$(version).tar.gz\",\n             \"https://github.com/glennrp/libpng.git\")\n    add_versions(\"v1.6.35\", \"6d59d6a154ccbb772ec11772cb8f8beb0d382b61e7ccc62435bf7311c9f4b210\")\n\n    add_deps(\"cmake\")\n\n    on_install(function (package)\n        local configs = {}\n        table.insert(configs, \"-DCMAKE_BUILD_TYPE=\" .. (package:debug() and \"Debug\" or \"Release\"))\n        table.insert(configs, \"-DBUILD_SHARED_LIBS=\" .. (package:config(\"shared\") and \"ON\" or \"OFF\"))\n        import(\"package.tools.cmake\").install(package, configs)\n    end)\n\n    on_test(function (package)\n        assert(package:has_cfuncs(\"foo\", {includes = \"foo.h\"}))\n    end)\npackages/l/libpng/xmake.lua generated!\n```\n\n### Test a package in local\n\n```console\n$ xmake l scripts/test.lua --shallow -vD zlib\n$ xmake l scripts/test.lua --shallow -vD -p iphoneos zlib\n$ xmake l scripts/test.lua --shallow -vD -k shared -m debug zlib\n$ xmake l scripts/test.lua --shallow -vD --runtimes=MD zlib\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxmake-io%2Fxmake-repo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxmake-io%2Fxmake-repo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxmake-io%2Fxmake-repo/lists"}