Skip to content

Commit

Permalink
Add aarch64 MacOS .dylib and update src.cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
omeryusufyagci authored and omeryusufyagci committed Oct 26, 2024
1 parent 287ab97 commit 6009fc2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions MediaProcessor/cmake/src.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,15 @@ target_link_libraries(MediaProcessor PRIVATE ${SNDFILE_LIBRARIES})

if(APPLE)
if(CMAKE_OSX_ARCHITECTURES MATCHES "arm64")
set(DF_LIBRARY ${CMAKE_SOURCE_DIR}/lib/aarch64-apple-darwin/libdf.dylib)
set(DF_LIBRARY ${CMAKE_SOURCE_DIR}/lib/libdf.dylib)
else()
set(DF_LIBRARY ${CMAKE_SOURCE_DIR}/lib/x86_64-apple-darwin/libdf.dylib)
message(FATAL_ERROR "x86_64 MacOS is currently not supported (should come very soon!).")
# set(DF_LIBRARY ${CMAKE_SOURCE_DIR}/lib/libdf.dylib)
endif()
elseif(WIN32)
set(DF_LIBRARY ${CMAKE_SOURCE_DIR}/lib/x86_64-pc-windows-gnu/libdf.dll.a) # link with .dll.a, use .dll at runtime
set(DF_LIBRARY ${CMAKE_SOURCE_DIR}/lib/libdf.dll.a) # link with .dll.a, use .dll at runtime
elseif(UNIX)
set(DF_LIBRARY ${CMAKE_SOURCE_DIR}/lib/x86_64-unknown-linux-gnu/libdf.so)
set(DF_LIBRARY ${CMAKE_SOURCE_DIR}/lib/libdf.so)
else()
message(FATAL_ERROR "Unsupported platform")
endif()
Expand Down
Binary file added MediaProcessor/lib/libdf.dylib
Binary file not shown.

0 comments on commit 6009fc2

Please sign in to comment.