set DEPTH in root CMake for consistency

This commit is contained in:
Philippe G
2021-03-28 14:59:07 -07:00
parent 22c2044f17
commit 43aa62ac56
2 changed files with 3 additions and 4 deletions

View File

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

View File

@@ -31,10 +31,6 @@ set_source_files_properties(flac.c
add_definitions(-DLINKALL -DLOOPBACK -DNO_FAAD -DEMBEDDED -DTREMOR_ONLY -DCUSTOM_VERSION=${BUILD_NUMBER}) 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") if (${DEPTH} EQUAL "32")
add_definitions(-DBYTES_PER_FRAME=8) add_definitions(-DBYTES_PER_FRAME=8)
else() else()