From b791dc8b66810f13de6086db45427560e7f87705 Mon Sep 17 00:00:00 2001 From: w1n5t0n Date: Mon, 17 Aug 2026 15:54:47 +0300 Subject: [PATCH] fix(arduino): guard desktop-only synth TUs; library.json build filter --- library.json | 16 ++++++++++++++++ src/signal_engine/synth_graph.cpp | 9 +++++++++ src/signal_engine/synth_registry.cpp | 9 +++++++++ 3 files changed, 34 insertions(+) create mode 100644 library.json diff --git a/library.json b/library.json new file mode 100644 index 0000000..b20bfa1 --- /dev/null +++ b/library.json @@ -0,0 +1,16 @@ +{ + "name": "ModuLisp", + "version": "0.2.0", + "description": "ModuLisp live-coding signal engine extracted from uSEQ (external input/sink/command registries)", + "keywords": "signal-engine, live-coding, dsp", + "license": "MPL-2.0", + "platforms": ["rp2040"], + "frameworks": ["arduino"], + "build": { + "srcFilter": [ + "+<*>", + "-", + "-" + ] + } +} diff --git a/src/signal_engine/synth_graph.cpp b/src/signal_engine/synth_graph.cpp index 5116df5..46f05cf 100644 --- a/src/signal_engine/synth_graph.cpp +++ b/src/signal_engine/synth_graph.cpp @@ -1,3 +1,9 @@ + + +// Desktop/WASM-only domain (build_profile.h: USEQ_HAS_SYNTH_ENGINE is +// 0 under ARDUINO); the firmware profile must not compile these TUs. +#if !defined(ARDUINO) + #include "synth_graph.h" #include "cold_eval.h" #include @@ -206,3 +212,6 @@ const char* synth_artifacts_json(const SignalEngine& engine) { } } // namespace sig + + +#endif // !defined(ARDUINO) diff --git a/src/signal_engine/synth_registry.cpp b/src/signal_engine/synth_registry.cpp index 66a5728..50f9475 100644 --- a/src/signal_engine/synth_registry.cpp +++ b/src/signal_engine/synth_registry.cpp @@ -1,3 +1,9 @@ + + +// Desktop/WASM-only domain (build_profile.h: USEQ_HAS_SYNTH_ENGINE is +// 0 under ARDUINO); the firmware profile must not compile these TUs. +#if !defined(ARDUINO) + #include "synth_registry.h" #include #include @@ -158,3 +164,6 @@ const char* nodedef_suggest_param(const NodeDefDescriptor* def, } } // namespace sig + + +#endif // !defined(ARDUINO)