Using Debian and its derivatives as an example:
sudo add-apt-repository ppa:xmake-io/xmake
sudo apt install xmake
Sometimes, it's necessary to ensure that xrepo is up-to-date to ensure the usage of the latest dependency build definitions:
xrepo update-repo
Taking xmake as an example:
xmake config --yes
xmake build liblolly
xmake install --admin liblolly
In the library where lolly is required, add the following to xmake.lua:
add_requires("lolly", {system=false})
For a detailed example, refer to mogan.
Refer to How to Test.