warehouse for ces2019
[apps/onscreenapp.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
30 gen_adaptor_cpp.input = XMLSOURCES
31 gen_adaptor_cpp.commands = \
32     qdbusxml2cpp -i include/${QMAKE_FILE_IN_BASE}.hpp -m -a ${QMAKE_FILE_IN_BASE}_adaptor ${QMAKE_FILE_IN}; \
33     moc $$OUT_PWD/${QMAKE_FILE_IN_BASE}_adaptor.h -o $$OUT_PWD/${QMAKE_FILE_IN_BASE}_adaptor.moc
34 gen_adaptor_cpp.output = ${QMAKE_FILE_IN_BASE}_adaptor.cpp
35 gen_adaptor_cpp.variable_out = SOURCES
36 gen_adaptor_cpp.clean = ${QMAKE_FILE_IN_BASE}_adaptor.cpp
37
38 gen_proxy_cpp.input = XMLSOURCES
39 gen_proxy_cpp.commands = \
40     qdbusxml2cpp -i include/${QMAKE_FILE_IN_BASE}.hpp -m -p ${QMAKE_FILE_IN_BASE}_proxy ${QMAKE_FILE_IN}; \
41     moc $$OUT_PWD/${QMAKE_FILE_IN_BASE}_proxy.h -o $$OUT_PWD/${QMAKE_FILE_IN_BASE}_proxy.moc
42 gen_proxy_cpp.output = ${QMAKE_FILE_IN_BASE}_proxy.cpp
43 gen_proxy_cpp.variable_out = SOURCES
44 gen_proxy_cpp.clean = ${QMAKE_FILE_IN_BASE}_proxy.cpp
45
46 gen_adaptor_h.input = XMLSOURCES
47 gen_adaptor_h.commands = @echo Fake making the header for ${QMAKE_FILE_IN}
48 gen_adaptor_h.depends = ${QMAKE_FILE_IN_BASE}_adaptor.cpp
49 gen_adaptor_h.output = ${QMAKE_FILE_IN_BASE}_adaptor.h
50 gen_adaptor_h.clean = ${QMAKE_FILE_IN_BASE}_adaptor.h
51
52 gen_proxy_h.input = XMLSOURCES
53 gen_proxy_h.commands = @echo Fake making the header for ${QMAKE_FILE_IN}
54 gen_proxy_h.depends = ${QMAKE_FILE_IN_BASE}_proxy.cpp
55 gen_proxy_h.output = ${QMAKE_FILE_IN_BASE}_proxy.h
56 gen_proxy_h.clean = ${QMAKE_FILE_IN_BASE}_proxy.h
57
58 QMAKE_EXTRA_COMPILERS += gen_adaptor_cpp gen_proxy_cpp gen_adaptor_h gen_proxy_h
59
60 DISTFILES +=