-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodules.pri
More file actions
22 lines (19 loc) · 1.01 KB
/
modules.pri
File metadata and controls
22 lines (19 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
### Copy qmldir file and then generate plugins.qmltypes file
FILES_TO_COPY = $$_PRO_FILE_PWD_/qmldir
DESTINATION_DIR = $$shell_quote($$shell_path($$OUT_PWD/$$DESTDIR))
for (FILE, FILES_TO_COPY) {
FILE_PATH = $$shell_quote($$shell_path($$FILE))
QMAKE_POST_LINK += $$QMAKE_COPY $$FILE_PATH $$DESTINATION_DIR $$escape_expand(\n\t)
}
# qmltypes files are only needed by the intellisense of Objectwheel
!android:!ios {
QMLDUMPER_PATH = $$absolute_path("qmlplugindump", $$dirname(QMAKE_QMAKE))
MODULE_NAME = Objectwheel
!equals(TARGET, "objectwheelmodule"):MODULE_NAME = Objectwheel.$$basename(DESTDIR)
QMAKE_POST_LINK += cd $$shell_quote($$shell_path($$clean_path($$OUT_PWD/../Modules))) && \
$$QMLDUMPER_PATH -nonrelocatable $$MODULE_NAME $$VERSION \
$$shell_quote($$shell_path(.)) > \
$$shell_quote($$shell_path($$relative_path($$clean_path($$OUT_PWD/$$DESTDIR/plugins.qmltypes), \
$$clean_path($$OUT_PWD/../Modules)))) \
$$escape_expand(\n\t)
}