mirror of
https://github.com/wled/WLED.git
synced 2025-07-15 14:56:32 +00:00
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:
parent
71b0e8e937
commit
8527d231e1
@ -1,17 +1,16 @@
|
|||||||
{
|
{
|
||||||
"name": "audioreactive",
|
"name": "audioreactive",
|
||||||
"build": {
|
"build": {
|
||||||
"srcDir": ".",
|
"srcDir": ".",
|
||||||
"includeDir": "../../wled00",
|
"includeDir": "../../wled00",
|
||||||
"libLDFMode": "chain+",
|
"extraScript": "override_sqrt.py"
|
||||||
"libArchive": false
|
},
|
||||||
},
|
"dependencies": [
|
||||||
"dependencies": [
|
{
|
||||||
{
|
"owner": "kosme",
|
||||||
"owner": "kosme",
|
"name": "arduinoFFT",
|
||||||
"name": "arduinoFFT",
|
"version": "2.0.1",
|
||||||
"version": "2.0.1",
|
"platforms": "espressif32"
|
||||||
"platforms": "espressif32"
|
}
|
||||||
}
|
]
|
||||||
]
|
|
||||||
}
|
}
|
5
usermods/audioreactive/override_sqrt.py
Normal file
5
usermods/audioreactive/override_sqrt.py
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
Import('env')
|
||||||
|
|
||||||
|
for lb in env.GetLibBuilders():
|
||||||
|
if lb.name == "arduinoFFT":
|
||||||
|
lb.env.Append(CPPDEFINES=[("sqrt_internal", "sqrtf")])
|
Loading…
x
Reference in New Issue
Block a user