forked from lirios/fluid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfluid.pro
64 lines (56 loc) · 1.83 KB
/
fluid.pro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
defineTest(minQtVersion) {
maj = $$1
min = $$2
patch = $$3
isEqual(QT_MAJOR_VERSION, $$maj) {
isEqual(QT_MINOR_VERSION, $$min) {
isEqual(QT_PATCH_VERSION, $$patch) {
return(true)
}
greaterThan(QT_PATCH_VERSION, $$patch) {
return(true)
}
}
greaterThan(QT_MINOR_VERSION, $$min) {
return(true)
}
}
greaterThan(QT_MAJOR_VERSION, $$maj) {
return(true)
}
return(false)
}
!minQtVersion(5, 8, 0): \
error("Fluid requires at least Qt 5.8.0, but $${QT_VERSION} was detected.")
!exists(features/liri_deployment.prf): \
error("Git submodule missing. Run \'git submodule update --init\' in $${PWD}.")
TEMPLATE = subdirs
SUBDIRS += src tests
CONFIG += ordered
tests.depends = src
# We do not install features anymore, just rely on submodules
# to avoid a Fluid dependency on modules where it doesn't make sense
#prf.files = \
# $$PWD/features/liri_create_cmake.prf \
# $$PWD/features/liri_deployment.prf \
# $$PWD/features/liri_qml_module.prf \
# $$PWD/features/liri_qml_plugin.prf \
# $$PWD/features/liri_qt_app.prf \
# $$PWD/features/liri_qt_module.prf \
# $$PWD/features/liri_qt_module_pris.prf \
# $$PWD/features/liri_qt_plugin.prf
#prf.path = $$[QT_HOST_DATA]/mkspecs/features
#INSTALLS += prf
#
#prf_data_cmake.files = \
# $$PWD/features/data/cmake/liri_ExtraSourceIncludes.cmake.in \
# $$PWD/features/data/cmake/liri_Qt5BasicConfig.cmake.in \
# $$PWD/features/data/cmake/liri_Qt5ConfigVersion.cmake.in \
# $$PWD/features/data/cmake/liri_Qt5PluginTarget.cmake.in
#prf_data_cmake.path = $$[QT_HOST_DATA]/mkspecs/features/data/cmake
#INSTALLS += prf_data_cmake
OTHER_FILES += \
$$PWD/AUTHORS.md \
$$PWD/LICENSE.MPL2 \
$$PWD/README.md
include(doc/doc.pri)