cmake: Move OpenSLES detection to AudioCommon through find_package()

This commit is contained in:
Florent Castelli
2017-02-04 00:55:29 +01:00
parent 529dc6aa53
commit fb02a321b6
3 changed files with 31 additions and 11 deletions

View File

@ -873,16 +873,6 @@ if(NOT ANDROID)
add_definitions(-DHAVE_HIDAPI=1)
endif()
find_library(OPENSLES_LIBRARIES NAMES OpenSLES)
find_path(OPENSLES_INCLUDE_DIR NAMES SLES/OpenSLES.h)
if (OPENSLES_LIBRARIES AND OPENSLES_INCLUDE_DIR)
set(OPENSLES_FOUND 1)
add_definitions(-DHAVE_OPENSLES=1)
include_directories(${OPENSLES_INCLUDE_DIR})
message(STATUS "OpenSLES found, enabling OpenSLES sound backend")
endif()
if(NOT DISABLE_WX)
find_package(wxWidgets COMPONENTS core aui adv)