pix.pro 2.51 KB
Newer Older
1 2
QT += qml 
QT += quick 
3 4
QT += quickcontrols2
QT += sql
5 6 7 8 9
QT += widgets

TARGET = pix
TEMPLATE = app

Camilo higuita's avatar
Camilo higuita committed
10 11
CONFIG += ordered
CONFIG += c++11
12 13

linux:unix:!android {
Camilo Higuita's avatar
Camilo Higuita committed
14

15
    message(Building for Linux KDE)
16 17 18
    QT += KService KNotifications KNotifications KI18n
    QT += KIOCore KIOFileWidgets KIOWidgets KNTLM
    LIBS += -lMauiKit
Camilo Higuita's avatar
Camilo Higuita committed
19

20 21
} else:android {

Camilo Higuita's avatar
Camilo Higuita committed
22
    message(Building helpers for Android)
23
    include($$PWD/mauikit/mauikit.pri)
24
    include($$PWD/3rdparty/kirigami/kirigami.pri)
25

26
    DEFINES += STATIC_KIRIGAMI
27 28 29 30 31

} else {
    message("Unknown configuration")
}

32

33 34 35 36 37 38 39 40 41 42 43 44 45 46
# 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 \
    src/pix.cpp \
    src/db/db.cpp \
47 48 49 50
    src/db/dbactions.cpp \
    src/models/basemodel.cpp \
    src/models/baselist.cpp \
    src/models/gallery/gallery.cpp \
51 52 53
    src/models/albums/albums.cpp \
    src/models/folders/folders.cpp \
    src/models/folders/foldermodel.cpp \
Camilo higuita's avatar
Camilo higuita committed
54 55
    src/models/cloud/cloud.cpp

56 57 58 59 60 61 62 63 64 65 66 67 68 69

# 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 =

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

RESOURCES += \
    src/qml.qrc \
70 71
    assets.qrc \

72 73 74 75 76 77

HEADERS += \
    src/pix.h \
    src/db/fileloader.h \
    src/db/db.h \
    src/db/dbactions.h \
78 79 80 81
    src/utils/pic.h \
    src/models/basemodel.h \
    src/models/baselist.h \
    src/models/gallery/gallery.h \
82 83
    src/models/albums/albums.h \
    src/models/folders/folders.h \
Camilo higuita's avatar
Camilo higuita committed
84 85
    src/models/folders/foldermodel.h \
    src/models/cloud/cloud.h
Camilo higuita's avatar
Camilo higuita committed
86 87

include(install.pri)
Camilo higuita's avatar
Camilo higuita committed
88 89 90 91 92 93 94 95 96

DISTFILES += \
    android/AndroidManifest.xml \
    android/gradle/wrapper/gradle-wrapper.jar \
    android/gradlew \
    android/res/values/libs.xml \
    android/build.gradle \
    android/gradle/wrapper/gradle-wrapper.properties \
    android/gradlew.bat