You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
75 lines
1.7 KiB
Prolog
75 lines
1.7 KiB
Prolog
QT += core gui multimedia testlib
|
|
|
|
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
|
|
|
CONFIG += c++11
|
|
CONFIG+=sdk_no_version_check
|
|
# You can make your code fail to compile if it uses deprecated APIs.
|
|
# In order to do so, uncomment the following line.
|
|
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
|
|
|
|
SOURCES += \
|
|
about.cpp \
|
|
analyzer.cpp \
|
|
camp.cpp \
|
|
campmode.cpp \
|
|
cdac.cpp \
|
|
cspeaker.cpp \
|
|
library.cpp \
|
|
main.cpp \
|
|
mainwindow.cpp
|
|
|
|
HEADERS += \
|
|
about.h \
|
|
analyzer.h \
|
|
camp.h \
|
|
campmode.h \
|
|
cdac.h \
|
|
cspeaker.h \
|
|
library.h \
|
|
mainwindow.h
|
|
|
|
FORMS += \
|
|
about.ui \
|
|
analyzer.ui \
|
|
library.ui \
|
|
mainwindow.ui
|
|
|
|
TARGET = "PA Calculator"
|
|
|
|
|
|
macx {
|
|
ICON = PA_Calculator.icns
|
|
}
|
|
|
|
win32 {
|
|
RC_ICONS = PA_Calculator.ico
|
|
}
|
|
# Default rules for deployment.
|
|
qnx: target.path = /tmp/$${TARGET}/bin
|
|
else: unix:!android: target.path = /opt/$${TARGET}/bin
|
|
!isEmpty(target.path): INSTALLS += target
|
|
|
|
RESOURCES += \
|
|
resources.qrc
|
|
|
|
VERSION=1.1.0
|
|
QMAKE_TARGET_PRODUCT = "PA-Calculator"
|
|
QMAKE_TARGET_COMPANY = "Alexander Diamadis"
|
|
QMAKE_TARGET_COPYRIGHT = "Copyright (c) 2021 by Alexander Diamadis (alex@dkm-tech.de)"
|
|
|
|
win32 {
|
|
commit = $$system("FOR /F \"tokens=*\" %H IN ('git rev-parse --short HEAD') DO @SET /A DECIMAL=0x%H")
|
|
} else {
|
|
commit = $$system("printf '%d' 0x`git rev-parse --short HEAD`")
|
|
}
|
|
|
|
|
|
DEFINES += APP_VERSION=\"\\\"$${VERSION}\\\"\" \
|
|
APP_PRODUCT=\"\\\"$${QMAKE_TARGET_PRODUCT}\\\"\" \
|
|
APP_COMPANY=\"\\\"$${QMAKE_TARGET_COMPANY}\\\"\" \
|
|
APP_COMMIT=\"\\\"$${commit}\\\"\" \
|
|
APP_COPYRIGHT=\"\\\"$${QMAKE_TARGET_COPYRIGHT}\\\"\"
|
|
|
|
|