Using the Tizen application manager to receive information about installed apps and...
[staging/HomeScreen.git] / interfaces / interfaces.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 dbus
16 QT  -= gui
17
18 greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
19
20 TEMPLATE = lib
21 CONFIG += staticlib
22 TARGET = interfaces
23
24 HEADERS += include/appframework.hpp
25 SOURCES += src/appframework.cpp
26
27 XMLSOURCES = \
28     appframework.xml \
29     daynightmode.xml \
30     homescreen.xml \
31     inputevent.xml \
32     popup.xml \
33     statusbar.xml
34
35 gen_adapter_cpp.input = XMLSOURCES
36 gen_adapter_cpp.commands = \
37     qdbusxml2cpp -i include/${QMAKE_FILE_IN_BASE}.hpp -m -a ${QMAKE_FILE_IN_BASE}_adapter ${QMAKE_FILE_IN}; \
38     moc $$OUT_PWD/${QMAKE_FILE_IN_BASE}_adapter.h -o $$OUT_PWD/${QMAKE_FILE_IN_BASE}_adapter.moc
39 gen_adapter_cpp.output = ${QMAKE_FILE_IN_BASE}_adapter.cpp
40 gen_adapter_cpp.variable_out = SOURCES
41 gen_adapter_cpp.clean = ${QMAKE_FILE_IN_BASE}_adapter.cpp
42
43 gen_proxy_cpp.input = XMLSOURCES
44 gen_proxy_cpp.commands = \
45     qdbusxml2cpp -i include/${QMAKE_FILE_IN_BASE}.hpp -m -p ${QMAKE_FILE_IN_BASE}_proxy ${QMAKE_FILE_IN}; \
46     moc $$OUT_PWD/${QMAKE_FILE_IN_BASE}_proxy.h -o $$OUT_PWD/${QMAKE_FILE_IN_BASE}_proxy.moc
47 gen_proxy_cpp.output = ${QMAKE_FILE_IN_BASE}_proxy.cpp
48 gen_proxy_cpp.variable_out = SOURCES
49 gen_proxy_cpp.clean = ${QMAKE_FILE_IN_BASE}_proxy.cpp
50
51 gen_adapter_h.input = XMLSOURCES
52 gen_adapter_h.commands = @echo Fake making the header for ${QMAKE_FILE_IN}
53 gen_adapter_h.depends = ${QMAKE_FILE_IN_BASE}_adapter.cpp
54 gen_adapter_h.output = ${QMAKE_FILE_IN_BASE}_adapter.h
55 gen_adapter_h.clean = ${QMAKE_FILE_IN_BASE}_adapter.h
56
57 gen_proxy_h.input = XMLSOURCES
58 gen_proxy_h.commands = @echo Fake making the header for ${QMAKE_FILE_IN}
59 gen_proxy_h.depends = ${QMAKE_FILE_IN_BASE}_proxy.cpp
60 gen_proxy_h.output = ${QMAKE_FILE_IN_BASE}_proxy.h
61 gen_proxy_h.clean = ${QMAKE_FILE_IN_BASE}_proxy.h
62
63 QMAKE_EXTRA_COMPILERS += gen_adapter_cpp gen_proxy_cpp gen_adapter_h gen_proxy_h
64
65 # remove generated files
66 QMAKE_CLEAN += -r \
67     $$OUT_PWD/*