diff options
author | Heikki Halmet <heikki.halmet@qt.io> | 2021-11-12 10:12:07 +0200 |
---|---|---|
committer | Heikki Halmet <heikki.halmet@qt.io> | 2021-11-12 16:39:33 +0200 |
commit | ab7d990ec38c7dcbfc6fe48e968cbb47beb23016 (patch) | |
tree | b2083906fee775fb42ccaa8dc4b67be34cb43749 | |
parent | 9e27a7d5e3e6d07c775c80380e882d77d1e099f6 (diff) |
Add temporary emsdk_env.bat for webassembly
Let's use this temporary hack so that we can get support
for setting Emscripten environment for Webassembly through qtbase
This change will be removed when we start installing emsdk using
emsdk.git. That installation process will automatically set emsdk_env.bat
Change-Id: I6eb417b28c9ca0cd01a743dea2fa38540fd4dcc3
Reviewed-by: Toni Saario <toni.saario@qt.io>
-rw-r--r-- | coin/provisioning/common/windows/emsdk.ps1 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/coin/provisioning/common/windows/emsdk.ps1 b/coin/provisioning/common/windows/emsdk.ps1 index 992f569d..524edba1 100644 --- a/coin/provisioning/common/windows/emsdk.ps1 +++ b/coin/provisioning/common/windows/emsdk.ps1 @@ -113,6 +113,11 @@ Set-EnvironmentVariable "EMSDK_PATH" "$installLocationEmsdk\emscripten-llvm-e$ve Add-Path "$env:EMSDK_PATH" +# These can be removed when installing emsdk using emsdk.git +Set-Content -Path C:\Utils\emsdk\emsdk_env.bat -Value ":: This file is needed to get support for setting Emscripten environment for Webassembly through qtbase" -Encoding ASCII +Set-Content -Path C:\Utils\emsdk\emsdk_env.bat -Value ":: This file will have environment variables when https://codereview.qt-project.org/c/qt/qt5/+/372122 get merged" -Encoding ASCII +Set-Content -Path C:\Utils\emsdk\emsdk_env.bat -Value "echo nothing to run at this point" -Encoding ASCII + Write-Output "emsdk = $version" >> ~/versions.txt Write-Output "emsdk llvm = $version" >> ~/versions.txt Write-Output "emsdk NodeJs = $versionNode" >> ~/versions.txt |