mirror of
https://github.com/swaywm/sway.git
synced 2024-12-28 07:56:31 +01:00
Make wallpaper optional (cmake flag)
This commit is contained in:
parent
cb8ac7fd4a
commit
b4ea9d492c
1 changed files with 8 additions and 5 deletions
|
@ -45,6 +45,7 @@ option(enable-swaygrab "Enables the swaygrab utility" YES)
|
||||||
option(enable-swaymsg "Enables the swaymsg utility" YES)
|
option(enable-swaymsg "Enables the swaymsg utility" YES)
|
||||||
option(enable-gdk-pixbuf "Use Pixbuf to support more image formats" YES)
|
option(enable-gdk-pixbuf "Use Pixbuf to support more image formats" YES)
|
||||||
option(enable-binding-event "Enables binding event subscription" YES)
|
option(enable-binding-event "Enables binding event subscription" YES)
|
||||||
|
option(default-wallpaper "Installs the default wallpaper" YES)
|
||||||
|
|
||||||
find_package(JsonC REQUIRED)
|
find_package(JsonC REQUIRED)
|
||||||
find_package(PCRE REQUIRED)
|
find_package(PCRE REQUIRED)
|
||||||
|
@ -123,10 +124,12 @@ install(
|
||||||
COMPONENT data
|
COMPONENT data
|
||||||
)
|
)
|
||||||
|
|
||||||
install(
|
if(default-wallpaper)
|
||||||
FILES ${CMAKE_CURRENT_SOURCE_DIR}/wallpaper.jpg
|
install(
|
||||||
DESTINATION share/sway
|
FILES ${CMAKE_CURRENT_SOURCE_DIR}/wallpaper.jpg
|
||||||
COMPONENT data
|
DESTINATION share/sway
|
||||||
)
|
COMPONENT data
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
feature_summary(WHAT ALL)
|
feature_summary(WHAT ALL)
|
||||||
|
|
Loading…
Reference in a new issue