diff options
author | Liang Qi <liang.qi@qt.io> | 2016-05-19 21:45:05 +0200 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2016-05-19 21:45:05 +0200 |
commit | 4fda82b66e17cc03e6b08f1afd135069cfef09b7 (patch) | |
tree | 303b85aaa1b04b3de819c0b77c509a7afa8540a7 /examples | |
parent | b025372d8b59b0080e1aa1d43b28da2c5544d30c (diff) | |
parent | 39692e398ef847a1d6482419a617452cb1e5ae0d (diff) | |
download | qtwebchannel-4fda82b66e17cc03e6b08f1afd135069cfef09b7.tar.gz |
Merge remote-tracking branch 'origin/5.6' into 5.7v5.7.0-rc1
Conflicts:
.qmake.conf
Change-Id: I52dc7e8ad7a9ce6fa36ad2d6ce5d8ea29b77b400
Diffstat (limited to 'examples')
-rw-r--r-- | examples/webchannel/chatclient-html/chatclient-html.pro | 2 | ||||
-rw-r--r-- | examples/webchannel/chatclient-qml/chatclient-qml.pro | 2 | ||||
-rw-r--r-- | examples/webchannel/chatserver-cpp/chatserver-cpp.pro | 3 | ||||
-rw-r--r-- | examples/webchannel/exampleassets.pri | 16 | ||||
-rw-r--r-- | examples/webchannel/nodejs/nodejs.pro | 2 | ||||
-rw-r--r-- | examples/webchannel/qwclient/qwclient.pro | 2 | ||||
-rw-r--r-- | examples/webchannel/standalone/standalone.pro | 5 | ||||
-rw-r--r-- | examples/webchannel/webchannel.pro | 3 |
8 files changed, 18 insertions, 17 deletions
diff --git a/examples/webchannel/chatclient-html/chatclient-html.pro b/examples/webchannel/chatclient-html/chatclient-html.pro index f5f0bf4..6aa0b0a 100644 --- a/examples/webchannel/chatclient-html/chatclient-html.pro +++ b/examples/webchannel/chatclient-html/chatclient-html.pro @@ -3,5 +3,5 @@ TEMPLATE = aux exampleassets.files += \ chatclient.html -exampleassets.path = $$[QT_INSTALL_EXAMPLES]/qwebchannel/chatclient-html +exampleassets.path = $$[QT_INSTALL_EXAMPLES]/webchannel/chatclient-html include(../exampleassets.pri) diff --git a/examples/webchannel/chatclient-qml/chatclient-qml.pro b/examples/webchannel/chatclient-qml/chatclient-qml.pro index 74b274d..185ffde 100644 --- a/examples/webchannel/chatclient-qml/chatclient-qml.pro +++ b/examples/webchannel/chatclient-qml/chatclient-qml.pro @@ -3,5 +3,5 @@ TEMPLATE = aux exampleassets.files += \ qmlchatclient.qml -exampleassets.path = $$[QT_INSTALL_EXAMPLES]/qwebchannel/chatclient-qml +exampleassets.path = $$[QT_INSTALL_EXAMPLES]/webchannel/chatclient-qml include(../exampleassets.pri) diff --git a/examples/webchannel/chatserver-cpp/chatserver-cpp.pro b/examples/webchannel/chatserver-cpp/chatserver-cpp.pro index ce6a3f7..a7ee42f 100644 --- a/examples/webchannel/chatserver-cpp/chatserver-cpp.pro +++ b/examples/webchannel/chatserver-cpp/chatserver-cpp.pro @@ -16,3 +16,6 @@ HEADERS += \ chatserver.h \ ../shared/websocketclientwrapper.h \ ../shared/websockettransport.h + +target.path = $$[QT_INSTALL_EXAMPLES]/webchannel/chatserver-cpp +INSTALLS += target diff --git a/examples/webchannel/exampleassets.pri b/examples/webchannel/exampleassets.pri index 035ca12..bbdf656 100644 --- a/examples/webchannel/exampleassets.pri +++ b/examples/webchannel/exampleassets.pri @@ -2,7 +2,7 @@ QTDIR_build { # Build from within Qt. Copy and install the reference lib. jslib = $$dirname(_QMAKE_CONF_)/src/webchannel/qwebchannel.js - copyfiles = $$jslib + assetcopy.files = $$jslib } else { # This is what an actual 3rd party project would do. jslib = qwebchannel.js @@ -16,16 +16,8 @@ INSTALLS += exampleassets !equals(_PRO_FILE_PWD_, $$OUT_PWD) { # Shadow build, copy all example assets. - copyfiles = $$exampleassets.files + assetcopy.files = $$exampleassets.files } -defineReplace(stripSrcDir) { - return($$basename(1)) -} - -assetcopy.input = copyfiles -assetcopy.output = $$OUT_PWD/${QMAKE_FUNC_FILE_IN_stripSrcDir} -assetcopy.commands = $$QMAKE_COPY ${QMAKE_FILE_IN} ${QMAKE_FILE_OUT} -assetcopy.name = COPY ${QMAKE_FILE_IN} -assetcopy.CONFIG = no_link target_predeps -QMAKE_EXTRA_COMPILERS += assetcopy +assetcopy.path = $$OUT_PWD +COPIES += assetcopy diff --git a/examples/webchannel/nodejs/nodejs.pro b/examples/webchannel/nodejs/nodejs.pro index 4df94d2..4da5fc7 100644 --- a/examples/webchannel/nodejs/nodejs.pro +++ b/examples/webchannel/nodejs/nodejs.pro @@ -3,5 +3,5 @@ TEMPLATE = aux exampleassets.files += \ chatclient.js \ package.json -exampleassets.path = $$[QT_INSTALL_EXAMPLES]/qwebchannel/nodejs +exampleassets.path = $$[QT_INSTALL_EXAMPLES]/webchannel/nodejs include(../exampleassets.pri) diff --git a/examples/webchannel/qwclient/qwclient.pro b/examples/webchannel/qwclient/qwclient.pro index 587571a..374a63b 100644 --- a/examples/webchannel/qwclient/qwclient.pro +++ b/examples/webchannel/qwclient/qwclient.pro @@ -5,5 +5,5 @@ exampleassets.files += \ package.json \ README -exampleassets.path = $$[QT_INSTALL_EXAMPLES]/qwebchannel/qwclient +exampleassets.path = $$[QT_INSTALL_EXAMPLES]/webchannel/qwclient include(../exampleassets.pri) diff --git a/examples/webchannel/standalone/standalone.pro b/examples/webchannel/standalone/standalone.pro index 19aa264..cfe4297 100644 --- a/examples/webchannel/standalone/standalone.pro +++ b/examples/webchannel/standalone/standalone.pro @@ -18,5 +18,8 @@ DEFINES += "BUILD_DIR=\"\\\""$$OUT_PWD"\\\"\"" exampleassets.files += \ index.html -exampleassets.path = $$[QT_INSTALL_EXAMPLES]/qwebchannel/standalone +exampleassets.path = $$[QT_INSTALL_EXAMPLES]/webchannel/standalone include(../exampleassets.pri) + +target.path = $$[QT_INSTALL_EXAMPLES]/webchannel/standalone +INSTALLS += target diff --git a/examples/webchannel/webchannel.pro b/examples/webchannel/webchannel.pro index 7d3db8d..fd3a072 100644 --- a/examples/webchannel/webchannel.pro +++ b/examples/webchannel/webchannel.pro @@ -10,3 +10,6 @@ qtHaveModule(websockets) { SUBDIRS += nodejs \ qwclient \ chatclient-html + +EXAMPLE_FILES += \ + shared |