forked from quickshell/quickshell
all: optimize build
This commit is contained in:
parent
1168879d6d
commit
7ffce72b31
51 changed files with 1526 additions and 1277 deletions
|
@ -8,17 +8,16 @@ qt_add_library(quickshell-x11 STATIC
|
|||
qt_add_qml_module(quickshell-x11
|
||||
URI Quickshell.X11
|
||||
VERSION 0.1
|
||||
DEPENDENCIES QtQuick
|
||||
)
|
||||
|
||||
install_qml_module(quickshell-x11)
|
||||
|
||||
add_library(quickshell-x11-init OBJECT init.cpp)
|
||||
|
||||
target_link_libraries(quickshell-x11 PRIVATE ${QT_DEPS} ${XCB_LIBRARIES})
|
||||
target_link_libraries(quickshell-x11-init PRIVATE ${QT_DEPS} ${XCB_LIBRARIES})
|
||||
target_link_libraries(quickshell-x11 PRIVATE Qt::Quick ${XCB_LIBRARIES})
|
||||
target_link_libraries(quickshell-x11-init PRIVATE Qt::Quick Qt::Qml ${XCB_LIBRARIES})
|
||||
|
||||
qs_pch(quickshell-x11)
|
||||
qs_pch(quickshell-x11plugin)
|
||||
qs_pch(quickshell-x11-init)
|
||||
qs_module_pch(quickshell-x11 SET large)
|
||||
|
||||
target_link_libraries(quickshell PRIVATE quickshell-x11plugin quickshell-x11-init)
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
#include <qguiapplication.h>
|
||||
#include <qlist.h>
|
||||
#include <qqml.h>
|
||||
#include <qstring.h>
|
||||
|
||||
#include "../core/plugin.hpp"
|
||||
#include "panel_window.hpp"
|
||||
|
@ -8,6 +10,8 @@
|
|||
namespace {
|
||||
|
||||
class X11Plugin: public QuickshellPlugin {
|
||||
QList<QString> dependencies() override { return {"window"}; }
|
||||
|
||||
bool applies() override { return QGuiApplication::platformName() == "xcb"; }
|
||||
|
||||
void init() override { XAtom::initAtoms(); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue