This repository was archived by the owner on Mar 4, 2023. It is now read-only.
File tree 2 files changed +17
-10
lines changed 2 files changed +17
-10
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ DEFINES += QT_DEPRECATED_WARNINGS QT_ASCII_CAST_WARNINGS
10
10
11
11
MODULE_VERSION_MAJOR = 4
12
12
MODULE_VERSION_MINOR = 1
13
- MODULE_VERSION_PATCH = 0
13
+ MODULE_VERSION_PATCH = 1
14
14
MODULE_VERSION_IMPORT = $${MODULE_VERSION_MAJOR}.$${MODULE_VERSION_MINOR}
15
15
MODULE_VERSION = $${MODULE_VERSION_MAJOR}.$${MODULE_VERSION_MINOR}.$${MODULE_VERSION_PATCH}
16
16
Original file line number Diff line number Diff line change @@ -25,21 +25,28 @@ SOURCES += \
25
25
26
26
OTHER_FILES += qmldir
27
27
28
- generate_qmltypes {
29
- typeextra1.target = qmltypes
30
- typeextra1.depends += export LD_LIBRARY_PATH : = " $$shadowed($$dirname(_QMAKE_CONF_))/lib/:$$[QT_INSTALL_LIBS]:$(LD_LIBRARY_PATH)"
31
- typeextra2.target = qmltypes
32
- typeextra2.depends += export QML2_IMPORT_PATH : = " $$shadowed($$dirname(_QMAKE_CONF_))/qml/"
33
- QMAKE_EXTRA_TARGETS += typeextra1 typeextra2
34
- }
35
-
36
28
CONFIG += qmlcache
37
29
load(qml_plugin)
38
30
39
31
generate_qmltypes {
40
- qmltypes.depends = ../../../qml/ $$TARGETPATH / $(TARGET) # overwrite the target deps
32
+ # run again to overwrite module env
33
+ ldpath.name = LD_LIBRARY_PATH
34
+ ldpath.value = " $$shadowed($$dirname(_QMAKE_CONF_))/lib/:$$[QT_INSTALL_LIBS]:$$(LD_LIBRARY_PATH)"
35
+ qmlpath.name = QML2_IMPORT_PATH
36
+ qmlpath.value = " $$shadowed($$dirname(_QMAKE_CONF_))/qml/:$$[QT_INSTALL_QML]:$$(QML2_IMPORT_PATH)"
37
+ PLGDUMP_ENV = ldpath qmlpath
38
+ QT_TOOL_ENV = ldpath qmlpath
39
+ qtPrepareTool(QMLPLUGINDUMP, qmlplugindump)
40
+ QT_TOOL_ENV =
41
+
42
+ # overwrite the target deps as make target is otherwise not detected
43
+ qmltypes.depends = ../../../qml/ $$TARGETPATH / $(TARGET)
44
+ OLDDMP = $$take_first (qmltypes.commands )
45
+ qmltypes.commands = $$QMLPLUGINDUMP $${qmltypes.commands }
46
+ message ("replaced $$OLDDMP with $$QMLPLUGINDUMP" )
41
47
42
48
mfirst.target = all
43
49
mfirst.depends += qmltypes
44
50
QMAKE_EXTRA_TARGETS += mfirst
45
51
}
52
+
You can’t perform that action at this time.
0 commit comments