Introduces shared lib that provides the API of D-Bus org.agl.homescreen.
[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  += dbus
16 QT  -= gui
17
18 TEMPLATE = lib
19 CONFIG += staticlib
20 TARGET = interfaces
21
22 HEADERS += \
23     include/appframework.hpp \
24     include/windowmanager.hpp
25
26 SOURCES += src/appframework.cpp \
27     src/windowmanager.cpp
28
29 XMLSOURCES = \
30     appframework.xml \
31     daynightmode.xml \
32     homescreen.xml \
33     inputevent.xml \
34     popup.xml \
35     proximity.xml \
36     statusbar.xml \
37     windowmanager.xml
38
39 gen_adapter_cpp.input = XMLSOURCES
40 gen_adapter_cpp.commands = \
41     qdbusxml2cpp -i include/${QMAKE_FILE_IN_BASE}.hpp -m -a ${QMAKE_FILE_IN_BASE}_adapter ${QMAKE_FILE_IN}; \
42     moc $$OUT_PWD/${QMAKE_FILE_IN_BASE}_adapter.h -o $$OUT_PWD/${QMAKE_FILE_IN_BASE}_adapter.moc
43 gen_adapter_cpp.output = ${QMAKE_FILE_IN_BASE}_adapter.cpp
44 gen_adapter_cpp.variable_out = SOURCES
45 gen_adapter_cpp.clean = ${QMAKE_FILE_IN_BASE}_adapter.cpp
46
47 gen_proxy_cpp.input = XMLSOURCES
48 gen_proxy_cpp.commands = \
49     qdbusxml2cpp -i include/${QMAKE_FILE_IN_BASE}.hpp -m -p ${QMAKE_FILE_IN_BASE}_proxy ${QMAKE_FILE_IN}; \
50     moc $$OUT_PWD/${QMAKE_FILE_IN_BASE}_proxy.h -o $$OUT_PWD/${QMAKE_FILE_IN_BASE}_proxy.moc
51 gen_proxy_cpp.output = ${QMAKE_FILE_IN_BASE}_proxy.cpp
52 gen_proxy_cpp.variable_out = SOURCES
53 gen_proxy_cpp.clean = ${QMAKE_FILE_IN_BASE}_proxy.cpp
54
55 gen_adapter_h.input = XMLSOURCES
56 gen_adapter_h.commands = @echo Fake making the header for ${QMAKE_FILE_IN}
57 gen_adapter_h.depends = ${QMAKE_FILE_IN_BASE}_adapter.cpp
58 gen_adapter_h.output = ${QMAKE_FILE_IN_BASE}_adapter.h
59 gen_adapter_h.clean = ${QMAKE_FILE_IN_BASE}_adapter.h
60
61 gen_proxy_h.input = XMLSOURCES
62 gen_proxy_h.commands = @echo Fake making the header for ${QMAKE_FILE_IN}
63 gen_proxy_h.depends = ${QMAKE_FILE_IN_BASE}_proxy.cpp
64 gen_proxy_h.output = ${QMAKE_FILE_IN_BASE}_proxy.h
65 gen_proxy_h.clean = ${QMAKE_FILE_IN_BASE}_proxy.h
66
67 QMAKE_EXTRA_COMPILERS += gen_adapter_cpp gen_proxy_cpp gen_adapter_h gen_proxy_h
68
69 # remove generated files
70 QMAKE_CLEAN += -r \
71     $$OUT_PWD/*