Procházet zdrojové kódy

untangling references. linking almost completed!

Sebastien před 5 roky
rodič
revize
b2ea4a2cdd

+ 0 - 1
components/codecs/CMakeLists.txt

@@ -1,6 +1,5 @@
 idf_component_register(SRC_DIRS . 
 					   INCLUDE_DIRS .  ./inc  inc/alac inc/faad2 inc/FLAC  inc/helix-aac inc/mad inc/ogg inc/opus inc/opusfile inc/resample16 inc/soxr inc/vorbis
-	                       REQUIRES esp_common platform_config freertos nvs_flash esp32 spi_flash newlib log pthread
 )
 
 add_prebuilt_library(libmad 		lib/libmad.a)

+ 3 - 2
components/display/CMakeLists.txt

@@ -1,7 +1,8 @@
 
 idf_component_register(SRC_DIRS . core core/ifaces  fonts
-						REQUIRES services
-						INCLUDE_DIRS . fonts core                   
+						INCLUDE_DIRS . fonts core
+						REQUIRES platform_config tools esp_common
+						PRIV_REQUIRES services freertos    driver           
 )
 
 set_source_files_properties(display.c

+ 1 - 1
components/platform_bluetooth/CMakeLists.txt

@@ -1,6 +1,6 @@
 idf_component_register(	SRC_DIRS .
 						INCLUDE_DIRS .
-						REQUIRES bt display  esp_common freertos  nvs_flash esp32 spi_flash newlib   pthread platform_config
+						PRIV_REQUIRES services bt display console tools platform_config
 
 )
 

+ 2 - 1
components/platform_config/CMakeLists.txt

@@ -1,6 +1,7 @@
 idf_component_register(	SRC_DIRS . 
 						INCLUDE_DIRS . 
-						REQUIRES newlib nvs_flash json platform_console services vfs
+						PRIV_REQUIRES  json newlib  console esp_common freertos 
+						REQUIRES nvs_flash
 )
 
 

+ 3 - 2
components/platform_console/CMakeLists.txt

@@ -1,4 +1,5 @@
 idf_component_register( SRC_DIRS . 
 						INCLUDE_DIRS .   
-						REQUIRES console nvs_flash spi_flash app_update platform_config vfs pthread wifi-manager 
-						PRIV_REQUIRES display squeezelite )
+						REQUIRES nvs_flash
+						PRIV_REQUIRES console  tools services   spi_flash app_update platform_config vfs pthread wifi-manager platform_config squeezelite )
+						

+ 1 - 1
components/platform_console/cmd_squeezelite.c

@@ -14,7 +14,7 @@
 #include "freertos/event_groups.h"
 #include "pthread.h"
 #include "platform_esp32.h"
-#include "config.h"
+#include "platform_config.h"
 
 static const char * TAG = "squeezelite_cmd";
 #define SQUEEZELITE_THREAD_STACK_SIZE (6*1024)

+ 5 - 1
components/raop/CMakeLists.txt

@@ -1,6 +1,10 @@
 
 idf_component_register(SRC_DIRS .    
 						INCLUDE_DIRS .   
-						REQUIRES newlib platform_config services codecs tools display
+						PRIV_REQUIRES newlib freertos pthread platform_config mdns services codecs tools display
 						  
 )
+set_source_files_properties(raop.c
+    PROPERTIES COMPILE_FLAGS
+    -Wno-misleading-indentation
+)

+ 3 - 2
components/squeezelite-ota/CMakeLists.txt

@@ -1,6 +1,7 @@
 idf_component_register(SRC_DIRS .
-					  INCLUDE_DIRS . 
-					  REQUIRES console spi_flash console freertos platform_console esp_https_ota
+					  INCLUDE_DIRS .
+					  REQUIRES app_update esp_https_ota 
+					  PRIV_REQUIRES  console platform_config spi_flash vfs console freertos platform_console 
 					  )
 
 

+ 3 - 3
components/squeezelite/CMakeLists.txt

@@ -5,19 +5,19 @@ idf_component_register( SRC_DIRS . external a1s tas57xx
 						PRIV_REQUIRES 	newlib 
 									esp_common 
 									esp-dsp
-						  			display 
-						 			platform_config 
+						  			platform_config 
 						 			platform_bluetooth 
 						 			codecs 
 						 			services 
 						 			raop   
+						 			display
 )
 
 
 
 set_source_files_properties(mad.c
     PROPERTIES COMPILE_FLAGS
-    -Wno-maybe-uninitialized
+    -Wno-maybe-uninitialized 
 )
 set_source_files_properties(pcm.c
     PROPERTIES COMPILE_FLAGS

+ 2 - 1
components/wifi-manager/CMakeLists.txt

@@ -1,6 +1,7 @@
 idf_component_register( SRC_DIRS .
 						INCLUDE_DIRS .
-						REQUIRES esp_common newlib freertos  spi_flash nvs_flash mdns pthread wpa_supplicant platform_console  squeezelite-ota 
+						REQUIRES squeezelite-ota json mdns 
+						PRIV_REQUIRES tools services platform_config esp_common json newlib freertos  spi_flash nvs_flash mdns pthread wpa_supplicant platform_console   
 						EMBED_FILES style.css code.js index.html bootstrap.min.css.gz jquery.min.js.gz popper.min.js.gz bootstrap.min.js.gz
 
 

+ 1 - 1
components/wifi-manager/dns_server.c

@@ -52,7 +52,7 @@ Contains the freeRTOS task for the DNS server that processes the requests.
 #include <lwip/dns.h>
 
 #include <byteswap.h>
-
+#include "squeezelite-ota.h"
 #include "wifi_manager.h"
 
 static const char TAG[] = "dns_server";

+ 1 - 0
components/wifi-manager/dns_server.h

@@ -36,6 +36,7 @@ Contains the freeRTOS task for the DNS server that processes the requests.
 #include <stdbool.h>
 #include "squeezelite-ota.h"
 
+
 #ifdef __cplusplus
 extern "C" {
 #endif

+ 1 - 1
main/CMakeLists.txt

@@ -1,5 +1,5 @@
 idf_component_register(SRC_DIRS .  
-						REQUIRES esp_common  pthread squeezelite-ota platform_console telnet
+						PRIV_REQUIRES esp_common  wifi-manager pthread squeezelite-ota platform_console telnet
                     	INCLUDE_DIRS .
                     	EMBED_FILES ../server_certs/github.pem
                     	)

+ 1 - 1
main/esp_app_main.c

@@ -35,7 +35,7 @@
 #include "nvs_flash.h"
 #include "esp_log.h"
 #include "freertos/event_groups.h"
-#include "mdns.h"
+
 #include "lwip/api.h"
 #include "lwip/err.h"
 #include "lwip/netdb.h"