e73539e60c577d839419c76e5b68e71bebdeb13e
[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 SOURCES += \
23     src/main.cpp \
24     src/mainwindow.cpp \
25     src/settingswidget.cpp \
26     src/popupwidget.cpp \
27     src/controlbarwidget.cpp \
28     src/statusbarwidget.cpp \
29     src/applauncherwidget.cpp \
30     src/homescreencontrolinterface.cpp \
31     src/layouthandler.cpp
32
33 HEADERS  += \
34     ../interfaces/appframework.h \
35     ../interfaces/daynightmode.h \
36     ../interfaces/popup.h \
37     ../interfaces/statusbar.h \
38     src/mainwindow.h \
39     src/settingswidget.h \
40     src/popupwidget.h \
41     src/controlbarwidget.h \
42     src/statusbarwidget.h \
43     src/applauncherwidget.h \
44     src/homescreencontrolinterface.h \
45     src/layouthandler.h
46
47 INCLUDEPATH += $$OUT_PWD/../interfaces
48 INCLUDEPATH += ../interfaces/
49
50 LIBS += -L$$OUT_PWD/../interfaces -linterfaces
51
52
53 FORMS    += \
54     resources/mainwindow.ui \
55     resources/settingswidget.ui \
56     resources/popupwidget.ui \
57     resources/controlbarwidget.ui \
58     resources/statusbarwidget.ui \
59     resources/applauncherwidget.ui
60
61 TRANSLATIONS = \
62     resources/translations/homescreen_en_US.ts \
63     resources/translations/homescreen_de_DE.ts \
64     resources/translations/homescreen_ja_JP.ts
65
66 OTHER_FILES += \
67     README.md
68
69 RESOURCES += \
70     resources/homescreen.qrc
71
72 copydata.commands = $(COPY_DIR) $$PWD/resources/colorschemes $$OUT_PWD
73 HomeScreen.depends = $(HomeScreen) copydata
74 export(HomeScreen.depends)
75 export(copydata.commands)
76 QMAKE_EXTRA_TARGETS += HomeScreen copydata
77
78 # remove generated files
79 QMAKE_CLEAN += -r \
80     $$OUT_PWD/colorschemes \
81     $$OUT_PWD/HomeScreen \
82     $$OUT_PWD/Makefile