Add simulator audio support
This commit is contained in:
@@ -21,4 +21,13 @@ if (NOT DEFINED ENV{ESP_IDF_VERSION})
|
||||
|
||||
target_link_libraries(simulator PRIVATE ${SDL2_LIBRARIES})
|
||||
|
||||
if (APPLE)
|
||||
target_sources(simulator PRIVATE Source/drivers/sdl_audio_permission.mm)
|
||||
target_link_libraries(simulator PRIVATE "-framework AVFoundation" "-framework Foundation")
|
||||
# The developer executable can also request recording outside an .app bundle.
|
||||
target_link_options(simulator INTERFACE
|
||||
"LINKER:-sectcreate,__TEXT,__info_plist,${CMAKE_CURRENT_SOURCE_DIR}/macos-info.plist")
|
||||
set_property(TARGET Tactility APPEND PROPERTY LINK_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/macos-info.plist")
|
||||
endif ()
|
||||
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user