soundboard/soundboard.pro

102 lines
3.0 KiB
Prolog
Raw Permalink Normal View History

2021-12-13 00:28:04 +01:00
QT += core gui multimedia
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
CONFIG += c++17
CONFIG += debug_info
2021-12-21 15:44:51 +01:00
CONFIG += force_debug_info
2022-02-26 16:00:02 +01:00
unix:LIBS += -lX11 -ldl
2021-12-13 00:28:04 +01:00
# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS
# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
SOURCES += \
2022-09-21 00:33:41 +02:00
src/buttonsearch.cpp \
2021-12-13 00:28:04 +01:00
src/main.cpp \
src/mainwindow.cpp \
src/sound.cpp \
2021-12-13 14:48:43 +01:00
src/sounddevice.cpp \
src/soundbutton.cpp \
src/config.cpp \
2022-04-02 23:42:56 +02:00
src/configdialog.cpp \
src/editbutton.cpp \
2021-12-20 00:19:35 +01:00
src/editsample.cpp \
src/soundview.cpp \
src/samplereader.cpp \
2022-04-02 23:42:56 +02:00
src/settings.cpp \
2021-12-21 01:30:18 +01:00
src/buttonmanager.cpp \
2021-12-21 15:44:51 +01:00
src/buttonmanageritems.cpp \
2021-12-21 18:04:28 +01:00
src/addnewwhat.cpp \
2022-04-02 13:46:11 +02:00
src/keysequencevalidator.cpp \
2021-12-13 14:48:43 +01:00
Log/Log.cpp
2021-12-13 00:28:04 +01:00
HEADERS += \
2022-09-21 00:33:41 +02:00
include/buttonsearch.h \
2021-12-13 00:28:04 +01:00
include/mainwindow.h \
include/sound.h \
include/sounddevice.h \
2021-12-13 14:48:43 +01:00
include/soundbutton.h \
include/config.h \
2022-04-02 23:42:56 +02:00
include/configdialog.h \
include/editbutton.h \
2021-12-20 00:19:35 +01:00
include/editsample.h \
include/soundview.h \
include/samplereader.h \
2022-04-02 23:42:56 +02:00
include/settings.h \
2021-12-21 01:30:18 +01:00
include/buttonmanager.h \
2021-12-21 15:44:51 +01:00
include/buttonmanageritems.h \
2021-12-21 18:04:28 +01:00
include/addnewwhat.h \
2022-04-02 13:46:11 +02:00
include/keysequencevalidator.h \
2021-12-21 01:30:18 +01:00
miniaudio/miniaudio.h \
2021-12-13 14:48:43 +01:00
Log/Log.h
2021-12-13 00:28:04 +01:00
2021-12-13 01:23:03 +01:00
MOC_DIR = generated/
UI_DIR = ui/
OBJECTS_DIR = obj/
2021-12-13 00:28:04 +01:00
FORMS += \
2021-12-21 18:04:28 +01:00
ui/addnewwhat.ui \
2021-12-21 01:30:18 +01:00
ui/buttonmanager.ui \
2022-09-21 00:33:41 +02:00
ui/buttonsearch.ui \
ui/editbutton.ui \
2021-12-20 00:19:35 +01:00
ui/editsample.ui \
2022-04-02 23:42:56 +02:00
ui/mainwindow.ui \
ui/settings.ui
2021-12-13 00:28:04 +01:00
TRANSLATIONS += \
testqt_de_DE.ts
INCLUDEPATH += $$PWD/include/ \
2021-12-13 14:48:43 +01:00
$$PWD/miniaudio/ \
$$PWD/Log/
2021-12-13 00:28:04 +01:00
2022-04-22 17:04:15 +02:00
# build AppImage
unix {
$$PWD/linuxdeploy-x86_64.AppImage.commands = wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage && chmod u+x linuxdeploy-x86_64.AppImage
$$MOC_DIR/soundboard.svg.commands = touch $$MOC_DIR/soundboard.svg
appimg.depends = $$PWD/linuxdeploy-x86_64.AppImage $${TARGET} $$MOC_DIR/soundboard.svg
appimg.commands = rm -rf AppDir ; ./linuxdeploy-x86_64.AppImage --appdir=AppDir -e soundboard -i $$MOC_DIR/soundboard.svg -d soundboard.desktop --output appimage
QMAKE_EXTRA_TARGETS += appimg $$PWD/linuxdeploy-x86_64.AppImage $$MOC_DIR/soundboard.svg
QMAKE_CLEAN += $$PWD/linuxdeploy-x86_64.AppImage $$MOC_DIR/soundboard.svg
}
2021-12-13 00:28:04 +01:00
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
2022-09-13 01:18:26 +02:00
else: unix:!android: target.path = /usr/bin
2021-12-13 00:28:04 +01:00
!isEmpty(target.path): INSTALLS += target
# Adding QxtGlobalShortcut
include(QxtGlobalShortcut/QxtGlobalShortcut.pri)