audioreactive: Move flags to library

Use a PlatformIO script to move the last of AR_buildflags in to the
module itself.
This commit is contained in:
Will Miles 2025-01-12 13:12:12 +00:00
parent 71b0e8e937
commit 8527d231e1
2 changed files with 20 additions and 16 deletions

View File

@ -3,8 +3,7 @@
"build": {
"srcDir": ".",
"includeDir": "../../wled00",
"libLDFMode": "chain+",
"libArchive": false
"extraScript": "override_sqrt.py"
},
"dependencies": [
{

View File

@ -0,0 +1,5 @@
Import('env')
for lb in env.GetLibBuilders():
if lb.name == "arduinoFFT":
lb.env.Append(CPPDEFINES=[("sqrt_internal", "sqrtf")])