Browse Source

mac-virtualcam: Build DAL plugin for ARM64e target as well

This change fixes an issue where the DAL plugin would not load due to
not supporting the architecture arm64e. We update the build
configuration to build a universal binary that includes arm64e as well.

See https://github.com/obsproject/obs-studio/issues/6285 for more
information regarding this issue.
Fabian Mastenbroek 3 years ago
parent
commit
9e29be5c79
1 changed files with 4 additions and 4 deletions
  1. 4 4
      plugins/mac-virtualcam/src/dal-plugin/CMakeLists.txt

+ 4 - 4
plugins/mac-virtualcam/src/dal-plugin/CMakeLists.txt

@@ -1,7 +1,3 @@
-# Build DAL plugin universal to ensure compatibility with Rosetta-translated
-# apps on arm64 hosts
-set(CMAKE_OSX_ARCHITECTURES "x86_64;arm64")
-
 project(mac-dal-plugin)
 
 find_library(COCOA Cocoa)
@@ -58,6 +54,10 @@ set_target_properties(
              FOLDER "plugins"
              VERSION "0"
              SOVERSION "0"
+             # Force the DAL plugin to be built for arm64e as well. Note that
+             # we cannot build OBS for arm64e, since its libraries are not
+             # built for this architecture at the moment.
+             OSX_ARCHITECTURES "x86_64;arm64;arm64e"
              LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/../../"
              MACOSX_BUNDLE_INFO_PLIST
              "${CMAKE_SOURCE_DIR}/cmake/bundle/macOS/Virtualcam-Info.plist.in")