mirror of
https://github.com/bdring/Grbl_Esp32.git
synced 2025-08-21 05:41:50 +02:00
Removed add-on configurations
The new Spindle Class is a much better solution to the problem that add-on's were intended to address.
This commit is contained in:
@@ -7,26 +7,16 @@ $env:PYTHONIOENCODING="utf-8"
|
||||
|
||||
Function BuildMachine($names) {
|
||||
$basename = $names[0]
|
||||
$addname = $names[1]
|
||||
$env:PLATFORMIO_BUILD_FLAGS = "-DMACHINE_FILENAME=$basename"
|
||||
$displayname = $basename
|
||||
if ($addname -ne "") {
|
||||
$env:PLATFORMIO_BUILD_FLAGS += " -DMACHINE_FILENAME2=$addname"
|
||||
$displayname += " + $addname"
|
||||
}
|
||||
Write-Output "Building machine $displayname"
|
||||
platformio run 2>&1 | Select-String error,Took
|
||||
Write-Output " "
|
||||
}
|
||||
|
||||
# First build all the base configurations with names that do not start with add_
|
||||
foreach ($filepath in Get-ChildItem -file .\Grbl_Esp32\Machines\* -Exclude add_*) {
|
||||
# Build all the machines
|
||||
foreach ($filepath in Get-ChildItem -file .\Grbl_Esp32\Machines\*) {
|
||||
BuildMachine($filepath.name, "")
|
||||
}
|
||||
|
||||
# Then build all of the add-ons on top of a single base
|
||||
$base="3axis_v4.h"
|
||||
foreach ($filepath in Get-ChildItem -file .\Grbl_Esp32\Machines\add_*) {
|
||||
BuildMachine($base, $filepath.name)
|
||||
}
|
||||
Remove-Item env:PLATFORMIO_BUILD_FLAGS
|
||||
|
Reference in New Issue
Block a user