summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/wasm/qwasmintegration.h
diff options
context:
space:
mode:
authorFredrik Orderud <fredrik.orderud@ge.com>2019-05-20 10:28:12 +0200
committerFredrik Orderud <fredrik.orderud@ge.com>2019-05-21 09:12:07 +0200
commit2a2f04205ccedf83b32cd91f08f40972e5430468 (patch)
treea704e954c7a3d228e99c8edeecc8283ae24315af /src/plugins/platforms/wasm/qwasmintegration.h
parentbd55a9d91227d1ac38f51b21ca23dec7fa5e82af (diff)
WASM: Make wasm_shell.html compatible with CMake configure_file
The CMake configure_file command is commonly used copy & modify template files during the build process. One limitation, thought, is that configure_file expect the variables to be replaced to be encoded using either a @APPNAME@ or ${APPNAME} convention. This commit therefore changes "APPNAME" to "@APPNAME@" in wasm_shell.html to make the HTML template file compatible with CMake configure_file. With this commit, it becomes possible to write the following CMake function that mimics what QMake is already doing: function(copy_html_js_launch_files target) set(APPNAME ${target}) configure_file("${_qt5Core_install_prefix}/plugins/platforms/wasm_shell.html" "${target}.html") configure_file("${_qt5Core_install_prefix}/plugins/platforms/qtloader.js" qtloader.js COPYONLY) endfunction() Change-Id: Ic38abdc498ba03b8d21f1b9b70aa1d480ae7f362 Reference: https://cmake.org/cmake/help/latest/command/configure_file.html Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Diffstat (limited to 'src/plugins/platforms/wasm/qwasmintegration.h')
0 files changed, 0 insertions, 0 deletions