xmake-private-packages
Installation
SKILL.md
Private Packages & Repository Distribution
This skill covers distributing C/C++ libraries as xmake packages — i.e. consumable via add_requires("mylib") in a downstream project. Three scenarios:
- Local package —
xmake packageemits a directory of prebuilt binaries + a tinyxmake.luarepo you can share over NFS/file share. - Remote source package — a private git repo containing recipes that fetch source (usually from another private git repo) and build on demand.
- Remote binary package — private git repo of recipes that download a pre-built tarball (no source leak, fast install).
All three reuse xmake's standard add_requires / add_packages integration on the consumer side — you just swap the repository URL.
1. Prepare the library project
-- library project: xmake.lua
add_rules("mode.debug", "mode.release")