File: udisks2.pro

package info (click to toggle)
udisks2-qt5 5.0.6-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 352 kB
  • sloc: cpp: 2,611; xml: 522; makefile: 11
file content (62 lines) | stat: -rw-r--r-- 1,461 bytes parent folder | download | duplicates (2)
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
TARGET = udisks2-qt5
QT += core dbus
QT -= gui
TEMPLATE = lib

isEmpty(VERSION): VERSION = 0.0.1

SOURCES += \
    $$PWD/ddiskdevice.cpp \
    $$PWD/ddiskmanager.cpp \
    $$PWD/udisks2_dbus_common.cpp \
    $$PWD/dblockdevice.cpp \
    $$PWD/dblockpartition.cpp \
    $$PWD/dudisksjob.cpp

udisk2.files = $$PWD/org.freedesktop.UDisks2.xml
udisk2.header_flags = -i $$PWD/udisks2_dbus_common.h -N

DBUS_INTERFACES += udisk2 $$PWD/org.freedesktop.UDisks2.ObjectManager.xml

HEADERS += \
    $$PWD/ddiskdevice.h \
    $$PWD/udisks2_dbus_common.h \
    $$PWD/ddiskmanager.h \
    $$PWD/dblockdevice.h \
    $$PWD/dblockpartition.h \
    $$PWD/dudisksjob.h

include($$PWD/private/private.pri)

INCLUDEPATH += $$PWD

OTHER_FILES += $$PWD/*.xml

isEmpty(PREFIX): PREFIX = /usr

isEmpty(LIB_INSTALL_DIR) {
    target.path = $$PREFIX/lib
} else {
    target.path = $$LIB_INSTALL_DIR
}

isEmpty(INCLUDE_INSTALL_DIR) {
    includes.path = $$PREFIX/include/$$TARGET
} else {
    includes.path = $$INCLUDE_INSTALL_DIR
}

includes.files += $$PWD/*.h
includes_private.path = $$includes.path/private
includes_private.files += $$PWD/private/*.h

INSTALLS += includes includes_private target

CONFIG += create_pc create_prl no_install_prl

QMAKE_PKGCONFIG_LIBDIR = $$target.path
QMAKE_PKGCONFIG_VERSION = $$VERSION
QMAKE_PKGCONFIG_DESTDIR = pkgconfig
QMAKE_PKGCONFIG_NAME = $$TARGET
QMAKE_PKGCONFIG_DESCRIPTION = UDisks2 Library with Qt5
QMAKE_PKGCONFIG_INCDIR = $$includes.path