Skip to content

Commit

Permalink
macos: hack to work on actions builds
Browse files Browse the repository at this point in the history
  • Loading branch information
mcallegari committed Jan 8, 2025
1 parent cf254bd commit c05a47f
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions platforms/macos/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ install(CODE "execute_process(COMMAND sed -i -e \"s/__QLC_VERSION__/${APPVERSION

set(APPLE_CODESIGN_ENTITLEMENTS "qlcplus.entitlements")

# Starting with arm64 macOS Apple will require ad-hoc code signatures,
# which can be generated by setting the identity to a single dash (-).
# These only include a checksum for verifying integrity, not an actual
# signature.
if(NOT APPLE_CODESIGN_IDENTITY)
# Starting with arm64 macOS Apple will require ad-hoc code signatures,
# which can be generated by setting the identity to a single dash (-).
# These only include a checksum for verifying integrity, not an actual
# signature.
if(NOT APPLE_CODESIGN_IDENTITY)
set(APPLE_CODESIGN_IDENTITY -)
endif()
endif()

# install support libraries
set(FFTW_LIBNAME "libfftw3.3.dylib")
Expand Down Expand Up @@ -59,7 +59,11 @@ install(FILES ${MPG123_LIBDIR}/${MPG123_LIBNAME} DESTINATION ${INSTALLROOT}/${LI
install(FILES ${VORBIS_LIBDIR}/${VORBIS_LIBNAME} DESTINATION ${INSTALLROOT}/${LIBSDIR})
install(FILES ${VORBISENC_LIBDIR}/${VORBISENC_LIBNAME} DESTINATION ${INSTALLROOT}/${LIBSDIR})
# this is ugly, thanks to lame developers
install(FILES /opt/homebrew/Cellar/lame/3.100/lib/libmp3lame.0.dylib DESTINATION ${INSTALLROOT}/${LIBSDIR})
if($ENV{USER} STREQUAL "runner")
install(FILES /usr/local/homebrew/Cellar/lame/3.100/lib/libmp3lame.0.dylib DESTINATION ${INSTALLROOT}/${LIBSDIR})
else()
install(FILES /opt/homebrew/Cellar/lame/3.100/lib/libmp3lame.0.dylib DESTINATION ${INSTALLROOT}/${LIBSDIR})
endif()

# fix dylib lookup paths
install(CODE "execute_process(COMMAND install_name_tool -change
Expand Down Expand Up @@ -98,4 +102,4 @@ install(CODE "execute_process(COMMAND install_name_tool -change
install(CODE "execute_process(COMMAND install_name_tool -change
@loader_path/../../../../opt/libvorbis/lib/${VORBIS_LIBNAME}
@executable_path/../Frameworks/${VORBIS_LIBNAME}
${INSTALLROOT}/${LIBSDIR}/libsndfile.1.dylib)")
${INSTALLROOT}/${LIBSDIR}/libsndfile.1.dylib)")

0 comments on commit c05a47f

Please sign in to comment.