You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by va...@apache.org on 2024/05/01 18:42:55 UTC
(couchdb-glazier) 01/01: Add MSYS2 to be able to build QuickJS
This is an automated email from the ASF dual-hosted git repository.
vatamane pushed a commit to branch add-msys
in repository https://gitbox.apache.org/repos/asf/couchdb-glazier.git
commit a45ac0c4c7fbd733a4e93c3c38d3e3512ba190a4
Author: Nick Vatamaniuc <va...@gmail.com>
AuthorDate: Wed May 1 14:42:46 2024 -0400
Add MSYS2 to be able to build QuickJS
---
bin/install_dependencies.ps1 | 7 +++++++
bin/shell.ps1 | 1 +
2 files changed, 8 insertions(+)
diff --git a/bin/install_dependencies.ps1 b/bin/install_dependencies.ps1
index 9a05570..559adf2 100644
--- a/bin/install_dependencies.ps1
+++ b/bin/install_dependencies.ps1
@@ -24,6 +24,8 @@ choco install wixtoolset --version=3.11.2
choco install nodejs --version=18.18.2
choco install python --version=3.11.6
choco install archiver --version=3.1.0
+choco install msys2 --version=20240113.0.0
+
Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force
Install-Module VSSetup -Scope CurrentUser -Force
@@ -34,6 +36,11 @@ if (Test-Path($ChocolateyProfile)) {
}
refreshenv
+Write-Output " ***** Seting up MSYS ******* "
+msys2_shell.cmd -defterm -no-start -ucrt64 -lc 'pacman -Syu'
+msys2_shell.cmd -defterm -no-start -ucrt64 -lc 'pacman -S --noconfirm --needed base-devel make mingw-w64-ucrt-x86_64-toolchain mingw-w64-ucrt-x86_64-dlfcn'
+Write-Output " ******** Finished setting up MSYS ********"
+
python -m pip install --upgrade pip
pip install --upgrade sphinx sphinxcontrib-httpdomain sphinx_rtd_theme pygments nose2 hypothesis
diff --git a/bin/shell.ps1 b/bin/shell.ps1
index a55b434..76cd6f8 100644
--- a/bin/shell.ps1
+++ b/bin/shell.ps1
@@ -33,6 +33,7 @@ $env:PATH += ";${elxInstallPath}\bin"
$env:PATH += ";${vcpkgBase}\bin"
$env:PATH += ";C:\Program Files (x86)\WiX Toolset v3.11\bin"
$env:PATH += ";C:\tools\${java11Build}\bin"
+$env:PATH += ";C:\tools\msys64\ucrt64\bin"
$env:LIB = "${vcpkgBase}\lib;" + $env:LIB
$env:INCLUDE = "${vcpkgBase}\include;" + $env:INCLUDE