File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -168,6 +168,11 @@ To disable: `-DSERVICE_PIPEWIRE=OFF`
168168
169169Dependencies: ` libpipewire `
170170
171+ ### OSS
172+ This feature enables sound system support on FreeBSD.
173+
174+ To disable: ` -DSERVICE_OSS=OFF `
175+
171176### StatusNotifier / System Tray
172177This feature enables system tray support using the status notifier dbus protocol.
173178
Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ boption(ASAN "ASAN (dev)" OFF) # note: better output with gcc than clang
4646boption (FRAME_POINTERS "Keep Frame Pointers (dev)" ${ASAN} )
4747
4848if (CMAKE_SYSTEM_NAME STREQUAL "FreeBSD" )
49+ boption (SERVICE_OSS "Open Sound System" ON )
4950 boption (USE_JEMALLOC "Use jemalloc" OFF )
5051else ()
5152 boption (USE_JEMALLOC "Use jemalloc" ON )
@@ -78,6 +79,7 @@ boption(SERVICE_UPOWER "UPower" ON)
7879boption (SERVICE_NOTIFICATIONS "Notifications" ON )
7980boption (BLUETOOTH "Bluetooth" ON )
8081boption (NETWORK "Network" ON )
82+ boption (SERVICE_OSS "Open Sound System" OFF )
8183
8284include (cmake/install-qml-module.cmake )
8385include (cmake/util.cmake )
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ set shell id.
1111
1212## New Features
1313
14+ - Added support for OSS on FreeBSD.
1415- Added support for creating Polkit agents.
1516- Added support for creating wayland idle inhibitors.
1617- Added support for wayland idle timeouts.
Original file line number Diff line number Diff line change 4545 withWayland ? true ,
4646 withX11 ? true ,
4747 withPipewire ? true ,
48+ withOSS ? false ,
4849 withPam ? true ,
4950 withHyprland ? true ,
5051 withI3 ? true ,
105106 ( lib . cmakeBool "WAYLAND" withWayland )
106107 ( lib . cmakeBool "SCREENCOPY" ( libgbm != null ) )
107108 ( lib . cmakeBool "SERVICE_PIPEWIRE" withPipewire )
109+ ( lib . cmakeBool "SERVICE_OSS" withOSS )
108110 ( lib . cmakeBool "SERVICE_PAM" withPam )
109111 ( lib . cmakeBool "SERVICE_NETWORKMANAGER" withNetworkManager )
110112 ( lib . cmakeBool "SERVICE_POLKIT" withPolkit )
Original file line number Diff line number Diff line change @@ -29,3 +29,7 @@ endif()
2929if (SERVICE_NOTIFICATIONS)
3030 add_subdirectory (notifications )
3131endif ()
32+
33+ if (SERVICE_OSS)
34+ add_subdirectory (oss )
35+ endif ()
Original file line number Diff line number Diff line change 1+ qt_add_library (quickshell-service-oss STATIC
2+ oss.cpp
3+ )
4+
5+ qt_add_qml_module (quickshell-service-oss
6+ URI Quickshell.Services.OSS
7+ VERSION 0.1
8+ DEPENDENCIES QtQml
9+ )
10+
11+ install_qml_module (quickshell-service-oss )
12+
13+ target_link_libraries (quickshell PRIVATE quickshell-service-ossplugin Qt6::Core )
Original file line number Diff line number Diff line change 1+ name = "Quickshell.Services.OSS"
2+ description = "Open Sound System (FreeBSD)"
3+ headers = [
4+ "oss.hpp",
5+ ]
6+ -----
You can’t perform that action at this time.
0 commit comments