File: polkit-agent.pro

package info (click to toggle)
ukui-biometric-auth 1.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 548 kB
  • sloc: cpp: 1,603; ansic: 468; makefile: 88; sh: 39
file content (63 lines) | stat: -rw-r--r-- 1,236 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
QT       += core gui dbus
CONFIG   += c++11 link_pkgconfig
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = polkit-ukui-authentication-agent-1
TEMPLATE = app

CONFIG += debug


PREFIX = /${UKUI_BIOMETRIC}/ukui-polkit-agent

DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0

DEFINES += INSTALL_PATH=$${PREFIX} \
           UKUI_BIOMETRIC=${UKUI_BIOMETRIC}

INCLUDEPATH +=  $$PWD/../common/ \
                $$PWD/../bioauth/include/

VPATH += $$PWD/../common/

LIBS +=  -lpolkit-qt5-core-1 \
        -L$$PWD/../bioauth -lbioauth


PKGCONFIG += polkit-qt5-agent-1

HEADERS += \
    src/mainwindow.h \
    src/PolkitListener.h

FORMS += \
    src/mainwindow.ui

SOURCES += \
    src/PolkitAgent.cpp \
    src/mainwindow.cpp \
    src/PolkitListener.cpp \
    generic.cpp

RESOURCES += \
    assets.qrc

DISTFILES += \
    src/main.qss


TRANSLATIONS += i18n_ts/zh_CN.ts

system(lrelease i18n_ts/*.ts)

qm_file.files = i18n_ts/*.qm
qm_file.path = $${PREFIX}/i18n_qm/
#qm_file.path = ${DESTDIR_POLKIT}$${PREFIX}/i18n_qm/

desktop_file.files = data/*.desktop
desktop_file.path = /etc/xdg/autostart/
# desktop_file.path = ${DESTDIR_POLKIT}/etc/xdg/autostart/

target.path = /${LIB_PATH}/ukui-polkit

INSTALLS += qm_file target desktop_file