An extension to premake for consuming packages from GitHub repositories.
This extension makes it easy to share and consume C/C++ projects!
Import this extension by placing it somewhere that premake can find it then use.
require 'ghp'
Import packages using the ghp.import
function in your workspace which refers to a GitHub organization/repository and release.
ghp.import('mversluys/protobuf', '2.6.1')
Pull include directies and libraries into your projects with ghp.use
.
ghp.use('mversluys/protobuf')
You can also require premake modules directly from github with ghp.require
.
ghp.require('mversluys/premake-autoconf', '0.1')
For more information, including how to publish your own packages, see the wiki.
For a working sample project, see premake-ghp-sample.
A public index of available packages can be found here http://www.premake-ghp.com.
This extension utilizes the following Lua packages