• Stars
    star
    575
  • Rank 74,640 (Top 2 %)
  • Language
    Lua
  • License
    Apache License 2.0
  • Created about 7 years ago
  • Updated 22 days ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

๐Ÿ“ฆ An official xmake package repository

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. ๐Ÿ™

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/$(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!

Test a package in local

$ 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

More Repositories

1

xmake

๐Ÿ”ฅ A cross-platform build utility based on Lua
Lua
8,660
star
2

xrepo

๐Ÿ—‚๏ธ A cross-platform C/C++ package manager based on Xmake
Shell
334
star
3

xmake-vscode

๐Ÿฉ A XMake integration in Visual Studio Code
TypeScript
210
star
4

xmake-idea

๐Ÿจ A XMake integration in IntelliJ IDEA
Kotlin
71
star
5

xmake.sh

A script-only build utility like autotools
Shell
47
star
6

xmake-gradle

A gradle plugin that integrates xmake seamlessly
Groovy
45
star
7

xrepo-cmake

CMake wrapper for Xrepo C and C++ package manager
CMake
44
star
8

xmake-docs

The xmake online documentation site
HTML
42
star
9

awesome-xmake

๐Ÿ’• A curated list of awesome XMake projects, plugins, examples and others
35
star
10

github-action-setup-xmake

Set up your GitHub Actions workflow with a specific version of xmake
TypeScript
23
star
11

xmake-sublime

๐Ÿ” A XMake integration in Sublime Text
Python
19
star
12

luarocks-build-xmake

A luarocks build module based on xmake
Lua
18
star
13

xmake-plugins

A plugins repository based on xmake
Lua
11
star
14

smart-build

Lua
10
star
15

ModernCppStarter

Kick-start your C++! A template for modern C++ projects using XMake, CI, code coverage, clang-format, reproducible dependency management and more.
C++
9
star
16

xmake-package-gentoo

Gentoo package scripts of Xmake
Shell
6
star
17

xmake-stats

The xmake statistical analysis services
5
star
18

xrepo-docs

The xrepo online documentation site
HTML
5
star
19

xmake-package-debian

Debian package scripts of Xmake
Lua
4
star
20

xmake-win32env

A win32 toolchains environment of xmake
Shell
2
star
21

xmake-win64env

A win64 toolchains environment of xmake
Shell
2
star
22

.github

:octocat: Community health files.
1
star
23

pxmake

xmake implement on python focuses on reuse python's library and API compatibility
Lua
1
star
24

xmake-package-debian-sv

Debian package scripts of Xmake/libsv
C
1
star
25

xmake-package-debian-tbox

Debian package scripts of Xmake/tbox
C
1
star