librespot/build.rs

18 lines
460 B
Rust
Raw Normal View History

extern crate vergen;
extern crate protobuf_macros;
use std::env;
use std::path::PathBuf;
2015-04-25 20:32:07 +00:00
fn main() {
2016-03-17 03:31:57 +00:00
vergen::vergen(vergen::OutputFns::all()).unwrap();
let out = PathBuf::from(env::var("OUT_DIR").unwrap());
protobuf_macros::expand("src/lib.in.rs", &out.join("lib.rs")).unwrap();
2015-04-25 20:32:07 +00:00
println!("cargo:rerun-if-changed=src/lib.in.rs");
println!("cargo:rerun-if-changed=src/spirc.rs");
println!("cargo:rerun-if-changed=src/connection");
}