forked from nemomobile/mlite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmlite.pro
91 lines (73 loc) · 2.35 KB
/
mlite.pro
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
system(qdbusxml2cpp notificationmanager.xml -p mnotificationmanagerproxy -c MNotificationManagerProxy -i metatypedeclarations.h)
QT = core dbus
TARGET = $$qtLibraryTarget(mlite)
TEMPLATE = lib
DEFINES += MLITE_LIBRARY
CONFIG += link_pkgconfig
packagesExist(gconf-2.0) {
PKGCONFIG += gconf-2.0
DEFINES += HAVE_GCONF
HEADERS += mgconfitem.h \
MGConfItem
SOURCES += mgconfitem.cpp
INSTALL_HEADERS += mgconfitem.h \
MGConfItem
} else {
warning("gconf-2.0 not found; MGConfItem will not be built")
}
equals(QT_MAJOR_VERSION, 4) {
QT += gui
include(json/json.pri)
SOURCES += mnotificationmanagerproxy.cpp \
mnotification.cpp \
mnotificationgroup.cpp \
mremoteaction.cpp
HEADERS += mnotificationmanagerproxy.h \
mnotification.h \
mnotification_p.h \
mnotificationgroup.h \
mnotificationgroup_p.h \
MNotification \
MNotificationGroup \
mremoteaction.h
INSTALL_HEADERS += mnotification.h \
mnotificationgroup.h \
mremoteaction.h \
MNotification \
MNotificationGroup \
MRemoteAction
}
OBJECTS_DIR = .obj
MOC_DIR = .moc
SOURCES += \
mdesktopentry.cpp \
mfiledatastore.cpp
HEADERS += \
mdesktopentry_p.h \
mdesktopentry.h \
mlite-global.h \
mfiledatastore.h \
mfiledatastore_p.h \
mdataaccess.h \
mdatastore.h \
MDesktopEntry
# TODO: sanitize based on conditional builds
INSTALL_HEADERS += \
mdesktopentry.h \
mlite-global.h \
mfiledatastore.h \
MDesktopEntry
pcfiles.files += mlite.pc
pcfiles.path += $$INSTALL_ROOT/$$[QT_INSTALL_LIBS]/pkgconfig
headers.files += $$INSTALL_HEADERS
headers.path += $$INSTALL_ROOT/usr/include/mlite
target.path += $$[QT_INSTALL_LIBS]
INSTALLS += target headers pcfiles
TRANSLATIONS += $${SOURCES} $${HEADERS} $${OTHER_FILES}
VERSION = 0.0.10
PROJECT_NAME = mlite
dist.commands += rm -fR $${PROJECT_NAME}-$${VERSION} &&
dist.commands += git clone . $${PROJECT_NAME}-$${VERSION} &&
dist.commands += rm -fR $${PROJECT_NAME}-$${VERSION}/.git &&
dist.commands += tar jcpvf $${PROJECT_NAME}-$${VERSION}.tar.bz2 $${PROJECT_NAME}-$${VERSION}
QMAKE_EXTRA_TARGETS += dist