Created
February 11, 2013 13:35
-
-
Save z0w0/4754455 to your computer and use it in GitHub Desktop.
Example of rustpkg for @bjz
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[pkg(id = "com.bjz.gl", | |
vers = "0.1.0")]; | |
#[pkg_crate(file = "src/gl.rc")]; | |
use run; | |
#[pkg_do(build)] // ran before declarative crates (i.e. this will run and then the crate defined above will) | |
fn build() { | |
run::run_program(~"lua", ~[~"LoadGen.lua". ~"-style=pointer_rust", | |
~"-spec=gl", ~"-version=3.3", ~"-profile=core", | |
~"core_3_3"]); | |
/* | |
run::run_program(~"git", ~[~"submodule", ~"sync"]); | |
run::run_program(~"git", ~[~"submodule", ~"update"]); | |
*/ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment