mirror of
https://github.com/wled/WLED.git
synced 2025-07-09 20:06:33 +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",
|
||||
"build": {
|
||||
"srcDir": ".",
|
||||
"includeDir": "../../wled00",
|
||||
"libLDFMode": "chain+",
|
||||
"libArchive": false
|
||||
},
|
||||
"dependencies": [
|
||||
{
|
||||
"owner": "kosme",
|
||||
"name": "arduinoFFT",
|
||||
"version": "2.0.1",
|
||||
"platforms": "espressif32"
|
||||
}
|
||||
]
|
||||
{
|
||||
"name": "audioreactive",
|
||||
"build": {
|
||||
"srcDir": ".",
|
||||
"includeDir": "../../wled00",
|
||||
"extraScript": "override_sqrt.py"
|
||||
},
|
||||
"dependencies": [
|
||||
{
|
||||
"owner": "kosme",
|
||||
"name": "arduinoFFT",
|
||||
"version": "2.0.1",
|
||||
"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