File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33[ ![ Clojars Project] ( https://img.shields.io/clojars/v/com.github.madhephaestus/manifold3d.svg )] ( https://clojars.org/com.github.madhephaestus/manifold3d )
44
5- ##Developemnt
5+ ## Developemnt
6+
7+ First build the C code:
8+
9+ #### Linux
10+
11+ ```
12+ bash bindings/java/scripts/linux/buildC.sh
13+ cd bindings/java/
14+ mvn test --file pom.xml --no-transfer-progress
15+ ```
16+
17+ #### MacOS
18+
19+ ```
20+ mkdir build
21+ cd build
22+ cmake -DMANIFOLD_CROSS_SECTION=ON -DMANIFOLD_USE_BUILTIN_CLIPPER2=ON -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DMANIFOLD_STRICT=ON -DMANIFOLD_USE_BUILTIN_TBB=ON -DMANIFOLD_DEBUG=ON -DMANIFOLD_ASSERT=ON -DMANIFOLD_PYBIND=OFF -DMANIFOLD_PAR=ON .. && make
23+ cd ..
24+ mkdir -p ./bindings/java/src/main/resources/manifold3d/natives/mac-arm64/
25+ ls -al ./build/src/
26+ cp ./build/src/libmanifold.dylib ./bindings/java/src/main/resources/manifold3d/natives/mac-arm64/
27+ cp ./build/bindings/c/libmanifoldc.dylib ./bindings/java/src/main/resources/manifold3d/natives/mac-arm64/
28+ cd bindings/java/
29+ mvn test --file pom.xml --no-transfer-progress
30+ ```
31+
32+ #### Windows
33+
34+
35+ ```
36+ cmake . -DMANIFOLD_CROSS_SECTION=ON -DMANIFOLD_USE_BUILTIN_CLIPPER2=ON -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DMANIFOLD_DEBUG=ON -DMANIFOLD_STRICT=ON -DMANIFOLD_PAR=ON -DMANIFOLD_EXPORT=ON -DMANIFOLD_USE_BUILTIN_TBB=ON -DMANIFOLD_ASSERT=ON -DMANIFOLD_PAR=ON -A x64 -B build
37+ cd build
38+ cmake --build . --target ALL_BUILD --config Release
39+ cd ..
40+ mkdir -p bindings\java\src\main\resources\manifold3d\natives\win-x86_64\
41+ cp build\lib\Release\manifold.dll bindings\java\src\main\resources\manifold3d\natives\win-x86_64\manifold.dll
42+ cp build\lib\Release\manifoldc.dll bindings\java\src\main\resources\manifold3d\natives\win-x86_64\manifoldc.dll
43+ cd bindings\java
44+ mvn test --file pom.xml --no-transfer-progress
45+ ```
46+
47+ #### Maven install
648
749for local install to maven of a snapshot run:
850
You can’t perform that action at this time.
0 commit comments