File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11cmake_minimum_required (VERSION 3.10 )
2+
3+ set (CMAKE_BUILD_TYPE Release CACHE STRING "Choose Debug or Release" )
4+
25project (pinetime VERSION 1.9.0 LANGUAGES C CXX ASM )
36
47set (CMAKE_C_STANDARD 99)
@@ -70,8 +73,10 @@ string(STRIP "${PROJECT_GIT_COMMIT_HASH}" PROJECT_GIT_COMMIT_HASH)
7073
7174message ("PROJECT_GIT_COMMIT_HASH_SUCCESS? " ${PROJECT_GIT_COMMIT_HASH_SUCCESS} )
7275
76+ message ("" )
7377message ("BUILD CONFIGURATION" )
7478message ("-------------------" )
79+ message (" * Mode : " ${CMAKE_BUILD_TYPE} )
7580message (" * Version : " ${PROJECT_VERSION_MAJOR} .${PROJECT_VERSION_MINOR} .${PROJECT_VERSION_PATCH} )
7681message (" * Toolchain : " ${ARM_NONE_EABI_TOOLCHAIN_PATH} )
7782message (" * GitRef(S) : " ${PROJECT_GIT_COMMIT_HASH} )
Original file line number Diff line number Diff line change @@ -779,13 +779,27 @@ add_definitions(-DFREERTOS)
779779add_definitions (-D__STACK_SIZE=1024 )
780780add_definitions (-D__HEAP_SIZE=4096 )
781781
782- # NOTE : Add the following defines to enable debug mode of the NRF SDK:
783- #add_definitions(-DDEBUG)
784- #add_definitions(-DDEBUG_NRF_USER)
785-
786- if (NOT CMAKE_BUILD_TYPE )
787- set (CMAKE_BUILD_TYPE "Release" )
788- endif ()
782+ # Debug configuration
783+ if (${CMAKE_BUILD_TYPE} STREQUAL "Debug" )
784+ add_definitions (-DDEBUG )
785+ add_definitions (-DDEBUG_NRF_USER )
786+
787+ # NRF SDK Logging
788+ add_definitions (-DNRF_LOG_ENABLED=1 )
789+ # add_definitions(-DNRF_LOG_BACKEND_RTT_ENABLED=1)
790+ # add_definitions(-DNRF_LOG_BACKEND_SERIAL_USES_RTT=1)
791+
792+ # NRF SDK individual modules logging
793+ # add_definitions(-DCLOCK_CONFIG_LOG_ENABLED=1)
794+ # add_definitions(-DCLOCK_CONFIG_LOG_LEVEL=4)
795+ # add_definitions(-DRTC_CONFIG_LOG_ENABLED=1)
796+ # add_definitions(-DRTC_CONFIG_LOG_LEVEL=4)
797+
798+ # Nimble Logging
799+ add_definitions (-DMYNEWT_VAL_NEWT_FEATURE_LOGCFG=1 )
800+ # add_definitions(-DMYNEWT_VAL_LOG_LEVEL=0)
801+ # add_definitions(-DMYNEWT_VAL_BLE_HS_LOG_LVL=0)
802+ endif ()
789803
790804add_subdirectory (displayapp/fonts )
791805target_compile_options (infinitime_fonts PUBLIC
You can’t perform that action at this time.
0 commit comments