-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbeatlib.pro
43 lines (32 loc) · 1.12 KB
/
beatlib.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
TEMPLATE = lib
TARGET = BeatLib
QT += qml quick
CONFIG += plugin c++17
# always build debug + release versions
CONFIG += debug_and_release make_all build_all
include(src/beatlib_sources.pri)
TARGET = $$qtLibraryTarget($$TARGET)
uri = at.cb.beatlib
uri_path = $$replace(uri, '\.', "/")
COMPILER_PATH = $$[QT_INSTALL_PREFIX]
PLATFORM_LIBRARY_POSTFIX = $$section(COMPILER_PATH, "/", -1, -1)
LIBDIR = $$PWD/lib/$$PLATFORM_LIBRARY_POSTFIX
DESTDIR = $$LIBDIR/$$uri_path
DISTFILES = qmldir
OTHER_FILES += qmldir
qmldir.files = qmldir
# Copy the qmldir file to the same folder as the plugin binary
cpqmldir.files = qmldir
cpqmldir.path = $$DESTDIR
COPIES += cpqmldir
# Generate qmltypes file after linking
QMLTYPESFILE_OUTPUT = $$DESTDIR/plugins.qmltypes
qtPrepareTool(QMLPLUGINDUMP, qmlplugindump)
exists($$QMLPLUGINDUMP) {
mac: !exists($$QMLPLUGINDUMP): QMLPLUGINDUMP = "$${QMLPLUGINDUMP}.app/Contents/MacOS/qmlplugindump"
QMAKE_POST_LINK += $$QMLPLUGINDUMP -v -nonrelocatable $$uri "1.0" $$LIBDIR > $$QMLTYPESFILE_OUTPUT
}
else {
message(qmlplugindump not found.)
}
OTHER_FILES += doc/*.qdocconf doc/src/* doc/style/* doc/images/*