WIP Cmake/make build
This commit is contained in:
3
components/lightsnapcast/CMakeLists.txt
Normal file
3
components/lightsnapcast/CMakeLists.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
idf_component_register(SRCS "snapcast.c"
|
||||
INCLUDE_DIRS "include"
|
||||
REQUIRES libbuffer json)
|
||||
@@ -1,11 +1,11 @@
|
||||
#include "snapcast.h"
|
||||
|
||||
#ifdef ESP_PLATFORM
|
||||
//#ifdef ESP_PLATFORM
|
||||
// The ESP-IDF changes the include directory for cJSON
|
||||
#include <cJSON.h>
|
||||
#else
|
||||
#include <cjson/cJSON.h>
|
||||
#endif
|
||||
//#else
|
||||
//#include "json/cJSON.h"
|
||||
//#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
Reference in New Issue
Block a user