Ver Fonte

set DEPTH in root CMake for consistency

Philippe G há 4 anos atrás
pai
commit
43aa62ac56
2 ficheiros alterados com 3 adições e 4 exclusões
  1. 3 0
      CMakeLists.txt
  2. 0 4
      components/squeezelite/CMakeLists.txt

+ 3 - 0
CMakeLists.txt

@@ -2,6 +2,9 @@ cmake_minimum_required(VERSION 3.5)
 set(EXTRA_COMPONENT_DIRS components/platform_console/app_recovery components/platform_console/app_squeezelite  )
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 add_definitions(-DMODEL_NAME=SqueezeESP32)
+if(NOT DEFINED DEPTH)
+	set(DEPTH "16")
+endif()	
 message(STATUS  "Building RECOVERY")
 project(recovery)
 set_property(TARGET recovery.elf PROPERTY RECOVERY_PREFIX app_recovery )

+ 0 - 4
components/squeezelite/CMakeLists.txt

@@ -31,10 +31,6 @@ set_source_files_properties(flac.c
 
 add_definitions(-DLINKALL -DLOOPBACK -DNO_FAAD -DEMBEDDED -DTREMOR_ONLY -DCUSTOM_VERSION=${BUILD_NUMBER})
 
-if(NOT DEFINED DEPTH)
-	set(DEPTH "16")
-endif()	
-
 if (${DEPTH} EQUAL "32")
 	add_definitions(-DBYTES_PER_FRAME=8)
 else()