buho.pro 1.69 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 += c++11
8 9 10 11 12
CONFIG += ordered

TARGET = buho
TEMPLATE = app

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

linux:unix:!android {

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

} else:android {

    message(Building helpers for Android)
Camilo higuita's avatar
Camilo higuita committed
24 25 26
    QT += androidextras webview

    include($$PWD/3rdparty/openssl/openssl.pri)
Camilo Higuita's avatar
Camilo Higuita committed
27
    include($$PWD/mauikit/mauikit.pri)
28
    include($$PWD/3rdparty/kirigami/kirigami.pri)
29

30 31 32 33 34 35
    DEFINES += STATIC_KIRIGAMI

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

DEFINES += QT_DEPRECATED_WARNINGS

SOURCES += \
40 41
    main.cpp \
    src/db/db.cpp \
42
    src/buho.cpp \
43
    src/linker.cpp \
44
    src/syncing/syncer.cpp \
Camilo higuita's avatar
Camilo higuita committed
45
    src/utils/htmlparser.cpp \
46
    src/models/notes/notes.cpp \
47 48 49
    src/models/links/links.cpp \
    src/models/basemodel.cpp \
    src/models/baselist.cpp
50

51
RESOURCES += \
52 53
    qml.qrc \
    assets/assets.qrc
54 55 56 57 58 59 60 61 62 63 64

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

66 67 68 69 70 71
DISTFILES += \
    src/db/script.sql \

HEADERS += \
    src/db/db.h \
    src/buho.h \
72
    src/syncing/syncer.h \
73
    src/utils/owl.h \
74
    src/linker.h \
Camilo higuita's avatar
Camilo higuita committed
75
    src/utils/htmlparser.h \
76
    src/models/notes/notes.h \
77 78 79
    src/models/links/links.h \
    src/models/basemodel.h \
    src/models/baselist.h
80

81
INCLUDEPATH += \
82 83 84
    src/utils/ \
    src/

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