diff options
author | Ian Chen <ian.1.chen@nokia.com> | 2012-07-10 14:35:04 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-07-12 07:42:54 +0200 |
commit | 38494790fff6ac6445ed05126b9809ad15ff919d (patch) | |
tree | b362260b973f240c16c0dc4e5a573ea3a70d436c /examples | |
parent | 88936e01b336ccfffb38c6fe5600938ef20a4e23 (diff) | |
download | qtlocation-38494790fff6ac6445ed05126b9809ad15ff919d.tar.gz |
Enable copy of mapviewer's media file to build dir
Change-Id: I6e19e9fc77fd844b7cb597d62728bf41775a52d6
Reviewed-by: Natalia Shubina <natalia.shubina@nokia.com>
Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/declarative/mapviewer/mapviewer.pro | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/examples/declarative/mapviewer/mapviewer.pro b/examples/declarative/mapviewer/mapviewer.pro index d55b2147..7ae7b4dc 100644 --- a/examples/declarative/mapviewer/mapviewer.pro +++ b/examples/declarative/mapviewer/mapviewer.pro @@ -36,3 +36,14 @@ target.path = $$[QT_INSTALL_EXAMPLES]/qtlocation/declarative/mapviewer INSTALLS += target +!equals($${_PRO_FILE_PWD_}, $${OUT_PWD}) { + MEDIAFILE = $${_PRO_FILE_PWD_}/demo.ogv + copy2build.input = MEDIAFILE + copy2build.output = $${OUT_PWD}/demo.ogv + !contains(TEMPLATE_PREFIX, vc):copy2build.variable_out = PRE_TARGETDEPS + copy2build.commands = $$QMAKE_COPY ${QMAKE_FILE_IN} ${QMAKE_FILE_OUT} + copy2build.name = COPY ${QMAKE_FILE_IN} + copy2build.CONFIG += no_link + copy2build.CONFIG += no_clean + QMAKE_EXTRA_COMPILERS += copy2build +} |