2017-01-26 16:17:02 +00:00
|
|
|
#
|
|
|
|
# Build options
|
|
|
|
#
|
|
|
|
|
|
|
|
checklib(ENABLE_ALSA "pkg-config" alsa)
|
|
|
|
checklib(ENABLE_CURL "pkg-config" libcurl)
|
|
|
|
checklib(ENABLE_I3 "binary" i3)
|
|
|
|
checklib(ENABLE_MPD "pkg-config" libmpdclient)
|
2018-06-19 03:16:09 +00:00
|
|
|
checklib(WITH_LIBNL "pkg-config" libnl-genl-3.0)
|
|
|
|
if(WITH_LIBNL)
|
|
|
|
checklib(ENABLE_NETWORK "pkg-config" libnl-genl-3.0)
|
2018-09-13 14:12:31 +00:00
|
|
|
set(WIRELESS_LIB "libnl")
|
2018-06-19 03:16:09 +00:00
|
|
|
else()
|
|
|
|
checklib(ENABLE_NETWORK "cmake" Libiw)
|
2018-09-13 14:12:31 +00:00
|
|
|
set(WIRELESS_LIB "wireless-tools")
|
2018-06-19 03:16:09 +00:00
|
|
|
endif()
|
2017-09-08 03:27:21 +00:00
|
|
|
checklib(ENABLE_PULSEAUDIO "pkg-config" libpulse)
|
2017-09-26 02:24:19 +00:00
|
|
|
checklib(ENABLE_PULSEAUDIO "binary" pulseaudio)
|
2018-05-13 10:13:34 +00:00
|
|
|
checklib(WITH_XKB "pkg-config" xcb-xkb)
|
2017-01-26 16:17:02 +00:00
|
|
|
checklib(WITH_XRM "pkg-config" xcb-xrm)
|
2017-01-26 23:34:59 +00:00
|
|
|
checklib(WITH_XRANDR_MONITORS "pkg-config" "xcb-randr>=1.12")
|
2017-09-06 06:35:29 +00:00
|
|
|
checklib(WITH_XCURSOR "pkg-config" "xcb-cursor")
|
2017-01-26 16:17:02 +00:00
|
|
|
|
2017-01-27 12:30:23 +00:00
|
|
|
if(NOT DEFINED ENABLE_CCACHE AND CMAKE_BUILD_TYPE_UPPER MATCHES DEBUG)
|
|
|
|
set(ENABLE_CCACHE ON)
|
|
|
|
endif()
|
|
|
|
|
2017-01-26 16:17:02 +00:00
|
|
|
option(CXXLIB_CLANG "Link against libc++" OFF)
|
|
|
|
option(CXXLIB_GCC "Link against stdlibc++" OFF)
|
|
|
|
|
|
|
|
option(BUILD_IPC_MSG "Build ipc messager" ON)
|
|
|
|
option(BUILD_TESTS "Build testsuite" OFF)
|
|
|
|
|
|
|
|
option(ENABLE_ALSA "Enable alsa support" ON)
|
|
|
|
option(ENABLE_CURL "Enable curl support" ON)
|
|
|
|
option(ENABLE_I3 "Enable i3 support" ON)
|
|
|
|
option(ENABLE_MPD "Enable mpd support" ON)
|
2018-06-19 03:16:09 +00:00
|
|
|
option(WITH_LIBNL "Use netlink interface for wireless" ON)
|
2017-01-26 16:17:02 +00:00
|
|
|
option(ENABLE_NETWORK "Enable network support" ON)
|
|
|
|
option(ENABLE_XKEYBOARD "Enable xkeyboard support" ON)
|
2017-09-08 03:27:21 +00:00
|
|
|
option(ENABLE_PULSEAUDIO "Enable PulseAudio support" ON)
|
2017-01-26 16:17:02 +00:00
|
|
|
|
|
|
|
option(WITH_XRANDR "xcb-randr support" ON)
|
|
|
|
option(WITH_XRANDR_MONITORS "xcb-randr monitor support" ON)
|
|
|
|
option(WITH_XRENDER "xcb-render support" OFF)
|
|
|
|
option(WITH_XDAMAGE "xcb-damage support" OFF)
|
|
|
|
option(WITH_XSYNC "xcb-sync support" OFF)
|
|
|
|
option(WITH_XCOMPOSITE "xcb-composite support" OFF)
|
|
|
|
option(WITH_XKB "xcb-xkb support" ON)
|
|
|
|
option(WITH_XRM "xcb-xrm support" ON)
|
2017-09-06 06:35:29 +00:00
|
|
|
option(WITH_XCURSOR "xcb-cursor support" ON)
|
2017-01-26 16:17:02 +00:00
|
|
|
|
2018-02-26 20:09:51 +00:00
|
|
|
option(DEBUG_LOGGER "Trace logging" ON)
|
|
|
|
|
2017-01-27 12:30:23 +00:00
|
|
|
if(CMAKE_BUILD_TYPE_UPPER MATCHES DEBUG)
|
2018-02-26 20:09:51 +00:00
|
|
|
option(DEBUG_LOGGER_VERBOSE "Trace logging (verbose)" OFF)
|
2017-01-27 12:30:23 +00:00
|
|
|
option(DEBUG_HINTS "Debug clickable areas" OFF)
|
|
|
|
option(DEBUG_WHITESPACE "Debug whitespace" OFF)
|
|
|
|
option(DEBUG_FONTCONFIG "Debug fontconfig" OFF)
|
|
|
|
endif()
|
2017-01-26 16:17:02 +00:00
|
|
|
|
|
|
|
set(SETTING_ALSA_SOUNDCARD "default"
|
|
|
|
CACHE STRING "Name of the ALSA soundcard driver")
|
|
|
|
set(SETTING_BSPWM_SOCKET_PATH "/tmp/bspwm_0_0-socket"
|
|
|
|
CACHE STRING "Path to bspwm socket")
|
|
|
|
set(SETTING_BSPWM_STATUS_PREFIX "W"
|
|
|
|
CACHE STRING "Prefix prepended to the bspwm status line")
|
|
|
|
set(SETTING_CONNECTION_TEST_IP "8.8.8.8"
|
|
|
|
CACHE STRING "Address to ping when testing network connection")
|
|
|
|
set(SETTING_PATH_ADAPTER "/sys/class/power_supply/%adapter%"
|
|
|
|
CACHE STRING "Path to adapter")
|
|
|
|
set(SETTING_PATH_BACKLIGHT_MAX "/sys/class/backlight/%card%/max_brightness"
|
|
|
|
CACHE STRING "Path to file containing the maximum backlight value")
|
|
|
|
set(SETTING_PATH_BACKLIGHT_VAL "/sys/class/backlight/%card%/brightness"
|
|
|
|
CACHE STRING "Path to file containing the current backlight value")
|
|
|
|
set(SETTING_PATH_BATTERY "/sys/class/power_supply/%battery%"
|
|
|
|
CACHE STRING "Path to battery")
|
|
|
|
set(SETTING_PATH_CPU_INFO "/proc/stat"
|
|
|
|
CACHE STRING "Path to file containing cpu info")
|
|
|
|
set(SETTING_PATH_MEMORY_INFO "/proc/meminfo"
|
|
|
|
CACHE STRING "Path to file containing memory info")
|
|
|
|
set(SETTING_PATH_MESSAGING_FIFO "/tmp/polybar_mqueue.%pid%"
|
|
|
|
CACHE STRING "Path to file containing the current temperature")
|
|
|
|
set(SETTING_PATH_TEMPERATURE_INFO "/sys/class/thermal/thermal_zone%zone%/temp"
|
|
|
|
CACHE STRING "Path to file containing the current temperature")
|
|
|
|
|
2017-01-27 12:30:23 +00:00
|
|
|
if(CMAKE_BUILD_TYPE_UPPER MATCHES DEBUG)
|
2017-01-26 16:17:02 +00:00
|
|
|
set(DEBUG_HINTS_OFFSET_X 0 CACHE INTEGER "Debug hint offset x")
|
|
|
|
set(DEBUG_HINTS_OFFSET_Y 0 CACHE INTEGER "Debug hint offset y")
|
|
|
|
endif()
|