|
|
@ -83,6 +83,10 @@ fn build_rocksdb() { |
|
|
|
config.include("bzip2/"); |
|
|
|
config.include("bzip2/"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if cfg!(feature = "rtti") { |
|
|
|
|
|
|
|
config.define("USE_RTTI", Some("1")); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
config.include("."); |
|
|
|
config.include("."); |
|
|
|
config.define("NDEBUG", Some("1")); |
|
|
|
config.define("NDEBUG", Some("1")); |
|
|
|
|
|
|
|
|
|
|
@ -400,4 +404,13 @@ fn main() { |
|
|
|
fail_on_empty_directory("bzip2"); |
|
|
|
fail_on_empty_directory("bzip2"); |
|
|
|
build_bzip2(); |
|
|
|
build_bzip2(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Allow dependent crates to locate the sources and output directory of
|
|
|
|
|
|
|
|
// this crate. Notably, this allows a dependent crate to locate the RocksDB
|
|
|
|
|
|
|
|
// sources and built archive artifacts provided by this crate.
|
|
|
|
|
|
|
|
println!( |
|
|
|
|
|
|
|
"cargo:cargo_manifest_dir={}", |
|
|
|
|
|
|
|
env::var("CARGO_MANIFEST_DIR").unwrap() |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
println!("cargo:out_dir={}", env::var("OUT_DIR").unwrap()); |
|
|
|
} |
|
|
|
} |
|
|
|