mauikit.pri 9.75 KB
Newer Older
1
QT *=  \
Camilo Higuita's avatar
Camilo Higuita committed
2 3 4 5 6
    core \
    qml \
    quick \
    gui \
    svg \
7
    concurrent
8
    
9
CONFIG *= c++17
Camilo Higuita's avatar
Camilo Higuita committed
10

11
DEFINES *= \
12
    MAUI_APP \
13
    STATIC_MAUIKIT
14 15 16 17 18 19 20 21 22 23 24 25 26

#REPO VARIABLES
LUV_REPO = https://github.com/milohr/luv-icon-theme
OPENSSL_REPO = https://github.com/mauikit/openssl
ATTICA_REPO = https://github.com/mauikit/attica
KQUICKSYNTAXHIGHLIGHTER_REPO = https://github.com/mauikit/kquicksyntaxhighlighter.git
KSYNTAXHIGHLIGHTING_REPO = https://github.com/mauikit/KSyntaxHighlighting.git

#ANDROID FILES VALUES
ANDROID_FILES_DIR = $$_PRO_FILE_PWD_/android_files
ANDROID_FILES_MANIFEST = $$_PRO_FILE_PWD_/android_files/AndroidManifest.xml
ANDROID_FILES_GRADLE = $$_PRO_FILE_PWD_/android_files/build.gradle
ANDROID_FILES_RES_DIR = $$_PRO_FILE_PWD_/android_files/res
Camilo Higuita's avatar
Camilo Higuita committed
27 28 29 30 31

linux:unix:!android {

    message(Building Maui helpers for Linux KDE)
    include($$PWD/src/kde/kde.pri)
32

camilo higuita's avatar
camilo higuita committed
33
} else:android|win32 {
Camilo Higuita's avatar
Camilo Higuita committed
34

camilo higuita's avatar
camilo higuita committed
35
    message(Building Maui helpers for Android or Windows)
36

camilo higuita's avatar
camilo higuita committed
37 38
    android {
        include($$PWD/src/android/android.pri)
39

camilo higuita's avatar
camilo higuita committed
40 41 42 43 44 45 46 47 48
        contains(DEFINES, ANDROID_OPENSSL):{
            exists($$PWD/src/utils/syncing/openssl/openssl.pri) {
                message("Using OpenSSL for Android")
                include($$PWD/src/utils/syncing/openssl/openssl.pri)
            }else {
                 message("Getting OpenSSL for Android")
                 system(git clone $$OPENSSL_REPO $$PWD/src/utils/syncing/openssl)
                include($$PWD/src/utils/syncing/openssl/openssl.pri)
            }
49
        }
camilo higuita's avatar
camilo higuita committed
50 51
    }else:win32 {

52 53 54 55 56
        message("Using OpenSSL for Windows")

LIBS += -L$$PWD/../../../../../../Qt/Tools/OpenSSL/Win_x64/lib/ -llibssl
LIBS += -L$$PWD/../../../../../../Qt/Tools/OpenSSL/Win_x64/lib/ -llibcrypto

camilo higuita's avatar
camilo higuita committed
57

58 59
    }

60
    contains(DEFINES, COMPONENT_EDITOR):{
61 62 63
        include($$PWD/src/utils/editor/syntaxhighlighter.pri)
    }

64 65
    contains(DEFINES, COMPONENT_STORE):{
        exists($$PWD/src/utils/store/attica/attica.pri):{
camilo higuita's avatar
camilo higuita committed
66
            message("Using Attica for Android or Windows")
67
            include($$PWD/src/utils/store/attica/attica.pri)
68 69 70
        }else {
             message("Getting Attica for Android")
             system(git clone $$ATTICA_REPO $$PWD/src/utils/store/attica)
71
            include($$PWD/src/utils/store/attica/attica.pri)
72 73 74
        }
    }

Camilo Higuita's avatar
Camilo Higuita committed
75 76 77 78
} else {
    message("Unknown configuration")
}

camilo higuita's avatar
camilo higuita committed
79 80 81 82 83 84 85 86
    contains(DEFINES, MAUIKIT_STYLE):{
        exists($$PWD/src/maui-style/icons/luv-icon-theme) {
            message("Using Luv icon theme")
        }else {
            message("Getting Luv icon theme")
            system(git clone $$LUV_REPO $$PWD/src/maui-style/icons/luv-icon-theme)
        }

87 88
        RESOURCES += $$PWD/src/maui-style/style.qrc

89
        win32 {
90 91 92 93 94
            DEFINES += ICONS_PNG
            RESOURCES += $$PWD/src/maui-style/icons_png.qrc
        }else {
            RESOURCES += $$PWD/src/maui-style/icons.qrc
        }
camilo higuita's avatar
camilo higuita committed
95 96
    }

97
contains(DEFINES, COMPONENT_TAGGING):{
98 99
    message("INCLUDING TAGGING COMPONENT")
    include($$PWD/src/utils/tagging/tagging.pri)
100 101
} else {
    warning("SKIPPING TAGGING COMPONENT")
102 103
}

104
contains(DEFINES, COMPONENT_EDITOR):{
105
    message("INCLUDING EDITOR COMPONENT")
Camilo Higuita's avatar
Camilo Higuita committed
106

107
    HEADERS += \
108
        $$PWD/src/utils/editor/documenthandler.h \
109
        $$PWD/src/utils/editor/syntaxhighlighterutil.h
110 111
    
    SOURCES += \
112
        $$PWD/src/utils//editor/documenthandler.cpp \
113
        $$PWD/src/utils/editor/syntaxhighlighterutil.cpp
114
    
115 116 117
    INCLUDEPATH += $$PWD/src/utils/editor
} else {
    warning("SKIPPING EDITOR COMPONENT")
118
}
119

120
contains(DEFINES, COMPONENT_STORE):{
121 122 123 124 125 126 127 128 129 130 131 132 133 134 135
    message("INCLUDING STORE COMPONENT")

    HEADERS += \
        $$PWD/src/utils/store/store.h \
        $$PWD/src/utils/store/storemodel.h \
        $$PWD/src/utils/store/storelist.h

    SOURCES += \
        $$PWD/src/utils/store/store.cpp \
        $$PWD/src/utils/store/storemodel.cpp \
        $$PWD/src/utils/store/storelist.cpp

    RESOURCES += $$PWD/src/utils/store/store.qrc

    INCLUDEPATH += $$PWD/src/utils/store
136 137
} else {
    warning("SKIPPING STORE COMPONENT")
138 139
}

140
contains(DEFINES, COMPONENT_SYNCING):{
141 142
    message("INCLUDING SYNCING COMPONENT")

camilo higuita's avatar
camilo higuita committed
143 144
    include($$PWD/src/utils/syncing/libwebdavclient/webdavclient.pri)

145 146 147
    HEADERS += $$PWD/src/utils/syncing/syncing.h
    SOURCES += $$PWD/src/utils/syncing/syncing.cpp
    INCLUDEPATH += $$PWD/src/utils/syncing
148 149
} else {
    warning("SKIPPING SYNCING COMPONENT")
150 151
}

152 153
contains(DEFINES, COMPONENT_ACCOUNTS):{
    message("INCLUDING ACCOUNTS COMPONENT")
camilo higuita's avatar
camilo higuita committed
154
    QT *= sql
155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172
    HEADERS +=  \
        $$PWD/src/utils/accounts/mauiaccounts.h \
        $$PWD/src/utils/accounts/accountsdb.h \

    SOURCES += \
        $$PWD/src/utils/accounts/mauiaccounts.cpp\
        $$PWD/src/utils/accounts/accountsdb.cpp

    RESOURCES += $$PWD/src/utils/accounts/accounts.qrc
    DISTFILES += $$PWD//src/utils/accounts/script.sql

    INCLUDEPATH += $$PWD/src/utils/accounts
    DEPENDPATH +=  $$PWD/src/utils/accounts

} else {
    warning("SKIPPING ACCOUNTS COMPONENT")
}

173
contains(DEFINES, COMPONENT_FM):{
174 175 176 177
    message("INCLUDING FM COMPONENT")
    HEADERS += \
        $$PWD/src/fm/fm.h \
        $$PWD/src/fm/fmlist.h \
camilo higuita's avatar
camilo higuita committed
178 179 180
        $$PWD/src/fm/placeslist.h \
        $$PWD/src/fm/downloader.h

181 182 183 184

    SOURCES += \
        $$PWD/src/fm/fm.cpp \
        $$PWD/src/fm/fmlist.cpp \
camilo higuita's avatar
camilo higuita committed
185 186
        $$PWD/src/fm/placeslist.cpp \
        $$PWD/src/fm/downloader.cpp
187 188 189

    INCLUDEPATH += $$PWD/src/fm
    DEPENDPATH += $$PWD/src/fm
190 191
} else {
    warning("SKIPPING FM COMPONENT")
192
}
Camilo Higuita's avatar
Camilo Higuita committed
193 194

RESOURCES += \
camilo higuita's avatar
camilo higuita committed
195
    $$PWD/src/mauikit.qrc \
camilo higuita's avatar
camilo higuita committed
196
    $$PWD/src/assets.qrc
Camilo Higuita's avatar
Camilo Higuita committed
197 198

HEADERS += \
199
    $$PWD/src/utils/fmstatic.h \
Camilo Higuita's avatar
Camilo Higuita committed
200
    $$PWD/src/mauikit.h \
201
    $$PWD/src/utils/fmh.h \
202 203
    $$PWD/src/utils/model_template/mauimodel.h \
    $$PWD/src/utils/model_template/mauilist.h \
204
    $$PWD/src/utils/handy.h \
205
    $$PWD/src/utils/utils.h \
206
    $$PWD/src/utils/mauiapp.h \
207
    $$PWD/src/utils/models/pathlist.h
Camilo Higuita's avatar
Camilo Higuita committed
208 209

SOURCES += \
210
    $$PWD/src/utils/fmstatic.cpp \
Camilo Higuita's avatar
Camilo Higuita committed
211
    $$PWD/src/mauikit.cpp \
212 213
    $$PWD/src/utils/model_template/mauimodel.cpp \
    $$PWD/src/utils/model_template/mauilist.cpp \
214
    $$PWD/src/utils/handy.cpp \
215
    $$PWD/src/utils/mauiapp.cpp \
216
    $$PWD/src/utils/models/pathlist.cpp
Camilo Higuita's avatar
Camilo Higuita committed
217 218 219

DEPENDPATH += \
    $$PWD/src \
220
    $$PWD/src/utils/model_template
Camilo Higuita's avatar
Camilo Higuita committed
221 222 223

INCLUDEPATH += \
     $$PWD/src \
Camilo higuita's avatar
Camilo higuita committed
224
     $$PWD/src/utils \
225
     $$PWD/src/utils/models \
226
     $$PWD/src/utils/model_template
Camilo Higuita's avatar
Camilo Higuita committed
227

Camilo higuita's avatar
Camilo higuita committed
228
API_VER = 1.0
Camilo Higuita's avatar
Camilo Higuita committed
229 230

DISTFILES += \
231 232
    $$PWD/CMakeLists.txt \
    $$PWD/src/controls/qmldir
233

Camilo higuita's avatar
Camilo higuita committed
234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337
#ANDROID_EXTRA_LIBS += $$PWD/libs/bin/libKF5KIOFileWidgets.so
#ANDROID_EXTRA_LIBS += $$PWD/libs/bin/libKF5KIOWidgets.so
#ANDROID_EXTRA_LIBS += $$PWD/libs/bin/libKF5Bookmarks.so
#ANDROID_EXTRA_LIBS += $$PWD/libs/bin/libKF5Solid.so
#ANDROID_EXTRA_LIBS += $$PWD/libs/bin/libKF5XmlGui.so
#ANDROID_EXTRA_LIBS += $$PWD/libs/bin/libKF5IconThemes.so
#ANDROID_EXTRA_LIBS += $$PWD/libs/bin/libKF5KIOCore.so
#ANDROID_EXTRA_LIBS += $$PWD/libs/bin/libKF5JobWidgets.so
#ANDROID_EXTRA_LIBS += $$PWD/libs/bin/libKF5Service.so
#ANDROID_EXTRA_LIBS += $$PWD/libs/bin/libKF5Completion.so
#ANDROID_EXTRA_LIBS += $$PWD/libs/bin/libKF5ItemViews.so
#ANDROID_EXTRA_LIBS += $$PWD/libs/bin/libKF5ConfigWidgets.so
#ANDROID_EXTRA_LIBS += $$PWD/libs/bin/libKF5I18n.so
#ANDROID_EXTRA_LIBS += $$PWD/libs/bin/libKF5WidgetsAddons.so
#ANDROID_EXTRA_LIBS += $$PWD/libs/bin/libKF5Codecs.so
#ANDROID_EXTRA_LIBS += $$PWD/libs/bin/libKF5ConfigGui.so
#ANDROID_EXTRA_LIBS += $$PWD/libs/bin/libKF5ConfigCore.so
#ANDROID_EXTRA_LIBS += $$PWD/libs/bin/libKF5ConfigCore.so
#ANDROID_EXTRA_LIBS += $$PWD/libs/bin/libdbus-1.so

##KIOFileWidgets
#LIBS += -L$$PWD/libs/bin/ -lKF5KIOFileWidgets
#INCLUDEPATH += $$PWD/libs/includes/KIOFileWidgets
#DEPENDPATH += $$PWD/libs/includes/KIOFileWidgets

##KBookmarks
#LIBS += -L$$PWD/libs/bin/ -lKF5Bookmarks
#INCLUDEPATH += $$PWD/libs/includes/KBookmarks
#DEPENDPATH += $$PWD/libs/includes/KBookmarks

##KSolid
#LIBS += -L$$PWD//libs/bin/ -lKF5Solid
#INCLUDEPATH += $$PWD//libs/includes/Solid
#DEPENDPATH += $$PWD/libs/includes/Solid

##KIOWidgets
#LIBS += -L$$PWD/libs/bin/ -lKF5KIOWidgets
#INCLUDEPATH += $$PWD/libs/includes/KIOWidgets
#DEPENDPATH += $$PWD/libs/includes/KIOWidgets

##KXmlGui
#LIBS += -L$$PWD/libs/bin/ -lKF5XmlGui
#INCLUDEPATH += $$PWD/libs/includes/KXmlGui
#DEPENDPATH += $$PWD/libs/includes/KXmlGui

##KIconThemes
#LIBS += -L$$PWD/libs/bin/ -lKF5IconThemes
#INCLUDEPATH += $$PWD/libs/includes/KIconThemes
#DEPENDPATH += $$PWD/libs/includes/KIconThemes

##KIOCore
#LIBS += -L$$PWD/libs/bin/ -lKF5KIOCore
#INCLUDEPATH += $$PWD/libs/includes/KIOCore
#DEPENDPATH += $$PWD/libs/includes/KIOCore

##KJobWidgets
#LIBS += -L$$PWD/libs/bin/ -lKF5JobWidgets
#INCLUDEPATH += $$PWD/libs/includes/KJobWidgets
#DEPENDPATH += $$PWD/libs/includes/KJobWidgets

##KService
#LIBS += -L$$PWD/libs/bin/ -lKF5Service
#INCLUDEPATH += $$PWD/libs/includes/KService
#DEPENDPATH += $$PWD/libs/includes/KService

##KCompletion
#LIBS += -L$$PWD/libs/bin/ -lKF5Completion
#INCLUDEPATH += $$PWD/libs/includes/KCompletion
#DEPENDPATH += $$PWD/libs/includes/KCompletion

##KItemViews
#LIBS += -L$$PWD/libs/bin/ -lKF5ItemViews
#INCLUDEPATH += $$PWD/libs/includes/KItemViews
#DEPENDPATH += $$PWD/libs/includes/KItemViews

##KConfigWidgets
#LIBS += -L$$PWD/libs/bin/ -lKF5ConfigWidgets
#INCLUDEPATH += $$PWD/libs/includes/KConfigWidgets
#DEPENDPATH += $$PWD/libs/includes/KConfigWidgets

##KI18n
#LIBS += -L$$PWD/libs/bin/ -lKF5I18n
#INCLUDEPATH += $$PWD/libs/includes/KI18n
#DEPENDPATH += $$PWD/libs/includes/KI18n

##KWidgetsAddons
#LIBS += -L$$PWD/libs/bin/ -lKF5WidgetsAddons
#INCLUDEPATH += $$PWD/libs/includes/KWidgetsAddons
#DEPENDPATH += $$PWD/libs/includes/KWidgetsAddons

##KCodecs
#LIBS += -L$$PWD/libs/bin/ -lKF5Codecs
#INCLUDEPATH += $$PWD/libs/includes/KCodecs
#DEPENDPATH += $$PWD/libs/includes/KCodecs

##KConfigGui
#LIBS += -L$$PWD/libs/bin/ -lKF5ConfigGui
#INCLUDEPATH += $$PWD/libs/includes/KConfigGui
#DEPENDPATH += $$PWD/libs/includes/KConfigGui

##KConfigCore
#LIBS += -L$$PWD/libs/bin/ -lKF5ConfigCore
#INCLUDEPATH += $$PWD/libs/includes/KConfigCore
#DEPENDPATH += $$PWD/libs/includes/KConfigCore
338