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

Commit a24e4ef

Browse files
committed
Read version from SDK
1 parent d0f7f1d commit a24e4ef

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

build.ps1

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ $bitness = $config.bitness
3737
$mingw_arch = $config.mingw_arch
3838
$downloads = $config.downloads
3939

40-
$product = "Raspberry Pi Pico SDK $version"
41-
4240
mkdirp "build"
4341
mkdirp "bin"
4442

@@ -85,6 +83,9 @@ mkdirp "bin"
8583
}
8684
}
8785

86+
$sdkVersion = (.\build\cmake\bin\cmake.exe -P .\packages\pico-setup-windows\pico-sdk-version.cmake -N | Select-String -Pattern '([0-9]+\.)+[0-9]+').Matches.Value
87+
$product = "Raspberry Pi Pico SDK $sdkVersion"
88+
8889
$repositories | ForEach-Object {
8990
$repodir = Join-Path 'build' ([IO.Path]::GetFileNameWithoutExtension($_.href))
9091

@@ -328,6 +329,7 @@ Section "Pico environment" SecPico
328329
File /r "build\pico-examples\*.*"
329330
SetOutPath "`${PICO_REPOS_DIR}\pico-examples\.vscode"
330331
File /oname=launch.json "packages\pico-examples\vscode-launch.json"
332+
File "build\pico-examples\ide\vscode\settings.json"
331333
332334
SetOutPath "`$INSTDIR\pico-sdk-tools"
333335
File "build\pico-sdk-tools\mingw$bitness\*.*"
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
include(build/pico-sdk/pico_sdk_version.cmake)
2+
3+
message(STATUS "PICO_SDK_VERSION_STRING=${PICO_SDK_VERSION_STRING}")

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.4.0
1+
0.3.6

0 commit comments

Comments
 (0)