src.pro 2.74 KB
Newer Older
1
TEMPLATE = lib
2
TARGET = systemsettings
3

4
CONFIG += qt create_pc create_prl no_install_prl c++11
5
QT += qml dbus systeminfo
6
QT -= gui
7

8
CONFIG += c++11 hide_symbols link_pkgconfig
9
PKGCONFIG += profile mlite5 mce timed-qt5 blkid libcrypto nemomodels-qt5 libsailfishkeyprovider connman-qt5 glib-2.0
10
PKGCONFIG += ssu-sysinfo nemodbus packagekitqt5 libsystemd sailfishusermanager sailfishaccesscontrol
11

12
system($$[QT_INSTALL_BINS]/qdbusxml2cpp -p mceiface.h:mceiface.cpp mce.xml)
13 14 15

SOURCES += \
    languagemodel.cpp \
16
    localeconfig.cpp \
17
    logging.cpp \
18
    datetimesettings.cpp \
19
    nfcsettings.cpp \
20 21 22 23
    profilecontrol.cpp \
    alarmtonemodel.cpp \
    mceiface.cpp \
    displaysettings.cpp \
24
    aboutsettings.cpp \
25
    certificatemodel.cpp \
26
    developermodesettings.cpp \
27
    batterystatus.cpp \
28
    diskusage.cpp \
29 30 31
    diskusage_impl.cpp \
    partition.cpp \
    partitionmanager.cpp \
32
    partitionmodel.cpp \
33
    deviceinfo.cpp \
34
    locationsettings.cpp \
35
    settingsvpnmodel.cpp \
36
    timezoneinfo.cpp \
37
    udisks2block.cpp \
38
    udisks2blockdevices.cpp \
39
    udisks2job.cpp \
40
    udisks2monitor.cpp \
41 42
    userinfo.cpp \
    usermodel.cpp
43

44
PUBLIC_HEADERS = \
45 46 47 48 49 50
    languagemodel.h \
    datetimesettings.h \
    profilecontrol.h \
    alarmtonemodel.h \
    mceiface.h \
    displaysettings.h \
51
    aboutsettings.h \
52
    certificatemodel.h \
53
    settingsvpnmodel.h \
54
    developermodesettings.h \
55
    batterystatus.h \
56
    udisks2block_p.h \
57
    udisks2defines.h \
58
    diskusage.h \
59 60 61
    partition.h \
    partitionmanager.h \
    partitionmodel.h \
62
    systemsettingsglobal.h \
63
    deviceinfo.h \
64
    locationsettings.h \
65
    timezoneinfo.h \
66 67
    userinfo.h \
    usermodel.h
68 69 70

HEADERS += \
    $$PUBLIC_HEADERS \
71
    aboutsettings_p.h \
72
    localeconfig.h \
73
    batterystatus_p.h \
74
    logging_p.h \
75
    diskusage_p.h \
76
    locationsettings_p.h \
77
    logging_p.h \
78
    nfcsettings.h \
79
    partition_p.h \
80
    partitionmanager_p.h \
81
    udisks2blockdevices_p.h \
82
    udisks2job_p.h \
83 84
    udisks2monitor_p.h \
    userinfo_p.h
85 86 87

DEFINES += \
    SYSTEMSETTINGS_BUILD_LIBRARY
88 89

develheaders.path = /usr/include/systemsettings
90
develheaders.files = $$PUBLIC_HEADERS
91 92 93 94

target.path = $$[QT_INSTALL_LIBS]
pkgconfig.files = $$PWD/pkgconfig/systemsettings.pc
pkgconfig.path = $$target.path/pkgconfig
95

96 97 98
locationconfig.files = $$PWD/location.conf
locationconfig.path = /etc/location

99
QMAKE_PKGCONFIG_NAME = lib$$TARGET
100
QMAKE_PKGCONFIG_VERSION = $$VERSION
101 102 103 104
QMAKE_PKGCONFIG_DESCRIPTION = System settings application development files
QMAKE_PKGCONFIG_LIBDIR = $$target.path
QMAKE_PKGCONFIG_INCDIR = $$develheaders.path
QMAKE_PKGCONFIG_DESTDIR = pkgconfig
105
QMAKE_PKGCONFIG_REQUIRES = Qt5Core Qt5DBus profile nemomodels-qt5 libsailfishkeyprovider connman-qt5
106

107
INSTALLS += target develheaders pkgconfig locationconfig