vvave.pro 3.22 KB
Newer Older
1 2 3 4 5 6 7
QT       += quick
QT       += multimedia
QT       += sql
QT       += websockets
QT       += network
QT       += xml
QT       += qml
Camilo Higuita's avatar
Camilo Higuita committed
8
QT       += widgets
Camilo Higuita's avatar
Camilo Higuita committed
9
QT       += quickcontrols2
10
QT       += concurrent
11 12 13 14

TARGET = vvave
TEMPLATE = app

Camilo Higuita's avatar
Camilo Higuita committed
15
CONFIG += ordered
16
CONFIG += c++11
17
QMAKE_LINK += -nostdlib++
18 19 20

linux:unix:!android {
    message(Building for Linux KDE)
21
    include($$PWD/kde/kde.pri)
22
    LIBS += -lMauiKit
23 24 25

} else:android {
    message(Building helpers for Android)
camilo higuita's avatar
camilo higuita committed
26 27 28 29 30 31 32 33 34 35

#DEFAULT COMPONENTS DEFINITIONS
    DEFINES *= \
        COMPONENT_EDITOR \
        COMPONENT_FM \
        COMPONENT_TERMINAL \
        COMPONENT_TAGGING \
        COMPONENT_SYNCING

    QT *= androidextras webview
36 37
    include($$PWD/3rdparty/taglib.pri)
    include($$PWD/3rdparty/kirigami/kirigami.pri)
38
    include($$PWD/3rdparty/mauikit/mauikit.pri)
39

Camilo Higuita's avatar
Camilo Higuita committed
40
    DEFINES += STATIC_KIRIGAMI
Camilo Higuita's avatar
Camilo Higuita committed
41

42 43 44 45
} else {
    message("Unknown configuration")
}

46
include(pulpo/pulpo.pri)
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62

# The following define makes your compiler emit warnings if you use
# any feature of Qt which as 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 you use 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 += main.cpp \
    db/collectionDB.cpp \
    services/local/taginfo.cpp \
    services/local/player.cpp \
63
#    utils/brain.cpp \
camilo higuita's avatar
camilo higuita committed
64
#    services/local/socket.cpp \
Camilo Higuita's avatar
Camilo Higuita committed
65
    services/web/youtube.cpp \
66
    vvave.cpp \
67
    services/local/youtubedl.cpp \
camilo higuita's avatar
camilo higuita committed
68
#    services/local/linking.cpp \
69
    services/web/Spotify/spotify.cpp \
70
    models/tracks/tracksmodel.cpp \
71
    models/playlists/playlistsmodel.cpp \
72
    models/albums/albumsmodel.cpp \
camilo higuita's avatar
camilo higuita committed
73
#    models/cloud/cloud.cpp
74 75 76 77 78 79 80 81 82 83 84 85 86 87


RESOURCES += qml.qrc \

# Additional import path used to resolve QML modules in Qt Creator's code model
QML_IMPORT_PATH =

# Additional import path used to resolve QML modules just for Qt Quick Designer
QML_DESIGNER_IMPORT_PATH =


HEADERS += \
    db/collectionDB.h \
    utils/bae.h \
camilo higuita's avatar
camilo higuita committed
88
    services/local/fileloader.h \
89 90
    services/local/taginfo.h \
    services/local/player.h \
camilo higuita's avatar
camilo higuita committed
91 92
#    utils/brain.h \
#    services/local/socket.h \
Camilo Higuita's avatar
Camilo Higuita committed
93
    services/web/youtube.h \
94
    vvave.h \
95
    services/local/youtubedl.h \
camilo higuita's avatar
camilo higuita committed
96
#    services/local/linking.h \
97
    services/web/Spotify/spotify.h \
98
    models/tracks/tracksmodel.h \
99
    models/playlists/playlistsmodel.h \
100
    models/albums/albumsmodel.h \
camilo higuita's avatar
camilo higuita committed
101
#    models/cloud/cloud.h
102

103
include(install.pri)
104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130

#TAGLIB


#INCLUDEPATH += /usr/include/python3.6m

#LIBS += -lpython3.6m
#defineReplace(copyToDir) {
#    files = $$1
#    DIR = $$2
#    LINK =

#    for(FILE, files) {
#        LINK += $$QMAKE_COPY $$shell_path($$FILE) $$shell_path($$DIR) $$escape_expand(\\n\\t)
#    }
#    return($$LINK)
#}

#defineReplace(copyToBuilddir) {
#    return($$copyToDir($$1, $$OUT_PWD))
#}

## Copy the binary files dependent on the system architecture
#unix:!macx {
#    message("Linux")
#    QMAKE_POST_LINK += $$copyToBuilddir($$PWD/library/cat)
#}