Skip to content

Commit

Permalink
libcollider
Browse files Browse the repository at this point in the history
  • Loading branch information
John Collins committed Dec 2, 2023
1 parent 9bf6b9b commit 84a77ea
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
7 changes: 7 additions & 0 deletions bindings/java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,13 @@
<include>libmanifold.dylib</include>
</includes>
</resource>
<resource>
<directory>../../build/src/collider</directory>
<includes>
<include>libcollider.so</include>
<include>libcollider.dylib</include>
</includes>
</resource>
<resource>
<directory>../../build/src/third_party</directory>
<includes>
Expand Down
5 changes: 5 additions & 0 deletions bindings/java/src/main/java/manifold3d/Manifold.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public class Manifold extends Pointer {
System.load(Loader.extractResource("/libcross_section.so", null, "libcross_section", ".so").getAbsolutePath());
System.load(Loader.extractResource("/libmanifold.so", null, "libmanifold", ".so").getAbsolutePath());
System.load(Loader.extractResource("/libquickhull.so", null, "libquickhull", ".so").getAbsolutePath());
System.load(Loader.extractResource("/libcollider.so", null, "libcollider", ".so").getAbsolutePath());
} catch (IOException e) {
throw new RuntimeException(e);
}
Expand All @@ -64,6 +65,8 @@ public class Manifold extends Pointer {
System.load(Loader.extractResource("/manifold.dll", null, "manifold", ".dll").getAbsolutePath());
System.out.println("Loading QuickHull");
System.load(Loader.extractResource("/quickhull.dll", null, "quickhull", ".dll").getAbsolutePath());
System.out.println("Loading Collider");
System.load(Loader.extractResource("/collider.dll", null, "collider", ".dll").getAbsolutePath());
System.out.println("Finished Loading.");
} catch (IOException e) {
throw new RuntimeException(e);
Expand All @@ -80,6 +83,8 @@ public class Manifold extends Pointer {
System.load(Loader.extractResource("/libmanifold.dylib", null, "libmanifold", ".dylib").getAbsolutePath());
System.out.println("Loading QuickHull");
System.load(Loader.extractResource("/libquickhull.dylib", null, "libquickhull", ".dylib").getAbsolutePath());
System.out.println("Loading Collider");
System.load(Loader.extractResource("/libcollider.dylib", null, "libcollider", ".dylib").getAbsolutePath());
System.out.println("Finished Loading.");

} catch (IOException e) {
Expand Down
2 changes: 1 addition & 1 deletion bindings/java/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.66
1.0.67

0 comments on commit 84a77ea

Please sign in to comment.