-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add standalone build, remove VS dependency
- Loading branch information
Showing
15 changed files
with
388 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
# Downloaded installers | ||
installers/ | ||
# Downloaded files | ||
downloads/ | ||
|
||
# Generated NSIS scripts | ||
*.nsi | ||
|
||
# Built installers | ||
bin/ | ||
|
||
# Build tools | ||
# Builds/staging | ||
build/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
|
||
BITNESS=$1 | ||
ARCH=$2 | ||
|
||
export PICO_SDK_PATH="$PWD/pico-sdk" | ||
export LIBUSB_ROOT="/mingw$BITNESS" | ||
export LDFLAGS="-static -static-libgcc -static-libstdc++" | ||
|
||
cd pico-sdk/tools/elf2uf2 | ||
mkdir -p build | ||
cd build | ||
cmake -G Ninja .. -DCMAKE_BUILD_TYPE=Release -Wno-dev | ||
cmake --build . | ||
|
||
cd ../../pioasm | ||
mkdir -p build | ||
cd build | ||
cmake -G Ninja .. -DCMAKE_BUILD_TYPE=Release -Wno-dev | ||
cmake --build . | ||
|
||
cd ../../../.. | ||
INSTALLDIR="pico-sdk-tools/mingw$BITNESS" | ||
mkdir -p $INSTALLDIR | ||
cp pico-sdk/tools/elf2uf2/build/elf2uf2.exe $INSTALLDIR | ||
cp pico-sdk/tools/pioasm/build/pioasm.exe $INSTALLDIR | ||
cp ../packages/pico-sdk-tools/pico-sdk-tools-config.cmake $INSTALLDIR | ||
|
||
cd picotool | ||
mkdir -p build | ||
cd build | ||
cmake -G Ninja .. -DCMAKE_BUILD_TYPE=Release | ||
cmake --build . | ||
|
||
cd ../.. | ||
INSTALLDIR="picotool-install/mingw$BITNESS" | ||
mkdir -p $INSTALLDIR | ||
cp picotool/build/picotool.exe $INSTALLDIR | ||
cp "/mingw$BITNESS/bin/libusb-1.0.dll" $INSTALLDIR |
Oops, something went wrong.