forked from nemomobile/qmlpinquery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathqmlpinquery.pro
54 lines (42 loc) · 1.55 KB
/
qmlpinquery.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
PROJECT_NAME = qmlpinquery
TEMPLATE = app
CONFIG += ordered hide_symbols
QT += qml quick dbus
TARGET = $$PROJECT_NAME
CONFIG -= app_bundle # OS X
CONFIG += link_pkgconfig
packagesExist(qdeclarative5-boostable) {
message("Building with qdeclarative5-boostable support")
DEFINES += HAS_BOOSTER
PKGCONFIG += qdeclarative5-boostable
} else {
warning("qdeclarative5-boostable not available; startup times will be slower")
}
PKGCONFIG += qofono-qt5
SOURCES += src/main.cpp \
src/ofonosimif.cpp
HEADERS += src/ofonosimif.h
RESOURCES += res.qrc
QML_FILES = qml/*.qml
JS_FILES = *qml/.js
OTHER_FILES += $${QML_FILES} $${JS_FILES}
target.path = $$INSTALL_ROOT/usr/bin/
INSTALLS += target
desktop.files = $${PROJECT_NAME}.desktop
desktop.path = $$INSTALL_ROOT/usr/share/applications
INSTALLS += desktop
# qml API we provide
qml_api.files = qml/api/*
qml_api.path = $$[QT_INSTALL_IMPORTS]/org/nemomobile/$$PROJECT_NAME
INSTALLS += qml_api
TRANSLATIONS += *.qml
dist.commands += rm -fR $${PROJECT_NAME}-$${VERSION} &&
dist.commands += git clone . $${PROJECT_NAME}-$${VERSION} &&
dist.commands += rm -fR $${PROJECT_NAME}-$${VERSION}/.git &&
dist.commands += rm -f $${PROJECT_NAME}-$${VERSION}/.gitignore &&
dist.commands += mkdir -p $${PROJECT_NAME}-$${VERSION}/ts &&
dist.commands += lupdate $${TRANSLATIONS} -ts $${PROJECT_NAME}-$${VERSION}/ts/$${PROJECT_NAME}.ts &&
dist.commands += tar jcpvf $${PROJECT_NAME}-$${VERSION}.tar.bz2 $${PROJECT_NAME}-$${VERSION} &&
dist.commands += rm -fR $${PROJECT_NAME}-$${VERSION}
QMAKE_EXTRA_TARGETS += dist
OTHER_FILES += rpm/*