1
0
mirror of https://github.com/bdring/Grbl_Esp32.git synced 2025-09-02 19:02:35 +02:00
Files
Grbl_Esp32/build-all.ps1
Stefan de Bruijn 7b6b4b2087 Fixed C++ includes (#518)
* Moved all files to the src folder

* Removed all cpp includes; fixed by including the header file where needed

* Fixed build scripts and machine.h

* Removed temp file. sigh.

Co-authored-by: Stefan de Bruijn <stefan@nubilosoft.com>
2020-08-08 08:18:05 -10:00

23 lines
737 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 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