forked from wang-bin/QtAV
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
copy to qt dir only for make install. some paths fix
- Loading branch information
Showing
7 changed files
with
51 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,24 +15,25 @@ preparePaths($$OUT_PWD/../out) | |
RESOURCES += | ||
|
||
QML_FILES = $$PWD/Video.qml | ||
# TODO: why add more files e.g. qmldir cause make error? | ||
|
||
qtav_qml.files = $$PWD/qmldir $$PWD/Video.qml $$PWD/plugins.qmltypes | ||
!ios: plugin.files = $$DESTDIR/$$qtSharedLib($$NAME) | ||
plugin.path = $$BUILD_DIR/bin/QtAV/ #TODO: Qt install dir | ||
#plugin.depends = #makefile target | ||
#windows: copy /y file1+file2+... dir. need '+' | ||
for(f, plugin.files) { | ||
plugin.commands = $$quote(-\$\(COPY_FILE\) $$shell_path($$f) $$shell_path($$plugin.path)) | ||
plugin.commands += $$escape_expand(\\n\\t)$$quote(-\$\(MKDIR\) $$shell_path($$[QT_INSTALL_QML]/QtAV)) | ||
plugin.commands += $$escape_expand(\\n\\t)$$quote(-\$\(COPY_FILE\) $$shell_path($$f) $$shell_path($$[QT_INSTALL_QML]/QtAV)) | ||
plugin.commands += $$escape_expand(\\n\\t)$$quote(-\$\(MKDIR\) $$shell_path($$plugin.path)) | ||
plugin.commands += $$escape_expand(\\n\\t)$$quote(-\$\(COPY_FILE\) $$shell_path($$f) $$shell_path($$plugin.path)) | ||
} | ||
#join values seperated by space. so quote is needed | ||
#plugin.commands = $$join(plugin.commands,$$escape_expand(\\n\\t)) | ||
OTHER_FILES += qmldir Video.qml plugins.qmltypes | ||
OTHER_FILES += $$qtav_qml.files | ||
#just append as a string to $$QMAKE_POST_LINK | ||
isEmpty(QMAKE_POST_LINK): QMAKE_POST_LINK = $$plugin.commands | ||
else: QMAKE_POST_LINK = $${QMAKE_POST_LINK}$$escape_expand(\\n\\t)$$plugin.commands | ||
|
||
QMAKE_EXTRA_TARGETS = plugin | ||
#QMAKE_EXTRA_TARGETS = plugin | ||
|
||
#POST_TARGETDEPS = plugin #vs, xcode does not support | ||
#mkpath($$plugin.path) | ||
#no write permision. do it in makefile | ||
|
@@ -43,18 +44,16 @@ QMAKE_EXTRA_TARGETS = plugin | |
#custom compiler: auto update if source is newer | ||
extra_copy.output = $$shell_path($$plugin.path)${QMAKE_FILE_BASE}${QMAKE_FILE_EXT} | ||
# QMAKE_COPY_FILE, QMAKE_MKDIR_CMD ? | ||
extra_copy.commands = -\$\(MKDIR\) $$shell_path($$plugin.path) | ||
extra_copy.commands += $$escape_expand(\\n\\t)-\$\(COPY_FILE\) ${QMAKE_FILE_NAME} $$shell_path($$plugin.path) | ||
extra_copy.commands += $$escape_expand(\\n\\t)-\$\(MKDIR\) $$shell_path($$[QT_INSTALL_QML]/QtAV) | ||
extra_copy.commands += $$escape_expand(\\n\\t)-\$\(COPY_FILE\) ${QMAKE_FILE_NAME} $$shell_path($$[QT_INSTALL_QML]/QtAV) | ||
extra_copy.commands = -\$\(MKDIR\) $$shell_path($$BUILD_DIR/bin/QtAV/) | ||
extra_copy.commands += $$escape_expand(\\n\\t)-\$\(COPY_FILE\) ${QMAKE_FILE_NAME} $$shell_path($$BUILD_DIR/bin/QtAV/) | ||
#extra_copy.depends = $$EXTRA_COPY_FILES #.input is already the depends | ||
extra_copy.input = EXTRA_COPY_FILES | ||
extra_copy.CONFIG += no_link | ||
extra_copy.variable_out = POST_TARGETDEPS | ||
QMAKE_EXTRA_COMPILERS += extra_copy | ||
QMAKE_EXTRA_COMPILERS += extra_copy # | ||
# CAN NOT put $$TARGET here otherwise may result in circular dependency. | ||
# update EXTRA_COPY_FILES will result in target relink | ||
EXTRA_COPY_FILES = qmldir Video.qml plugins.qmltypes | ||
EXTRA_COPY_FILES = $$qtav_qml.files | ||
|
||
QMAKE_WRITE_DEFAULT_RC = 1 | ||
QMAKE_TARGET_COMPANY = "Shanghai University->S3 Graphics | [email protected]" | ||
|
@@ -91,5 +90,9 @@ SDK_HEADERS += \ | |
HEADERS *= \ | ||
$$SDK_HEADERS | ||
|
||
SDK_INCLUDE_FOLDER = QmlAV | ||
target.path = $$[QT_INSTALL_QML]/QtAV | ||
qtav_qml.path = $$[QT_INSTALL_QML]/QtAV | ||
INSTALLS += target qtav_qml | ||
|
||
MODULE = QmlAV | ||
include($$PROJECTROOT/deploy.pri) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.