diff options
author | Melody Horn <melody@boringcactus.com> | 2021-05-14 18:35:40 -0600 |
---|---|---|
committer | Melody Horn <melody@boringcactus.com> | 2021-05-14 18:35:40 -0600 |
commit | ca72a896dcbf631971a564413bd684bb637b747e (patch) | |
tree | 7fe8f28d33f5a718e3cf44af118e0e36ef9d33b3 | |
parent | d8ba4ec621d7cf169be97c8fc5e6f1db919681c9 (diff) | |
download | tcl-sys-ca72a896dcbf631971a564413bd684bb637b747e.tar.gz tcl-sys-ca72a896dcbf631971a564413bd684bb637b747e.zip |
pass tcl source dir forward, hopefully
-rw-r--r-- | Cargo.toml | 1 | ||||
-rw-r--r-- | build.rs | 5 |
2 files changed, 5 insertions, 1 deletions
@@ -3,6 +3,7 @@ name = "tcl-sys" version = "0.1.0" authors = ["Melody Horn <melody@boringcactus.com>"] edition = "2018" +links = "tcl" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -158,18 +158,21 @@ fn main() { let target_os = get_os_from_triple(target.as_str()).unwrap(); let tcl_source_path = download_tcl(); + println!("cargo:tcl-source={}", tcl_source_path.to_str().unwrap()); let tcl_compiled_path = compile_tcl(tcl_source_path.as_path(), target_os); let tcl_include_path = tcl_compiled_path.join("include"); let tcl_lib_path = tcl_compiled_path.join("lib"); - println!("cargo:rustc-link-search={}", tcl_lib_path.display()); + println!("cargo:rustc-link-search={}", tcl_lib_path.to_str().unwrap()); let include_paths = vec![String::from(tcl_include_path.to_str().unwrap())]; println!("cargo:include={}", include_paths.join(":")); generate_bindings(target.as_str(), host.as_str(), include_paths.as_slice()); link_tcl(target_os); + + println!("cargo:rerun-if-changed=build.rs"); } // headers_path is a list of directories where the Tcl headers are expected |