mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-15 00:39:23 +01:00
CMake: Add an option to disable bluez support.
This removes bluetooth support.
This commit is contained in:
parent
c57f7414a8
commit
de485f3efc
@ -20,6 +20,7 @@ option(ENABLE_AO "Enables libao sound backend" ON)
|
|||||||
option(ENABLE_PULSEAUDIO "Enables PulseAudio sound backend" ON)
|
option(ENABLE_PULSEAUDIO "Enables PulseAudio sound backend" ON)
|
||||||
option(ENABLE_OPENAL "Enables OpenAL sound backend" ON)
|
option(ENABLE_OPENAL "Enables OpenAL sound backend" ON)
|
||||||
option(ENABLE_LLVM "Enables LLVM support, for disassembly" ON)
|
option(ENABLE_LLVM "Enables LLVM support, for disassembly" ON)
|
||||||
|
option(ENABLE_BLUEZ "Enables bluetooth support" ON)
|
||||||
|
|
||||||
# Maintainers: if you consider blanket disabling this for your users, please
|
# Maintainers: if you consider blanket disabling this for your users, please
|
||||||
# consider the following points:
|
# consider the following points:
|
||||||
@ -476,14 +477,18 @@ else()
|
|||||||
message("ao explicitly disabled, disabling ao sound backend")
|
message("ao explicitly disabled, disabling ao sound backend")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
check_lib(BLUEZ bluez bluez QUIET)
|
if(ENABLE_BLUEZ)
|
||||||
if(BLUEZ_FOUND)
|
check_lib(BLUEZ bluez bluez QUIET)
|
||||||
|
if(BLUEZ_FOUND)
|
||||||
add_definitions(-DHAVE_BLUEZ=1)
|
add_definitions(-DHAVE_BLUEZ=1)
|
||||||
message("bluez found, enabling bluetooth support")
|
message("bluez found, enabling bluetooth support")
|
||||||
else()
|
else()
|
||||||
add_definitions(-DHAVE_BLUEZ=0)
|
add_definitions(-DHAVE_BLUEZ=0)
|
||||||
message("bluez NOT found, disabling bluetooth support")
|
message("bluez NOT found, disabling bluetooth support")
|
||||||
endif(BLUEZ_FOUND)
|
endif()
|
||||||
|
else()
|
||||||
|
message("bluez explicitly disabled, disabling bluetooth support")
|
||||||
|
endif()
|
||||||
|
|
||||||
if(ENABLE_PULSEAUDIO)
|
if(ENABLE_PULSEAUDIO)
|
||||||
check_lib(PULSEAUDIO libpulse pulse QUIET)
|
check_lib(PULSEAUDIO libpulse pulse QUIET)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user