A useful XMake plugin to generate user-customized project files.
git clone https://github.com/SuniRein/xmake-spawn ${XMAKE_GLOBALDIR:-$HOME}/.xmake/plugins/xmake-spawn
- Set
XMAKE_SPAWN_TEMPLATEDIR
environment variable to the directory containing the project templates.
export XMAKE_SPAWN_TEMPLATEDIR=/path/to/templates
-
Create a custom project template in the directory specified by
XMAKE_SPAWN_TEMPLATEDIR
. -
List available templates.
xmake spawn --list
- Run
xmake spawn
to generate the project files.
# Generate a project named `name` using the template `example`
# A git repository will be initialized in the project directory
xmake spawn --template=example name
# OR
xmake spawn -t example name
This project is licensed under the GNU General Public License v3.0. See the LICENSE file for details.