Package Management in Project
The package management command $ xmake require can be used to manually display, download, install, uninstall, retrieve, and view package information.
xmake require is only used for the current project. We also provide a more convenient, independent xrepo package manager command to install, uninstall, find, and manage packages globally.
For detailed documentation, see: Getting Started with Xrepo Commands
Install the specified package
$ xmake require tboxInstall the specified version package:
$ xmake require tbox "~1.6"Force a re-download of the installation and display detailed installation information:
$ xmake require -f -v tbox "1.5.x"Pass additional setup information:
$ xmake require --extra="{debug=true,config={small=true}}" tboxInstall the debug package and pass the compilation configuration information of small=true to the package.
Uninstall the specified package
$ xmake require --uninstall tboxThis will completely uninstall and remove the package file.
Show package information
$ xmake require --info tboxSearch for packages in the current repository
$ xmake require --search tboxThis supports fuzzy search and Lua pattern matching search:
$ xmake require --search pcrWill also search for pcre, pcre2, and other packages.
List the currently installed packages
$ xmake require --list