Copy source code from homescreen-2017
[apps/homescreen.git] / interfaces / interfaces.pro
1 # Copyright (C) 2016, 2017 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 TEMPLATE = lib
16 TARGET = interfaces
17 QT = dbus
18 CONFIG += staticlib
19
20 HEADERS += \
21     include/appframework.hpp
22
23 SOURCES += \
24     src/appframework.cpp
25
26 XMLSOURCES = \
27     afm_user_daemon.xml \
28     appframework.xml \
29     statusbar.xml
30
31 gen_adaptor_cpp.input = XMLSOURCES
32 gen_adaptor_cpp.commands = \
33     qdbusxml2cpp -i include/${QMAKE_FILE_IN_BASE}.hpp -m -a ${QMAKE_FILE_IN_BASE}_adaptor ${QMAKE_FILE_IN}; \
34     moc $$OUT_PWD/${QMAKE_FILE_IN_BASE}_adaptor.h -o $$OUT_PWD/${QMAKE_FILE_IN_BASE}_adaptor.moc
35 gen_adaptor_cpp.output = ${QMAKE_FILE_IN_BASE}_adaptor.cpp
36 gen_adaptor_cpp.variable_out = SOURCES
37 gen_adaptor_cpp.clean = ${QMAKE_FILE_IN_BASE}_adaptor.cpp
38
39 gen_proxy_cpp.input = XMLSOURCES
40 gen_proxy_cpp.commands = \
41     qdbusxml2cpp -i include/${QMAKE_FILE_IN_BASE}.hpp -m -p ${QMAKE_FILE_IN_BASE}_proxy ${QMAKE_FILE_IN}; \
42     moc $$OUT_PWD/${QMAKE_FILE_IN_BASE}_proxy.h -o $$OUT_PWD/${QMAKE_FILE_IN_BASE}_proxy.moc
43 gen_proxy_cpp.output = ${QMAKE_FILE_IN_BASE}_proxy.cpp
44 gen_proxy_cpp.variable_out = SOURCES
45 gen_proxy_cpp.clean = ${QMAKE_FILE_IN_BASE}_proxy.cpp
46
47 gen_adaptor_h.input = XMLSOURCES
48 gen_adaptor_h.commands = @echo Fake making the header for ${QMAKE_FILE_IN}
49 gen_adaptor_h.depends = ${QMAKE_FILE_IN_BASE}_adaptor.cpp
50 gen_adaptor_h.output = ${QMAKE_FILE_IN_BASE}_adaptor.h
51 gen_adaptor_h.clean = ${QMAKE_FILE_IN_BASE}_adaptor.h
52
53 gen_proxy_h.input = XMLSOURCES
54 gen_proxy_h.commands = @echo Fake making the header for ${QMAKE_FILE_IN}
55 gen_proxy_h.depends = ${QMAKE_FILE_IN_BASE}_proxy.cpp
56 gen_proxy_h.output = ${QMAKE_FILE_IN_BASE}_proxy.h
57 gen_proxy_h.clean = ${QMAKE_FILE_IN_BASE}_proxy.h
58
59 QMAKE_EXTRA_COMPILERS += gen_adaptor_cpp gen_proxy_cpp gen_adaptor_h gen_proxy_h
60
61 DISTFILES +=