Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #475 from Enlik/volume-backend-compile-choose

panel-volume: add compile time switch for ALSA/Pulseaudio support
  • Loading branch information...
commit 2f92993b4587f0ee6024743fce3210134234dbc6 2 parents 08cefd8 + 75f4cdb
@SokoloffA SokoloffA authored
Showing with 12 additions and 2 deletions.
  1. +12 −2 razorqt-panel/CMakeLists.txt
View
14 razorqt-panel/CMakeLists.txt
@@ -33,7 +33,12 @@ setByDefault(HELLOWORLD_PLUGIN No)
setByDefault(CPULOAD_PLUGIN Yes)
setByDefault(NETWORKMONITOR_PLUGIN Yes)
setByDefault(SENSORS_PLUGIN Yes)
+
setByDefault(VOLUME_PLUGIN Yes)
+# Options for the volume plugin.
+setByDefault(VOLUME_USE_PULSEAUDIO Yes)
+setByDefault(VOLUME_USE_ALSA Yes)
+
setByDefault(KBINDICATOR_PLUGIN Yes)
setByDefault(SYSSTAT_PLUGIN Yes)
# *******************************************************************
@@ -164,8 +169,13 @@ if (SENSORS_PLUGIN)
endif (SENSORS_PLUGIN)
if (VOLUME_PLUGIN)
- FIND_PACKAGE(PulseAudio)
- FIND_PACKAGE(ALSA)
+ if (VOLUME_USE_PULSEAUDIO)
+ FIND_PACKAGE(PulseAudio)
+ endif (VOLUME_USE_PULSEAUDIO)
+
+ if (VOLUME_USE_ALSA)
+ FIND_PACKAGE(ALSA)
+ endif (VOLUME_USE_ALSA)
if (PULSEAUDIO_FOUND OR ALSA_FOUND)
set(ENABLED_PLUGINS ${ENABLED_PLUGINS} "Volume")
Please sign in to comment.
Something went wrong with that request. Please try again.