Serial-Studio/Serial-Studio.pro

154 lines
4.3 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 += svg
QT += core
QT += quick
QT += charts
QT += widgets
QT += serialport
QT += quickcontrols2
QTPLUGIN += qsvg
#-------------------------------------------------------------------------------
# Libraries
#-------------------------------------------------------------------------------
include(libs/Libraries.pri)
2020-10-18 06:50:26 -05:00
#-------------------------------------------------------------------------------
# Deploy options
#-------------------------------------------------------------------------------
win32* {
2020-11-26 12:38:47 -06:00
TARGET = Serial-Studio
2020-10-18 06:50:26 -05:00
RC_FILE = deploy/windows/resources/info.rc
}
macx* {
CONFIG += sdk_no_version_check
2020-11-27 00:34:25 -06:00
TARGET = Serial-Studio
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
# DMG generation constants
2020-11-27 00:34:25 -06:00
DMG_FILENAME = $${TARGET}.dmg
BUNDLE_FILENAME = $${TARGET}.app
2020-10-18 06:50:26 -05:00
# Target for pretty DMG generation
2020-11-26 12:38:47 -06:00
dmg.commands += "macdeployqt $$BUNDLE_FILENAME -qmldir=$$PWD/assets/qml &&"
dmg.commands += "create-dmg \
2020-10-18 06:50:26 -05:00
--volname $${TARGET} \
--background $${PWD}/deploy/macOS/dmg_bg.png \
2020-11-27 00:34:25 -06:00
--icon $${BUNDLE_FILENAME} 150 218 \
2020-10-18 06:50:26 -05:00
--window-pos 200 120 \
--window-size 600 450 \
--icon-size 100 \
--hdiutil-quiet \
--app-drop-link 450 218 \
$${DMG_FILENAME} \
2020-11-27 00:34:25 -06:00
$${BUNDLE_FILENAME}"
2020-10-18 06:50:26 -05:00
QMAKE_EXTRA_TARGETS += dmg
}
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 \
2020-10-18 06:50:26 -05:00
src/Dataset.h \
src/Export.h \
src/GraphProvider.h \
src/Group.h \
src/JsonParser.h \
src/ModuleManager.h \
src/QmlBridge.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 \
2020-10-18 06:50:26 -05:00
src/Dataset.cpp \
src/Export.cpp \
src/GraphProvider.cpp \
src/Group.cpp \
src/JsonParser.cpp \
src/ModuleManager.cpp \
src/QmlBridge.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 \
assets/translations/es.ts