2020-10-18 06:50:26 -05:00
|
|
|
#
|
2021-01-05 22:48:49 -05:00
|
|
|
# Copyright (c) 2020-2021 Alex Spataru <https://github.com/alex-spataru>
|
2020-10-18 06:50:26 -05:00
|
|
|
#
|
|
|
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
# of this software and associated documentation files (the "Software"), to deal
|
|
|
|
# in the Software without restriction, including without limitation the rights
|
|
|
|
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
# copies of the Software, and to permit persons to whom the Software is
|
|
|
|
# furnished to do so, subject to the following conditions:
|
|
|
|
#
|
|
|
|
# The above copyright notice and this permission notice shall be included in
|
|
|
|
# all copies or substantial portions of the Software.
|
|
|
|
#
|
|
|
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
|
|
# THE SOFTWARE.
|
|
|
|
#
|
|
|
|
|
|
|
|
#-------------------------------------------------------------------------------
|
|
|
|
# Make options
|
|
|
|
#-------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
UI_DIR = uic
|
|
|
|
MOC_DIR = moc
|
|
|
|
RCC_DIR = qrc
|
|
|
|
OBJECTS_DIR = obj
|
|
|
|
|
|
|
|
CONFIG += c++11
|
|
|
|
|
2021-02-03 14:10:29 +01:00
|
|
|
isEmpty(PREFIX) {
|
|
|
|
PREFIX = /usr
|
|
|
|
}
|
|
|
|
|
2020-10-18 06:50:26 -05:00
|
|
|
#-------------------------------------------------------------------------------
|
|
|
|
# Qt configuration
|
|
|
|
#-------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
TEMPLATE = app
|
|
|
|
TARGET = serial-studio
|
|
|
|
|
|
|
|
CONFIG += qtc_runnable
|
|
|
|
CONFIG += resources_big
|
|
|
|
CONFIG += qtquickcompiler
|
|
|
|
|
|
|
|
QT += xml
|
2021-01-08 00:38:18 -05:00
|
|
|
QT += sql
|
2020-10-18 06:50:26 -05:00
|
|
|
QT += svg
|
|
|
|
QT += core
|
|
|
|
QT += quick
|
|
|
|
QT += charts
|
|
|
|
QT += widgets
|
|
|
|
QT += serialport
|
|
|
|
QT += quickcontrols2
|
|
|
|
|
|
|
|
QTPLUGIN += qsvg
|
|
|
|
|
2021-01-13 21:16:26 -05:00
|
|
|
#-------------------------------------------------------------------------------
|
|
|
|
# Compiler options
|
|
|
|
#-------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
*g++*: {
|
|
|
|
QMAKE_CXXFLAGS_RELEASE -= -O
|
|
|
|
QMAKE_CXXFLAGS_RELEASE *= -O3
|
|
|
|
}
|
|
|
|
|
|
|
|
*msvc*: {
|
|
|
|
QMAKE_CXXFLAGS_RELEASE -= /O
|
|
|
|
QMAKE_CXXFLAGS_RELEASE *= /O2
|
|
|
|
}
|
2021-02-03 14:10:29 +01:00
|
|
|
|
2020-10-18 06:50:26 -05:00
|
|
|
#-------------------------------------------------------------------------------
|
|
|
|
# Libraries
|
|
|
|
#-------------------------------------------------------------------------------
|
|
|
|
|
2021-01-05 22:48:49 -05:00
|
|
|
include(libs/Libraries.pri)
|
2020-10-18 06:50:26 -05:00
|
|
|
|
|
|
|
#-------------------------------------------------------------------------------
|
|
|
|
# Deploy options
|
|
|
|
#-------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
win32* {
|
2021-01-13 14:38:12 -05:00
|
|
|
TARGET = SerialStudio
|
2020-10-18 06:50:26 -05:00
|
|
|
RC_FILE = deploy/windows/resources/info.rc
|
|
|
|
}
|
|
|
|
|
|
|
|
macx* {
|
2021-01-12 00:34:09 -05:00
|
|
|
TARGET = SerialStudio
|
2020-10-18 06:50:26 -05:00
|
|
|
ICON = deploy/macOS/icon.icns
|
|
|
|
RC_FILE = deploy/macOS/icon.icns
|
|
|
|
QMAKE_INFO_PLIST = deploy/macOS/info.plist
|
2021-01-13 14:38:12 -05:00
|
|
|
CONFIG += sdk_no_version_check # To avoid warnings with Big Sur
|
2020-10-18 06:50:26 -05:00
|
|
|
}
|
|
|
|
|
2021-02-03 14:10:29 +01:00
|
|
|
target.path = $$PREFIX/bin
|
|
|
|
|
2020-10-18 06:50:26 -05:00
|
|
|
linux:!android {
|
2021-02-03 14:10:29 +01:00
|
|
|
icon.path = $$PREFIX/share/pixmaps
|
|
|
|
desktop.path = $$PREFIX/share/applications
|
2020-10-18 06:50:26 -05:00
|
|
|
icon.files += deploy/linux/serial-studio.png
|
|
|
|
desktop.files += deploy/linux/serial-studio.desktop
|
|
|
|
|
|
|
|
INSTALLS += target desktop icon
|
2021-01-20 11:34:35 -05:00
|
|
|
}
|
|
|
|
|
2021-02-03 14:10:29 +01:00
|
|
|
mingw {
|
|
|
|
license.path = $$PREFIX/share/licenses/$$TARGET
|
2021-01-20 11:34:35 -05:00
|
|
|
license.files += LICENSE.md
|
|
|
|
INSTALLS += target license
|
2020-10-18 06:50:26 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
#-------------------------------------------------------------------------------
|
|
|
|
# Import source code
|
|
|
|
#-------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
RESOURCES += \
|
|
|
|
assets/assets.qrc
|
|
|
|
|
|
|
|
HEADERS += \
|
|
|
|
src/AppInfo.h \
|
2021-01-04 23:33:50 -06:00
|
|
|
src/CsvPlayer.h \
|
2021-01-13 14:38:12 -05:00
|
|
|
src/DataProvider.h \
|
2020-10-18 06:50:26 -05:00
|
|
|
src/Dataset.h \
|
|
|
|
src/Export.h \
|
|
|
|
src/GraphProvider.h \
|
|
|
|
src/Group.h \
|
2021-01-13 14:38:12 -05:00
|
|
|
src/JsonGenerator.h \
|
2020-10-18 06:50:26 -05:00
|
|
|
src/ModuleManager.h \
|
2020-11-26 20:43:25 -06:00
|
|
|
src/SerialManager.h \
|
2021-01-01 17:25:52 -05:00
|
|
|
src/Translator.h \
|
2021-01-22 12:46:11 -05:00
|
|
|
src/WidgetProvider.h
|
2020-10-18 06:50:26 -05:00
|
|
|
|
|
|
|
SOURCES += \
|
2021-01-04 23:33:50 -06:00
|
|
|
src/CsvPlayer.cpp \
|
2021-01-13 14:38:12 -05:00
|
|
|
src/DataProvider.cpp \
|
2020-10-18 06:50:26 -05:00
|
|
|
src/Dataset.cpp \
|
|
|
|
src/Export.cpp \
|
|
|
|
src/GraphProvider.cpp \
|
|
|
|
src/Group.cpp \
|
2021-01-13 14:38:12 -05:00
|
|
|
src/JsonGenerator.cpp \
|
2020-10-18 06:50:26 -05:00
|
|
|
src/ModuleManager.cpp \
|
|
|
|
src/SerialManager.cpp \
|
2021-01-01 17:25:52 -05:00
|
|
|
src/Translator.cpp \
|
2021-01-22 12:46:11 -05:00
|
|
|
src/WidgetProvider.cpp \
|
2020-10-18 06:50:26 -05:00
|
|
|
src/main.cpp
|
|
|
|
|
|
|
|
DISTFILES += \
|
2020-12-26 01:30:18 -06:00
|
|
|
assets/qml/Widgets/*.qml \
|
|
|
|
assets/qml/Windows/*.qml \
|
|
|
|
assets/qml/*.qml
|
2021-01-01 17:25:52 -05:00
|
|
|
|
|
|
|
TRANSLATIONS += \
|
|
|
|
assets/translations/en.ts \
|
2021-01-17 15:57:49 -05:00
|
|
|
assets/translations/es.ts \
|
2021-01-24 13:50:20 +01:00
|
|
|
assets/translations/zh.ts \
|
|
|
|
assets/translations/de.ts
|