mirror of
https://github.com/bdring/Grbl_Esp32.git
synced 2025-01-17 14:18:16 +01:00
94b6feecce
* Changed STATUS_ defines to enum class Error * Added license blocks to new files * Suppress Compiling..Error.cpp build script output The filters that look for errors in the output were triggering on the filename Error.cpp
23 lines
773 B
PowerShell
23 lines
773 B
PowerShell
# This Windows PowerShell script uses PlatformIO to compile Grbl_ESP32
|
|
# for every machine configuration in the Machines/ directory.
|
|
# It is useful for automated testing.
|
|
|
|
# Setting PYTHONIOENCODING avoids an obscure crash related to code page mismatch
|
|
$env:PYTHONIOENCODING="utf-8"
|
|
|
|
Function BuildMachine($names) {
|
|
$basename = $names[0]
|
|
$env:PLATFORMIO_BUILD_FLAGS = "-DMACHINE_FILENAME=$basename"
|
|
$displayname = $basename
|
|
Write-Output "Building machine $displayname"
|
|
platformio run 2>&1 | Select-String Compiling -NotMatch | Select-String error,Took
|
|
Write-Output " "
|
|
}
|
|
|
|
# Build all the machines
|
|
foreach ($filepath in Get-ChildItem -file .\Grbl_Esp32\src\Machines\*) {
|
|
BuildMachine($filepath.name, "")
|
|
}
|
|
|
|
Remove-Item env:PLATFORMIO_BUILD_FLAGS
|