aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2023-02-25 16:02:35 +0100
committerlonkaars <loek@pipeframe.xyz>2023-02-25 16:02:35 +0100
commit0d7bd92672acb449761def9e234934c4a9a05129 (patch)
tree7db8cba21231fdf6b6f3b97d857c828183a6bfbb /scripts
parent0e6f7148ab0987574c45e78cb8fd6ff72fdf103a (diff)
update/fix build config for windows
Diffstat (limited to 'scripts')
-rw-r--r--scripts/install-msys2.ps12
-rwxr-xr-xscripts/install-packages-mingw.sh3
-rw-r--r--scripts/msys2-path.env3
3 files changed, 7 insertions, 1 deletions
diff --git a/scripts/install-msys2.ps1 b/scripts/install-msys2.ps1
index e7e0472..c7cb022 100644
--- a/scripts/install-msys2.ps1
+++ b/scripts/install-msys2.ps1
@@ -1,3 +1,3 @@
-Start-BitsTransfer -Source https://github.com/msys2/msys2-installer/releases/download/2022-09-04/msys2-x86_64-20220904.exe -Destination .\msys2-x86_64-latest.exe
+Start-BitsTransfer -Source https://github.com/msys2/msys2-installer/releases/download/2023-01-27/msys2-x86_64-20230127.exe -Destination .\msys2-x86_64-latest.exe
.\msys2-x86_64-latest.exe in --confirm-command --accept-messages --root C:/msys64
Remove-Item .\msys2-x86_64-latest.exe
diff --git a/scripts/install-packages-mingw.sh b/scripts/install-packages-mingw.sh
index 9acb392..931c66f 100755
--- a/scripts/install-packages-mingw.sh
+++ b/scripts/install-packages-mingw.sh
@@ -1,5 +1,6 @@
#!/bin/sh
pacman --noconfirm --needed -Sy \
+ base-devel wget curl \
make git \
mingw-w64-x86_64-arm-none-eabi-gcc \
mingw-w64-x86_64-arm-none-eabi-gdb \
@@ -7,6 +8,8 @@ pacman --noconfirm --needed -Sy \
mingw-w64-x86_64-arm-none-eabi-binutils \
mingw-w64-x86_64-stlink \
mingw-w64-x86_64-gdb-multiarch \
+ mingw-w64-x86_64-gcc \
+ mingw-w64-x86_64-SDL2 \
python python-pip
pip3 install compiledb
diff --git a/scripts/msys2-path.env b/scripts/msys2-path.env
new file mode 100644
index 0000000..d0b4ee1
--- /dev/null
+++ b/scripts/msys2-path.env
@@ -0,0 +1,3 @@
+# this file should be sourced from msys2
+export C_INCLUDE_PATH="/mingw64/include:$CPLUS_INCLUDE_PATH"
+export LIBRARY_PATH="/mingw64/lib:$CPLUS_INCLUDE_PATH"