bfe049188d45f97685922d374f265ca28f07a653
[staging/HomeScreen.git] / HomeScreen / HomeScreen.pro
1 # Copyright (C) 2016 Mentor Graphics Development (Deutschland) GmbH
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #      http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 QT       += core gui dbus
16
17 greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
18
19 TARGET = HomeScreen
20 TEMPLATE = app
21
22
23 SOURCES += \
24     src/main.cpp \
25     src/mainwindow.cpp \
26     src/settingswidget.cpp \
27     src/popupwidget.cpp \
28     src/controlbarwidget.cpp \
29     src/statusbarwidget.cpp
30
31 HEADERS  += \
32     ../interfaces/daynightmode.h \
33     ../interfaces/popup.h \
34     src/mainwindow.h \
35     src/settingswidget.h \
36     src/popupwidget.h \
37     src/controlbarwidget.h \
38     src/statusbarwidget.h \
39     $$OUT_PWD/../interfaces/daynightmode_adapter.h \      #generated dbus adapter
40     $$OUT_PWD/../interfaces/daynightmode_proxy.h \        #generated dbus proxy
41     $$OUT_PWD/../interfaces/popup_adapter.h \             #generated dbus adapter
42     $$OUT_PWD/../interfaces/popup_proxy.h \               #generated dbus proxy
43     $$OUT_PWD/../interfaces/statusbar_adapter.h \         #generated dbus adapter
44     $$OUT_PWD/../interfaces/statusbar_proxy.h             #generated dbus proxy
45
46 INCLUDEPATH += $$OUT_PWD/../interfaces
47
48 LIBS += -L$$OUT_PWD/../interfaces -linterfaces
49
50
51 FORMS    += \
52     resources/mainwindow.ui \
53     resources/settingswidget.ui \
54     resources/popupwidget.ui \
55     resources/controlbarwidget.ui \
56     resources/statusbarwidget.ui
57
58 TRANSLATIONS = \
59     resources/translations/homescreen_en_US.ts \
60     resources/translations/homescreen_de_DE.ts \
61     resources/translations/homescreen_ja_JP.ts
62
63 OTHER_FILES += \
64     README.md
65
66 RESOURCES += \
67     resources/homescreen.qrc
68
69 copydata.commands = $(COPY_DIR) $$PWD/resources/colorschemes $$OUT_PWD
70 HomeScreen.depends = $(HomeScreen) copydata
71 export(HomeScreen.depends)
72 export(copydata.commands)
73 QMAKE_EXTRA_TARGETS += HomeScreen copydata
74
75 # remove generated files
76 QMAKE_CLEAN += -r \
77     $$OUT_PWD/HomeScreen \
78     $$OUT_PWD/Makefile