File tree 2 files changed +13
-1
lines changed
2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ option(BUILD_TESTING "Build tests" OFF)
9
9
option (ASAN "Enable ASAN" OFF ) # note: better output with gcc than clang
10
10
option (FRAME_POINTERS "Always keep frame pointers" ${ASAN} )
11
11
12
+ option (INSTALL_QML_LIB "Installing the QML lib" ON )
12
13
option (CRASH_REPORTER "Enable the crash reporter" ON )
13
14
option (USE_JEMALLOC "Use jemalloc over the system malloc implementation" ON )
14
15
option (SOCKETS "Enable unix socket support" ON )
@@ -30,6 +31,7 @@ option(SERVICE_UPOWER "UPower service" ON)
30
31
option (SERVICE_NOTIFICATIONS "Notification server" ON )
31
32
32
33
message (STATUS "Quickshell configuration" )
34
+ message (STATUS " QML lib installation: ${INSTALL_QML_LIB} " )
33
35
message (STATUS " Crash reporter: ${CRASH_REPORTER} " )
34
36
message (STATUS " Jemalloc: ${USE_JEMALLOC} " )
35
37
message (STATUS " Build tests: ${BUILD_TESTING} " )
@@ -119,6 +121,14 @@ find_package(Qt6 REQUIRED COMPONENTS ${QT_FPDEPS})
119
121
qt_standard_project_setup(REQUIRES 6.6)
120
122
set (QT_QML_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} /qml_modules)
121
123
124
+ if (INSTALL_QML_LIB)
125
+ install (
126
+ DIRECTORY ${CMAKE_BINARY_DIR} /qml_modules/
127
+ DESTINATION ${CMAKE_INSTALL_LIBDIR} /qt-6/qml
128
+ FILES_MATCHING PATTERN "*"
129
+ )
130
+ endif ()
131
+
122
132
# pch breaks clang-tidy..... somehow
123
133
if (NOT NO_PCH)
124
134
file (GENERATE
Original file line number Diff line number Diff line change 37
37
withPipewire ? true ,
38
38
withPam ? true ,
39
39
withHyprland ? true ,
40
+ withQMLLib ? true ,
40
41
} : buildStdenv . mkDerivation {
41
42
pname = "quickshell${ lib . optionalString debug "-debug" } " ;
42
43
version = "0.1.0" ;
75
76
++ lib . optional ( ! withWayland ) "-DWAYLAND=OFF"
76
77
++ lib . optional ( ! withPipewire ) "-DSERVICE_PIPEWIRE=OFF"
77
78
++ lib . optional ( ! withPam ) "-DSERVICE_PAM=OFF"
78
- ++ lib . optional ( ! withHyprland ) "-DHYPRLAND=OFF" ;
79
+ ++ lib . optional ( ! withHyprland ) "-DHYPRLAND=OFF"
80
+ ++ lib . optional ( ! withQMLLib ) "-DINSTALL_QML_LIB=OFF" ;
79
81
80
82
buildPhase = "ninjaBuildPhase" ;
81
83
enableParallelBuilding = true ;
You can’t perform that action at this time.
0 commit comments