Skip to content

Instantly share code, notes, and snippets.

@z0w0
Created February 11, 2013 13:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save z0w0/4754455 to your computer and use it in GitHub Desktop.
Save z0w0/4754455 to your computer and use it in GitHub Desktop.
Example of rustpkg for @bjz
#[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