1 # Copyright (C) 2016, 2017 Mentor Graphics Development (Deutschland) GmbH
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
7 # http://www.apache.org/licenses/LICENSE-2.0
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.
21 include/appframework.hpp \
22 include/windowmanager.hpp
24 SOURCES += src/appframework.cpp \
38 gen_adaptor_cpp.input = XMLSOURCES
39 gen_adaptor_cpp.commands = \
40 qdbusxml2cpp -i include/${QMAKE_FILE_IN_BASE}.hpp -m -a ${QMAKE_FILE_IN_BASE}_adaptor ${QMAKE_FILE_IN}; \
41 moc $$OUT_PWD/${QMAKE_FILE_IN_BASE}_adaptor.h -o $$OUT_PWD/${QMAKE_FILE_IN_BASE}_adaptor.moc
42 gen_adaptor_cpp.output = ${QMAKE_FILE_IN_BASE}_adaptor.cpp
43 gen_adaptor_cpp.variable_out = SOURCES
44 gen_adaptor_cpp.clean = ${QMAKE_FILE_IN_BASE}_adaptor.cpp
46 gen_proxy_cpp.input = XMLSOURCES
47 gen_proxy_cpp.commands = \
48 qdbusxml2cpp -i include/${QMAKE_FILE_IN_BASE}.hpp -m -p ${QMAKE_FILE_IN_BASE}_proxy ${QMAKE_FILE_IN}; \
49 moc $$OUT_PWD/${QMAKE_FILE_IN_BASE}_proxy.h -o $$OUT_PWD/${QMAKE_FILE_IN_BASE}_proxy.moc
50 gen_proxy_cpp.output = ${QMAKE_FILE_IN_BASE}_proxy.cpp
51 gen_proxy_cpp.variable_out = SOURCES
52 gen_proxy_cpp.clean = ${QMAKE_FILE_IN_BASE}_proxy.cpp
54 gen_adaptor_h.input = XMLSOURCES
55 gen_adaptor_h.commands = @echo Fake making the header for ${QMAKE_FILE_IN}
56 gen_adaptor_h.depends = ${QMAKE_FILE_IN_BASE}_adaptor.cpp
57 gen_adaptor_h.output = ${QMAKE_FILE_IN_BASE}_adaptor.h
58 gen_adaptor_h.clean = ${QMAKE_FILE_IN_BASE}_adaptor.h
60 gen_proxy_h.input = XMLSOURCES
61 gen_proxy_h.commands = @echo Fake making the header for ${QMAKE_FILE_IN}
62 gen_proxy_h.depends = ${QMAKE_FILE_IN_BASE}_proxy.cpp
63 gen_proxy_h.output = ${QMAKE_FILE_IN_BASE}_proxy.h
64 gen_proxy_h.clean = ${QMAKE_FILE_IN_BASE}_proxy.h
66 QMAKE_EXTRA_COMPILERS += gen_adaptor_cpp gen_proxy_cpp gen_adaptor_h gen_proxy_h