buho.pro 2 KB
Newer Older
Camilo Higuita's avatar
Camilo Higuita committed
1
QT += qml
2
QT += quick
Camilo Higuita's avatar
Camilo Higuita committed
3 4 5 6
QT += sql
QT += widgets
QT += quickcontrols2

7
CONFIG += ordered
8 9
CONFIG += c++17
QMAKE_LINK += -nostdlib++
10 11 12 13

TARGET = buho
TEMPLATE = app

Camilo Higuita's avatar
Camilo Higuita committed
14
DESTDIR = $$OUT_PWD/
15 16 17 18 19

linux:unix:!android {

    message(Building for Linux KDE)
    QT += webengine
Camilo higuita's avatar
Camilo higuita committed
20
    LIBS += -lMauiKit
21 22 23 24

} else:android {

    message(Building helpers for Android)
Camilo higuita's avatar
Camilo higuita committed
25
    QT += androidextras webview
camilo higuita's avatar
camilo higuita committed
26
    include($$PWD/3rdparty/openssl/openssl.pri)
Camilo higuita's avatar
Camilo higuita committed
27

28
    include($$PWD/3rdparty/kirigami/kirigami.pri)
29
    include($$PWD/3rdparty/mauikit/mauikit.pri)
30

31 32 33 34 35 36
    DEFINES += STATIC_KIRIGAMI

} else {
    message("Unknown configuration")
}
include($$PWD/QGumboParser/QGumboParser.pri)
37 38 39 40

DEFINES += QT_DEPRECATED_WARNINGS

SOURCES += \
41 42
    main.cpp \
    src/db/db.cpp \
43
    src/buho.cpp \
44
    src/linker.cpp \
45
    src/syncing/syncer.cpp \
Camilo higuita's avatar
Camilo higuita committed
46
    src/utils/htmlparser.cpp \
47
    src/models/notes/notes.cpp \
48 49
    src/models/books/books.cpp \
    src/models/books/booklet.cpp \
50
    src/models/links/links.cpp \
51
    src/providers/nextnote.cpp \
52

53
RESOURCES += \
54 55
    qml.qrc \
    assets/assets.qrc
56

57 58 59
HEADERS += \
    src/db/db.h \
    src/buho.h \
60
    src/syncing/syncer.h \
61
    src/utils/owl.h \
62
    src/linker.h \
Camilo higuita's avatar
Camilo higuita committed
63
    src/utils/htmlparser.h \
64
    src/models/notes/notes.h \
65 66
    src/models/books/books.h \
    src/models/books/booklet.h \
67
    src/models/links/links.h \
68 69
    src/providers/nextnote.h \
    src/providers/abstractnotesprovider.h
70

71
INCLUDEPATH += \
72
    src/utils/ \
73 74
    src/providers/ \
    src/syncing/ \
75 76
    src/

77 78 79 80 81 82 83 84 85 86 87 88 89 90
# 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

DISTFILES += \
    src/db/script.sql \

91
include($$PWD/install.pri)
Camilo Higuita's avatar
Camilo Higuita committed
92

93 94 95 96 97
contains(ANDROID_TARGET_ARCH,armeabi-v7a) {
    ANDROID_PACKAGE_SOURCE_DIR = \
        $$PWD/3rdparty/mauikit/src/android
}