@@ -12,6 +12,7 @@ idf_component_register( SRC_DIRS . external a1s tas57xx
services
raop
display
+ tools
EMBED_FILES vu.data
)
@@ -1,4 +1,10 @@
-idf_component_register(SRC_DIRS .
+idf_component_register(SRCS operator.cpp utf8.c
REQUIRES esp_common pthread
INCLUDE_DIRS .
+
+#doing our own implementation of new operator for some pre-compiled binaries
+target_link_libraries(${COMPONENT_LIB} INTERFACE "-u _ZdlPv")
+target_link_libraries(${COMPONENT_LIB} INTERFACE "-u _Znwj")
@@ -0,0 +1,3 @@
+#include <stdlib.h> // for malloc and free
+void* operator new(unsigned int size) { return malloc(size); }
+void operator delete(void* ptr) { if (ptr) free(ptr); }