devopvoid / webrtc-java

WebRTC for desktop platforms running Java
Apache License 2.0
264 stars 62 forks source link

Reference for creating macOS Apple Silicon binaries #97

Closed doctorpangloss closed 1 year ago

doctorpangloss commented 2 years ago

Take a look at https://github.com/Unity-Technologies/com.unity.webrtc/blob/4ea618813de284df567b39dd25dfd2cecc79da79/BuildScripts~/build_libwebrtc_macos.sh#L71

Should be painless to add arm64 early in your webrtc CMakeLists and add the lipo command here: https://github.com/devopvoid/webrtc-java/blob/a92ebc2c5f9cba994f40c80a54f86c0b11709618/webrtc-jni/src/main/cpp/dependencies/webrtc/CMakeLists.txt#L188

devopvoid commented 2 years ago

Thanks for the link. The problem is, I can't test them, relying on someone to test it. Trying to get an m1 in my hands :)

devopvoid commented 1 year ago

Apple Silicon binary was released for 0.8.0.