mirror of
git://code.qt.io/qt/qt5.git
synced 2026-03-23 23:01:38 +08:00
Replace the current license disclaimer in files by
a SPDX-License-Identifier.
License files are organized under LICENSES directory.
Task-number: QTBUG-67283
Task-number: QTBUG-108364
Change-Id: If26e4d35c780db4a7982bb84872b251dad24716e
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
(cherry picked from commit eecfb19548)
34 lines
986 B
Bash
Executable File
34 lines
986 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Copyright (C) 2023 The Qt Company Ltd.
|
|
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
|
|
|
# shellcheck source=./SetEnvVar.sh
|
|
source "${BASH_SOURCE%/*}/SetEnvVar.sh"
|
|
|
|
version="3.1.25"
|
|
versionNode="v14.18.2"
|
|
|
|
mkdir -p /opt
|
|
cd /opt
|
|
sudo git clone https://github.com/emscripten-core/emsdk.git
|
|
cd emsdk
|
|
sudo ./emsdk install $version
|
|
sudo ./emsdk activate $version
|
|
|
|
# platform-specific toolchain and node binaries. urls obtained from "emsdk install"
|
|
if uname -a |grep -q Darwin; then
|
|
pathNodeExecutable="node-$versionNode-darwin-x64/bin/node"
|
|
else
|
|
pathNodeExecutable="node-$versionNode-linux-x64/bin/node"
|
|
fi
|
|
|
|
emsdkPath="/opt/emsdk/"
|
|
emscriptenPath="${emsdkPath}upstream/emscripten/"
|
|
|
|
SetEnvVar "PATH" "\"\$PATH:${emscriptenPath}\""
|
|
SetEnvVar "EMSCRIPTEN" "${emscriptenPath}"
|
|
SetEnvVar "EMSDK" "${emsdkPath}"
|
|
SetEnvVar "EMSDK_NODE" "${emsdkPath}${pathNodeExecutable}"
|
|
|
|
echo "Emsdk = $version" >> ~/versions.txt
|