Skip to content

Commit b6be067

Browse files
committed
Deps build: add Scons as native package
Installs with a Python venv.
1 parent ecfadf8 commit b6be067

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎external_deps/build.sh‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ OPUSFILE_VERSION=0.12
6161
NACLSDK_VERSION=44.0.2403.155
6262
NACLRUNTIME_REVISION=2aea5fcfce504862a825920fcaea1a8426afbd6f
6363
NCURSES_VERSION=6.5
64+
SCONS_VERSION=4.8.1
6465
WASISDK_VERSION=16.0
6566
WASMTIME_VERSION=2.0.2
6667

@@ -1083,6 +1084,14 @@ build_naclsdk() {
10831084
esac
10841085
}
10851086

1087+
# Tool for building Native Client
1088+
build_native-scons() {
1089+
local dir_name="${BUILD_DIR}/scons-venv"
1090+
python3 -m venv "${dir_name}"
1091+
"${dir_name}/bin/pip" install scons=="${SCONS_VERSION}"
1092+
ln -s --force "${dir_name}/bin/scons" "${NATIVE_PREFIX}/bin/scons"
1093+
}
1094+
10861095
# Only builds nacl_loader and nacl_helper_bootstrap for now, not IRT.
10871096
build_naclruntime() {
10881097
case "${PLATFORM}" in

0 commit comments

Comments
 (0)