qpcpp/examples/qt/dpp-gui/dpp-gui.pro

135 lines
3.9 KiB
Prolog
Raw Normal View History

2013-10-10 20:01:51 -04:00
#-----------------------------------------------------------------------------
2015-09-29 11:34:38 -04:00
# Product: DPP-GUI exampe for Qt5
2020-04-06 15:29:56 -04:00
# Last updated for version 6.8.1
# Last updated on 2020-04-04
2012-08-14 18:00:48 -04:00
#
2019-10-27 12:26:31 -04:00
# Q u a n t u m L e a P s
# ------------------------
# Modern Embedded Software
2012-08-14 18:00:48 -04:00
#
2020-04-06 15:29:56 -04:00
# Copyright (C) 2005-2020 Quantum Leaps. All rights reserved.
2013-10-10 20:01:51 -04:00
#
# This program is open source software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License as published
2017-05-27 10:39:57 -04:00
# by the Free Software Foundation, either version 3 of the License, or
2013-10-10 20:01:51 -04:00
# (at your option) any later version.
#
# Alternatively, this program may be distributed and modified under the
# terms of Quantum Leaps commercial licenses, which expressly supersede
# the GNU General Public License and are specifically designed for
# licensees interested in retaining the proprietary status of their code.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
2019-10-27 12:26:31 -04:00
# along with this program. If not, see <www.gnu.org/licenses>.
2013-10-10 20:01:51 -04:00
#
# Contact information:
2020-04-06 15:29:56 -04:00
# <www.state-machine.com/licensing>
2019-10-27 12:26:31 -04:00
# <info@state-machine.com>
2013-10-10 20:01:51 -04:00
#-----------------------------------------------------------------------------
2012-08-14 18:00:48 -04:00
TEMPLATE = app
2013-10-10 20:01:51 -04:00
QT += core gui widgets
2012-08-14 18:00:48 -04:00
TARGET = dpp-gui
DEFINES += QT_NO_STATEMACHINE
2020-04-06 15:29:56 -04:00
CONFIG += c++11
2012-08-14 18:00:48 -04:00
2015-09-29 11:34:38 -04:00
QPCPP = ../../..
2012-08-14 18:00:48 -04:00
INCLUDEPATH = . \
2015-09-29 11:34:38 -04:00
$$QPCPP/include \
2020-04-06 15:29:56 -04:00
$$QPCPP/ports/qt
2012-08-14 18:00:48 -04:00
SOURCES += \
main.cpp \
gui.cpp \
bsp.cpp \
table.cpp \
philo.cpp
HEADERS += \
2019-10-27 12:26:31 -04:00
dpp.hpp \
gui.hpp \
bsp.hpp
2012-08-14 18:00:48 -04:00
FORMS += gui.ui
RESOURCES = gui.qrc
win32:RC_FILE = gui.rc
2015-09-29 11:34:38 -04:00
##############################################################################
# NOTE:
# This project demonstrats how to build the QP/C++ framework from sources,
# as opposed to linking the QP/C++ library. The following headers and sources
# are included from QP/C++.
# QP-Qt port headers/sources
HEADERS += \
2019-10-27 12:26:31 -04:00
$$QPCPP/ports/qt/tickerthread.hpp \
$$QPCPP/ports/qt/aothread.hpp \
$$QPCPP/ports/qt/guiapp.hpp \
$$QPCPP/ports/qt/guiactive.hpp \
$$QPCPP/ports/qt/pixellabel.hpp
2015-09-29 11:34:38 -04:00
SOURCES += \
$$QPCPP/ports/qt/qf_port.cpp \
$$QPCPP/ports/qt/guiapp.cpp \
$$QPCPP/ports/qt/pixellabel.cpp
# QP/C++ headers/sources
SOURCES += \
2017-05-27 10:39:57 -04:00
$$QPCPP/src/qf/qep_hsm.cpp \
$$QPCPP/src/qf/qep_msm.cpp \
$$QPCPP/src/qf/qf_act.cpp \
$$QPCPP/src/qf/qf_actq.cpp \
$$QPCPP/src/qf/qf_defer.cpp \
$$QPCPP/src/qf/qf_dyn.cpp \
$$QPCPP/src/qf/qf_mem.cpp \
$$QPCPP/src/qf/qf_ps.cpp \
$$QPCPP/src/qf/qf_qact.cpp \
$$QPCPP/src/qf/qf_qeq.cpp \
$$QPCPP/src/qf/qf_qmact.cpp \
2018-05-22 15:32:27 -04:00
$$QPCPP/src/qf/qf_time.cpp \
$$QPCPP/include/qstamp.cpp
2015-09-29 11:34:38 -04:00
2018-03-22 09:33:35 -04:00
INCLUDEPATH += $$QPCPP/src
2015-09-29 11:34:38 -04:00
CONFIG(debug, debug|release) {
# NOTE:
# To include Q-SPY software tracing in the Debug configuration,
# please un-comment the following lines of code.
# DEFINES += Q_SPY
# QS software tracing sources
# SOURCES += \
2017-05-27 10:39:57 -04:00
# $$QPCPP/src/qs/qs.cpp \
# $$QPCPP/src/qs/qs_fp.cpp \
# $$QPCPP/src/qs/qs_64bit.cpp
2015-09-29 11:34:38 -04:00
2019-10-27 12:26:31 -04:00
# HEADERS += $$QPCPP/ports/qt/qs_port.hpp
2015-09-29 11:34:38 -04:00
# NOTE:
# The "qspy.c" component is needed only when you perform the formatted
# output directly in the Target. The following declarations assume that
# the Qtools collection is installed and that the QTOOLS environment
2018-05-22 15:32:27 -04:00
# variable is set to point to this QTools installation directory.
2015-09-29 11:34:38 -04:00
# INCLUDEPATH += $(QTOOLS)/qspy/include
# SOURCES += $(QTOOLS)/qspy/source/qspy.c
} else {
# Release build configuartion
DEFINES += NDEBUG
}