Skip to content

Commit

Permalink
OpenAL-soft: Apply megasource-specific patches.
Browse files Browse the repository at this point in the history
  • Loading branch information
MikuAuahDark committed Mar 20, 2024
1 parent 73a6fc9 commit 1f5af9e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions libs/openal-soft/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1154,6 +1154,9 @@ if(ALSOFT_BACKEND_OBOE)
set(ALC_OBJS ${ALC_OBJS} alc/backends/oboe.cpp alc/backends/oboe.h)
set(BACKENDS "${BACKENDS} Oboe,")
set(EXTRA_LIBS ${OBOE_TARGET} ${EXTRA_LIBS})
if(MEGA)
set(ALC_OBJS ${ALC_OBJS} opensl_latency.cpp)
endif()
endif()
endif()
if(ALSOFT_REQUIRE_OBOE AND NOT HAVE_OBOE)
Expand Down Expand Up @@ -1470,6 +1473,8 @@ else()
endif()
endif()

set(OPENAL_LIB_NAME ${IMPL_TARGET} PARENT_SCOPE)

target_include_directories(${IMPL_TARGET}
PUBLIC
$<BUILD_INTERFACE:${OpenAL_SOURCE_DIR}/include>
Expand Down Expand Up @@ -1829,3 +1834,7 @@ if(EXTRA_INSTALLS)
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
endif()

if(MEGA)
install(TARGETS ${IMPL_TARGET} RUNTIME DESTINATION . LIBRARY DESTINATION .)
endif()

0 comments on commit 1f5af9e

Please sign in to comment.