package An official xmake package repository https://xrepo.xmake.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
ruki 7a02a3687a
Update new.lua
3 years ago
.github/workflows add clhep, cfitsio, ftgl and libverto (#667) 3 years ago
packages Create xmake.lua (#794) 3 years ago
scripts Update new.lua 3 years ago
.gitignore add MNN (#633) 3 years ago
CONTRIBUTING.md add missing libs to boost/xmake.lua (#756) 3 years ago
LICENSE.md an initial package repository based on xmake 8 years ago
NOTICE.md update xmake github url 6 years ago
README.md Update README.md 3 years ago
README_zh.md Update README_zh.md 3 years ago
xmake.lua upgrade xmake minver 4 years ago

README.md

xmake-repo

An official xmake package repository

Supporting the project

Support this project by becoming a sponsor. Your logo will show up here with a link to your website. 🙏 [Become a sponsor]

Introduction (中文)

xmake-repo is an official xmake package repository.

Package dependences

Package management

If you want to know more, please refer to the xmake documentation:

Xrepo

xrepo is a cross-platform C/C++ package manager based on Xmake.

It 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.

If you want to know more, please refer to the xrepo documentation:

Submit package to repository

Write a xmake.lua of new package in packages/x/xxx/xmake.lua and push a pull-request to the dev branch.

For example, packages/z/zlib/xmake.lua:

If you want to known more, please see: Create and Submit packages to the official repository

Create a package template from Github

We need to install the gh cli tool first, and then execute the following command to log in to github.

$ gh auth login

Create a package configuration file to this warehouse based on the package address of 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/v1.6.35.tar.gz",
              "https://github.com/glennrp/libpng.git")
     add_versions("v1.6.35", "6d59d6a154ccbb772ec11772cb8f8beb0d382b61e7ccc62435bf7311c9f4b210")

     on_install(function (package)
         local configs = {}
         import("package.tools.xmake").install(package, configs)
     end)

     on_test(function (package)
         assert(package:has_cfuncs("foo", {includes = "foo.h"}))
     end)
packages/l/libpng/xmake.lua generated!