Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Commit 7e13fbf

Browse files
committed
Add standalone build, remove VS dependency
1 parent 4d7eea7 commit 7e13fbf

15 files changed

+388
-101
lines changed

.gitignore

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# Downloaded installers
2-
installers/
1+
# Downloaded files
2+
downloads/
33

44
# Generated NSIS scripts
55
*.nsi
66

77
# Built installers
88
bin/
99

10-
# Build tools
10+
# Builds/staging
1111
build/

build-picotool.sh

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
#!/bin/bash
2+
3+
set -euo pipefail
4+
5+
BITNESS=$1
6+
ARCH=$2
7+
8+
export PICO_SDK_PATH="$PWD/pico-sdk"
9+
export LIBUSB_ROOT="/mingw$BITNESS"
10+
export LDFLAGS="-static -static-libgcc -static-libstdc++"
11+
12+
cd pico-sdk/tools/elf2uf2
13+
mkdir -p build
14+
cd build
15+
cmake -G Ninja .. -DCMAKE_BUILD_TYPE=Release -Wno-dev
16+
cmake --build .
17+
18+
cd ../../pioasm
19+
mkdir -p build
20+
cd build
21+
cmake -G Ninja .. -DCMAKE_BUILD_TYPE=Release -Wno-dev
22+
cmake --build .
23+
24+
cd ../../../..
25+
INSTALLDIR="pico-sdk-tools/mingw$BITNESS"
26+
mkdir -p $INSTALLDIR
27+
cp pico-sdk/tools/elf2uf2/build/elf2uf2.exe $INSTALLDIR
28+
cp pico-sdk/tools/pioasm/build/pioasm.exe $INSTALLDIR
29+
cp ../packages/pico-sdk-tools/pico-sdk-tools-config.cmake $INSTALLDIR
30+
31+
cd picotool
32+
mkdir -p build
33+
cd build
34+
cmake -G Ninja .. -DCMAKE_BUILD_TYPE=Release
35+
cmake --build .
36+
37+
cd ../..
38+
INSTALLDIR="picotool-install/mingw$BITNESS"
39+
mkdir -p $INSTALLDIR
40+
cp picotool/build/picotool.exe $INSTALLDIR
41+
cp "/mingw$BITNESS/bin/libusb-1.0.dll" $INSTALLDIR

0 commit comments

Comments
 (0)