buho.pro 1.88 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 {
} else:android {

    message(Building helpers for Android)
Camilo higuita's avatar
Camilo higuita committed
20
    QT += androidextras webview
21
    include($$PWD/3rdparty/kirigami/kirigami.pri)
22
    include($$PWD/3rdparty/mauikit/mauikit.pri)
23

24 25 26 27 28 29
    DEFINES += STATIC_KIRIGAMI

} else {
    message("Unknown configuration")
}
include($$PWD/QGumboParser/QGumboParser.pri)
30 31 32 33

DEFINES += QT_DEPRECATED_WARNINGS

SOURCES += \
34 35
    main.cpp \
    src/db/db.cpp \
36
    src/buho.cpp \
37
    src/linker.cpp \
38
    src/syncing/syncer.cpp \
Camilo higuita's avatar
Camilo higuita committed
39
    src/utils/htmlparser.cpp \
40
    src/models/notes/notes.cpp \
41 42
    src/models/books/books.cpp \
    src/models/books/booklet.cpp \
43
    src/models/links/links.cpp \
44
    src/providers/nextnote.cpp \
45

46
RESOURCES += \
47 48
    qml.qrc \
    assets/assets.qrc
49

50 51 52
HEADERS += \
    src/db/db.h \
    src/buho.h \
53
    src/syncing/syncer.h \
54
    src/utils/owl.h \
55
    src/linker.h \
Camilo higuita's avatar
Camilo higuita committed
56
    src/utils/htmlparser.h \
57
    src/models/notes/notes.h \
58 59
    src/models/books/books.h \
    src/models/books/booklet.h \
60
    src/models/links/links.h \
61 62
    src/providers/nextnote.h \
    src/providers/abstractnotesprovider.h
63

64
INCLUDEPATH += \
65
    src/utils/ \
66 67
    src/providers/ \
    src/syncing/ \
68 69
    src/

70 71 72 73 74 75 76 77 78 79 80 81 82 83
# 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 \

84
include($$PWD/install.pri)
Camilo Higuita's avatar
Camilo Higuita committed
85

86 87 88 89 90
contains(ANDROID_TARGET_ARCH,armeabi-v7a) {
    ANDROID_PACKAGE_SOURCE_DIR = \
        $$PWD/3rdparty/mauikit/src/android
}