Skip to content

Commit

Permalink
Make lib extension dynamic in integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
jerel committed Oct 25, 2023
1 parent 616ca54 commit b19fc9c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion membrane/tests/integration_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,13 @@ import '../locations/locations.dart' show GDPR, Location;

build_lib(&path.to_path_buf(), &mut vec![]);

Membrane::new_from_cdylib(&path.join("libexample.so"))
let lib = if cfg!(target_os = "macos") {
"libexample.dylib"
} else {
"libexample.so"
};

Membrane::new_from_cdylib(&path.join(lib))
.timeout(200)
.package_destination_dir(path)
.using_lib("libexample")
Expand Down

0 comments on commit b19fc9c

Please sign in to comment.