Rework to use launcher wrapper from libqtappfw
[apps/launcher.git] / launcher / launcher.pro
1 # Copyright (C) 2016, 2017 Mentor Graphics Development (Deutschland) GmbH
2 # Copyright (c) 2018,2019 TOYOTA MOTOR CORPORATION
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 #      http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15
16 TEMPLATE = app
17 TARGET = launcher
18 QT = qml quick gui-private dbus
19 CONFIG += c++11 link_pkgconfig
20 DESTDIR = $${OUT_PWD}
21 PKGCONFIG += qtappfw-applauncher
22
23 CONFIG(release, debug|release) {
24     QMAKE_POST_LINK = $(STRIP) --strip-unneeded $(TARGET)
25 }
26
27 DBUS_INTERFACES = $$[QT_SYSROOT]/usr/share/dbus-1/interfaces/org.automotivelinux.AppLaunch.xml
28
29 SOURCES += \
30     src/main.cpp \
31     src/applicationmodel.cpp \
32     src/appinfo.cpp
33
34 HEADERS  += \
35     src/applicationmodel.h \
36     src/appinfo.h
37
38 OTHER_FILES += \
39     README.md
40
41 RESOURCES += \
42     qml/images/images.qrc \
43     qml/qml.qrc
44
45 target.path = $${PREFIX}/usr/bin
46 target.files += $${OUT_PWD}/$${TARGET}
47 target.CONFIG = no_check_exist executable
48
49 INSTALLS += target