mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-10 05:27:01 +03:00
set DEPTH in root CMake for consistency
This commit is contained in:
@@ -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 )
|
||||||
|
|||||||
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user