Skip to content

Commit

Permalink
[fix] Use links and export includes (#187)
Browse files Browse the repository at this point in the history
Co-authored-by: Eric Scouten <scouten@adobe.com>
  • Loading branch information
uttarayan21 and scouten-adobe authored Jan 15, 2024
1 parent bf54bd6 commit 1c3e7cf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ keywords = ["xmp", "metadata"]
categories = ["api-bindings"]
edition = "2021"
rust-version = "1.70.0"
links = "xmp_toolkit"
exclude = [
"external/xmp_toolkit/docs",
"external/xmp_toolkit/samples",
Expand Down
5 changes: 5 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,11 @@ fn main() {
&out_dir
);

println!(
"cargo:include={}/external/xmp_toolkit/public/include",
std::env::var("CARGO_MANIFEST_DIR").expect("Failed to get CARGO_MANIFEST_DIR")
);

xmp_config
.cpp(true)
.define("TXMP_STRING_TYPE", "std::string")
Expand Down

0 comments on commit 1c3e7cf

Please sign in to comment.