File: shell.pro

package info (click to toggle)
ukui-control-center 3.22.1.29-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 42,420 kB
  • sloc: cpp: 77,963; xml: 2,408; sh: 30; makefile: 4
file content (182 lines) | stat: -rw-r--r-- 5,425 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
#-------------------------------------------------
#
# Project created by QtCreator 2019-12-21T09:41:12
#
#-------------------------------------------------

QT       += core gui network x11extras svg xml dbus KWindowSystem concurrent

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets quickwidgets

TARGET = ukui-control-center
DESTDIR = ..
TEMPLATE = app

DEFINES += QT_DEPRECATED_WARNINGS

#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

include(../env.pri)
include($$PROJECT_ROOTDIR/libukcc/widgets/Label/label.pri)
include($$PROJECT_ROOTDIR/libukcc/widgets/FlowLayout/flowlayout.pri)
include($$PROJECT_ROOTDIR/libukcc/widgets/ImageUtil/imageutil.pri)
include($$PROJECT_ROOTDIR/libukcc/interface.pri)

DEFINES += PLUGIN_INSTALL_DIRS='\\"$${PLUGIN_INSTALL_DIRS}\\"'
DEFINES += PLUGIN_INSTALL_UPDATE='\\"$${PLUGIN_INSTALL_UPDATE}\\"'

LIBS += -L$$[QT_INSTALL_LIBS] -lX11 -lgsettings-qt -ldconf
!contains(QMAKE_HOST.arch, sw_64){
    LIBS += -L$$[QT_INSTALL_LIBS] -lukui-log4qt
}

##加载gio库和gio-unix库,用于处理desktop文件
CONFIG        += link_pkgconfig \
                 C++11
PKGCONFIG     += gio-2.0 \
                 gio-unix-2.0 \
                 gsettings-qt \
                 kysdk-waylandhelper \
                 kysdk-diagnostics \
                 kysdk-qtwidgets \
                 kysdk-waylandhelper

exists(/usr/include/kysdk/kysdk-system/libkysysinfo.h) {
    DEFINES += KY_SDK_SYSINFO
    PKGCONFIG += kysdk-sysinfo
}

DBUS_ADAPTORS += $$PROJECT_ROOTDIR/data/org.ukui.ukcc.search.xml
DBUS_INTERFACES += $$PROJECT_ROOTDIR/data/org.ukui.ukcc.search.xml

desktop.files += ukui-control-center.desktop
desktop.path = /usr/share/applications

schemes.files += $$PROJECT_ROOTDIR/data/*.xml
schemes.path = /usr/share/glib-2.0/schemas/

face.files += $$PROJECT_ROOTDIR/data/faces/
face.path = /usr/share/ukui/

moZH.files += $$PROJECT_ROOTDIR/data/zh_CN/installer-timezones.mo
moZH.path = /usr/share/locale/zh_CN/LC_MESSAGES/

moBO.files += $$PROJECT_ROOTDIR/data/bo_CN/installer-timezones.mo
moBO.path = /usr/share/locale/bo_CN/LC_MESSAGES/

guideCN.files += $$PROJECT_ROOTDIR/data/zh_CN/
guideCN.path += /usr/share/kylin-user-guide/data/guide/ukui-control-center/

guideEN.files += $$PROJECT_ROOTDIR/data/en_US/
guideEN.path += /usr/share/kylin-user-guide/data/guide/ukui-control-center/

imageformats.files += $$PROJECT_ROOTDIR/data/ukui-control-center.png
imageformats.path = /usr/share/kylin-user-guide/data/guide/ukui-control-center/

target.source += $$TARGET
target.path = /usr/bin

search.files += $$PROJECT_ROOTDIR/data/org.ukui.ukcc.search.service
search.path = /usr/share/dbus-1/services/

modules.files += $$PROJECT_ROOTDIR/data/ukui-control-center-config.json
modules.path += /usr/share/ukui-control-center/data/

protocol.files += $$PROJECT_ROOTDIR/data/*.txt
protocol.path += /usr/share/protocol/

ukccYaml.files +=  $$PROJECT_ROOTDIR/data/*.yaml
ukccYaml.path += /etc/kylin-config/basic/

INSTALLS +=  \
            target  \
            desktop \
            schemes \
            face    \
            moZH    \
            moBO    \
            guideCN \
            imageformats \
            guideEN  \
            modules \
            protocol \
            search   \
            ukccYaml \

INCLUDEPATH += qtsingleapplication \
               /usr/include/dconf

DEPENDPATH += qtsingleapplication

SOURCES += \
    iconbutton.cpp \
    component/leftmenulist.cpp \
    customstyle.cpp \
    leftsidebarwidget.cpp \
    main.cpp \
    mainwindow.cpp \
    framelessExtended/cursorposcalculator.cpp \
    framelessExtended/framelesshandle.cpp \
    framelessExtended/widgethandlerealize.cpp \
    homepagewidget.cpp \
    modulepagewidget.cpp \
    mstackwidget.cpp \
    pinyin.cpp \
    prescene.cpp \
    searchwidget.cpp \
    titlewidget.cpp \
    ukccabout.cpp \
    ukccsearchserver.cpp \
    component/leftwidgetitem.cpp \
    qtsingleapplication/qtsingleapplication.cpp \
    qtsingleapplication/qtlocalpeer.cpp \
    utils/functionselect.cpp \
    utils/keyvalueconverter.cpp \
    utils/modulefactory.cpp \
    utils/xatom-helper.cpp

HEADERS += \
    iconbutton.h \
    component/leftmenulist.h \
    customstyle.h \
    leftsidebarwidget.h \
    mainwindow.h \
    interface.h \
    framelessExtended/cursorposcalculator.h \
    framelessExtended/framelesshandle.h \
    framelessExtended/framelesshandleprivate.h \
    framelessExtended/widgethandlerealize.h \
    homepagewidget.h \
    modulepagewidget.h \
    mstackwidget.h \
    pinyin.h \
    prescene.h \
    searchwidget.h \
    titlewidget.h \
    ukccabout.h \
    ukccsearchserver.h \
    component/leftwidgetitem.h \
    qtsingleapplication/qtsingleapplication_copy.h \
    qtsingleapplication/qtsingleapplication.h \
    qtsingleapplication/qtlocalpeer.h \
    utils/functionselect.h \
    utils/keyvalueconverter.h \
    utils/modulefactory.h \
    utils/xatom-helper.h

FORMS += \
    mainwindow.ui \
    homepagewidget.ui \
    modulepagewidget.ui

RESOURCES += \
    res/resfile.qrc

DISTFILES += \
    ../data/installer-timezones.mo \
    ../data/org.ukui.control-center.panel.plugins.gschema.xml \
    ../data/org.ukui.control-center.personalise.gschema.xml \
    ../data/org.ukui.control-center.wifi.switch.gschema.xml \
    ../data/org.ukui.control-center.vino.xml \
    ../data/ukui-control-center-config.json \
    res/search.xml