File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
Firmware/graphics/lvgl_lib/lvgl_library Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ jobs:
124124 cmakeListsOrSettingsJson : CMakeListsTxtAdvanced
125125 cmakeListsTxtPath : ${{ github.workspace }}/Firmware/CMakeLists.txt
126126 cmakeBuildType : Debug
127- cmakeAppendedArgs : ' -DTARGET_PLATFORM:STRING="ARM_CORTEX" -DEXECUTE_MCU_FLASHING=OFF -DCMAKE_BUILD_TYPE:STRING=Debug -DPACKAGE_TESTS=OFF -DNRF5_SDK_PATH=${{ github.workspace }}/Nrf52SDKv16_0 -DARM_NONE_EABI_TOOLCHAIN_PATH:PATH=${{ github.workspace }}/gcc_toolchain_10_2_q4/gcc-arm-none-eabi-10-2020-q4-major'
127+ cmakeAppendedArgs : ' -DTARGET_PLATFORM:STRING="ARM_CORTEX" -DEXECUTE_MCU_FLASHING=OFF -DCMAKE_BUILD_TYPE:STRING=Debug -DREDUCE_LVGL_BINARY_SIZE=ON - DPACKAGE_TESTS=OFF -DNRF5_SDK_PATH=${{ github.workspace }}/Nrf52SDKv16_0 -DARM_NONE_EABI_TOOLCHAIN_PATH:PATH=${{ github.workspace }}/gcc_toolchain_10_2_q4/gcc-arm-none-eabi-10-2020-q4-major'
128128 buildWithCMake : true
129129
130130 # # Runs a set of commands using the runners shell
Original file line number Diff line number Diff line change 11cmake_minimum_required (VERSION 3.14)
2+ option (REDUCE_LVGL_BINARY_SIZE OFF )
23
34set (TARGET_NAME lvgl_lib)
45
@@ -355,3 +356,10 @@ target_compile_options(
355356 PUBLIC
356357 ${COMMON_FLAGS}
357358)
359+ if (REDUCE_LVGL_BINARY_SIZE)
360+ target_compile_options (
361+ ${TARGET_NAME}
362+ PUBLIC
363+ -Os
364+ )
365+ endif ()
You can’t perform that action at this time.
0 commit comments