2013-10-10 20:01:51 -04:00
|
|
|
#-----------------------------------------------------------------------------
|
2015-09-29 11:34:38 -04:00
|
|
|
# Product: DPP console exampe for Qt (console)
|
2017-05-27 10:39:57 -04:00
|
|
|
# Last Updated for Version: QP/C++ 5.9.1/Qt 5.x
|
|
|
|
# Date of the Last Update: 2017-05-26
|
2013-10-10 20:01:51 -04:00
|
|
|
#
|
|
|
|
# Q u a n t u m L e a P s
|
|
|
|
# ---------------------------
|
|
|
|
# innovating embedded systems
|
|
|
|
#
|
2015-05-14 16:05:04 -04:00
|
|
|
# Copyright (C) Quantum Leaps, LLC. 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
|
2015-05-14 16:05:04 -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
|
|
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
#
|
|
|
|
# Contact information:
|
2017-05-27 10:39:57 -04:00
|
|
|
# https://state-machine.com
|
2015-09-29 11:34:38 -04:00
|
|
|
# mailto:info@state-machine.com
|
2013-10-10 20:01:51 -04:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
TEMPLATE = app
|
|
|
|
|
|
|
|
QT += core
|
|
|
|
QT -= gui
|
|
|
|
CONFIG += console
|
2015-05-14 16:05:04 -04:00
|
|
|
CONFIG -= app_bundle
|
2013-10-10 20:01:51 -04:00
|
|
|
TARGET = dpp
|
|
|
|
DEFINES += QT_NO_STATEMACHINE
|
|
|
|
|
2015-05-14 16:05:04 -04:00
|
|
|
QPCPP = ../../..
|
|
|
|
|
2013-10-10 20:01:51 -04:00
|
|
|
INCLUDEPATH = . \
|
2015-09-29 11:34:38 -04:00
|
|
|
$$QPCPP/include \
|
|
|
|
$$QPCPP/ports/qt
|
|
|
|
|
|
|
|
HEADERS += \
|
|
|
|
dpp.h \
|
|
|
|
bsp.h
|
2013-10-10 20:01:51 -04:00
|
|
|
|
|
|
|
SOURCES += \
|
|
|
|
main.cpp \
|
|
|
|
bsp.cpp \
|
|
|
|
table.cpp \
|
|
|
|
philo.cpp
|
|
|
|
|
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++.
|
|
|
|
#
|
|
|
|
# NOTE:
|
|
|
|
# For this is a simple **console** application some modules from the Qt port
|
|
|
|
# are commented-out. (These modules would be needed in a GUI application).
|
|
|
|
|
|
|
|
# QP-Qt port headers/sources
|
|
|
|
HEADERS += \
|
|
|
|
$$QPCPP/ports/qt/tickerthread.h \
|
|
|
|
$$QPCPP/ports/qt/aothread.h \
|
|
|
|
# $$QPCPP/ports/qt/guiapp.h \
|
|
|
|
# $$QPCPP/ports/qt/guiactive.h \
|
|
|
|
# $$QPCPP/ports/qt/pixellabel.h
|
|
|
|
|
|
|
|
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 \
|
|
|
|
$$QPCPP/src/qf/qf_time.cpp
|
2015-09-29 11:34:38 -04:00
|
|
|
|
|
|
|
INCLUDEPATH += $$QPCPP/source
|
|
|
|
|
2013-10-10 20:01:51 -04:00
|
|
|
|
|
|
|
CONFIG(debug, debug|release) {
|
2015-09-29 11:34:38 -04:00
|
|
|
|
|
|
|
# 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_rx.cpp \
|
|
|
|
# $$QPCPP/src/qs/qs_fp.cpp \
|
|
|
|
# $$QPCPP/src/qs/qs_64bit.cpp
|
2015-09-29 11:34:38 -04:00
|
|
|
|
|
|
|
# HEADERS += $$QPCPP/ports/qt/qs_port.h
|
|
|
|
|
|
|
|
# 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
|
|
|
|
# variable is set to point to this Qtools installation directory.
|
|
|
|
|
|
|
|
# INCLUDEPATH += $(QTOOLS)/qspy/include
|
|
|
|
# SOURCES += $(QTOOLS)/qspy/source/qspy.c
|
|
|
|
|
2013-10-10 20:01:51 -04:00
|
|
|
} else {
|
2015-09-29 11:34:38 -04:00
|
|
|
# Release build configuartion
|
|
|
|
DEFINES += NDEBUG
|
2013-10-10 20:01:51 -04:00
|
|
|
}
|