Skip to content

Commit

Permalink
Merge pull request #46 from jerel/platform-fix
Browse files Browse the repository at this point in the history
Make lib extension dynamic in integration test
  • Loading branch information
jerel authored Oct 25, 2023
2 parents 616ca54 + b19fc9c commit f958b8d
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 f958b8d

Please sign in to comment.