Serial-Studio/Serial-Studio.pro

148 lines
4.0 KiB
Prolog
Raw Normal View History

2020-10-18 06:50:26 -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
#-------------------------------------------------------------------------------
# Qt configuration
#-------------------------------------------------------------------------------
TEMPLATE = app
TARGET = serial-studio
CONFIG += qtc_runnable
CONFIG += resources_big
CONFIG += qtquickcompiler
QT += xml
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
}
2020-10-18 06:50:26 -05:00
#-------------------------------------------------------------------------------
# Libraries
#-------------------------------------------------------------------------------
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
}
linux:!android {
target.path = /usr/bin
icon.path = /usr/share/pixmaps
desktop.path = /usr/share/applications
icon.files += deploy/linux/serial-studio.png
desktop.files += deploy/linux/serial-studio.desktop
INSTALLS += target desktop icon
}
#-------------------------------------------------------------------------------
# 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 \
src/Translator.h \
2020-11-26 20:43:25 -06:00
src/Widgets.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 \
src/Translator.cpp \
2020-11-26 20:43:25 -06:00
src/Widgets.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
TRANSLATIONS += \
assets/translations/en.ts \
2021-01-17 15:57:49 -05:00
assets/translations/es.ts \
assets/translations/zh.ts