2020-01-18 19:52:33 +00:00
|
|
|
cmake_minimum_required(VERSION 3.10)
|
2019-11-17 19:47:04 +00:00
|
|
|
|
|
|
|
project(pinetime-app C CXX ASM)
|
|
|
|
|
|
|
|
# define some variables just for this example to determine file locations
|
|
|
|
set(NRF_PROJECT_NAME pinetime-app)
|
|
|
|
set(NRF_BOARD pca10040)
|
|
|
|
#set(NRF_SOFTDEVICE s132)
|
|
|
|
|
|
|
|
nRF5x_toolchainSetup()
|
|
|
|
nRF5x_setup()
|
|
|
|
|
|
|
|
#nRF5x_addAppScheduler()
|
|
|
|
#nRF5x_addAppFIFO()
|
|
|
|
#nRF5x_addAppTimer()
|
|
|
|
#nRF5x_addAppUART()
|
|
|
|
nRF5x_addAppButton()
|
|
|
|
nRF5x_addBSP(FALSE FALSE FALSE)
|
|
|
|
nRF5x_addAppGpiote()
|
|
|
|
#nRF5x_addBLEGATT()
|
|
|
|
#
|
|
|
|
#nRF5x_addBLEService(ble_lbs)
|
|
|
|
|
|
|
|
add_definitions(-DCONFIG_GPIO_AS_PINRESET)
|
|
|
|
add_definitions(-DDEBUG)
|
|
|
|
|
|
|
|
|
|
|
|
include_directories(.)
|
2020-02-08 17:01:02 +00:00
|
|
|
include_directories(libs/)
|
|
|
|
|
|
|
|
set(LVGL_SRC
|
|
|
|
libs/lv_conf.h
|
|
|
|
libs/lvgl/lvgl.h
|
|
|
|
libs/lvgl/src/lv_core/lv_obj.c
|
|
|
|
libs/lvgl/src/lv_core/lv_obj.h
|
|
|
|
libs/lvgl/src/lv_core/lv_group.c
|
|
|
|
libs/lvgl/src/lv_core/lv_group.h
|
|
|
|
libs/lvgl/src/lv_core/lv_disp.c
|
|
|
|
libs/lvgl/src/lv_core/lv_disp.h
|
|
|
|
libs/lvgl/src/lv_core/lv_debug.h
|
|
|
|
libs/lvgl/src/lv_core/lv_debug.c
|
|
|
|
libs/lvgl/src/lv_core/lv_indev.c
|
|
|
|
libs/lvgl/src/lv_core/lv_indev.h
|
|
|
|
libs/lvgl/src/lv_core/lv_refr.c
|
|
|
|
libs/lvgl/src/lv_core/lv_refr.h
|
|
|
|
libs/lvgl/src/lv_core/lv_style.c
|
|
|
|
libs/lvgl/src/lv_core/lv_style.h
|
|
|
|
|
|
|
|
libs/lvgl/src/lv_misc/lv_anim.c
|
|
|
|
libs/lvgl/src/lv_misc/lv_anim.h
|
|
|
|
libs/lvgl/src/lv_misc/lv_fs.c
|
|
|
|
libs/lvgl/src/lv_misc/lv_fs.h
|
|
|
|
libs/lvgl/src/lv_misc/lv_task.c
|
|
|
|
libs/lvgl/src/lv_misc/lv_task.h
|
|
|
|
libs/lvgl/src/lv_misc/lv_area.c
|
|
|
|
libs/lvgl/src/lv_misc/lv_area.h
|
|
|
|
libs/lvgl/src/lv_misc/lv_bidi.c
|
|
|
|
libs/lvgl/src/lv_misc/lv_bidi.h
|
|
|
|
libs/lvgl/src/lv_misc/lv_circ.c
|
|
|
|
libs/lvgl/src/lv_misc/lv_circ.h
|
|
|
|
libs/lvgl/src/lv_misc/lv_color.c
|
|
|
|
libs/lvgl/src/lv_misc/lv_color.h
|
|
|
|
libs/lvgl/src/lv_misc/lv_fs.c
|
|
|
|
libs/lvgl/src/lv_misc/lv_fs.h
|
|
|
|
libs/lvgl/src/lv_misc/lv_gc.c
|
|
|
|
libs/lvgl/src/lv_misc/lv_gc.h
|
|
|
|
libs/lvgl/src/lv_misc/lv_ll.c
|
|
|
|
libs/lvgl/src/lv_misc/lv_ll.h
|
|
|
|
libs/lvgl/src/lv_misc/lv_log.c
|
|
|
|
libs/lvgl/src/lv_misc/lv_log.h
|
|
|
|
libs/lvgl/src/lv_misc/lv_math.c
|
|
|
|
libs/lvgl/src/lv_misc/lv_math.h
|
|
|
|
libs/lvgl/src/lv_misc/lv_mem.c
|
|
|
|
libs/lvgl/src/lv_misc/lv_mem.h
|
|
|
|
libs/lvgl/src/lv_misc/lv_printf.c
|
|
|
|
libs/lvgl/src/lv_misc/lv_printf.h
|
|
|
|
libs/lvgl/src/lv_misc/lv_task.c
|
|
|
|
libs/lvgl/src/lv_misc/lv_task.h
|
|
|
|
libs/lvgl/src/lv_misc/lv_templ.c
|
|
|
|
libs/lvgl/src/lv_misc/lv_templ.h
|
|
|
|
libs/lvgl/src/lv_misc/lv_txt.c
|
|
|
|
libs/lvgl/src/lv_misc/lv_txt.h
|
|
|
|
libs/lvgl/src/lv_misc/lv_types.h
|
|
|
|
libs/lvgl/src/lv_misc/lv_utils.c
|
|
|
|
libs/lvgl/src/lv_misc/lv_utils.h
|
|
|
|
|
|
|
|
libs/lvgl/src/lv_draw/lv_draw.c
|
|
|
|
libs/lvgl/src/lv_draw/lv_draw.h
|
|
|
|
libs/lvgl/src/lv_draw/lv_draw_arc.c
|
|
|
|
libs/lvgl/src/lv_draw/lv_draw_arc.h
|
|
|
|
libs/lvgl/src/lv_draw/lv_draw_basic.c
|
|
|
|
libs/lvgl/src/lv_draw/lv_draw_basic.h
|
|
|
|
libs/lvgl/src/lv_draw/lv_draw_img.c
|
|
|
|
libs/lvgl/src/lv_draw/lv_draw_img.h
|
|
|
|
libs/lvgl/src/lv_draw/lv_draw_label.c
|
|
|
|
libs/lvgl/src/lv_draw/lv_draw_label.h
|
|
|
|
libs/lvgl/src/lv_draw/lv_draw_line.c
|
|
|
|
libs/lvgl/src/lv_draw/lv_draw_line.h
|
|
|
|
libs/lvgl/src/lv_draw/lv_draw_rect.c
|
|
|
|
libs/lvgl/src/lv_draw/lv_draw_rect.h
|
|
|
|
libs/lvgl/src/lv_draw/lv_draw_triangle.c
|
|
|
|
libs/lvgl/src/lv_draw/lv_draw_triangle.h
|
|
|
|
libs/lvgl/src/lv_draw/lv_img_cache.c
|
|
|
|
libs/lvgl/src/lv_draw/lv_img_cache.h
|
|
|
|
libs/lvgl/src/lv_draw/lv_img_decoder.c
|
|
|
|
libs/lvgl/src/lv_draw/lv_img_decoder.h
|
|
|
|
|
|
|
|
libs/lvgl/src/lv_hal/lv_hal.h
|
|
|
|
libs/lvgl/src/lv_hal/lv_hal_disp.c
|
|
|
|
libs/lvgl/src/lv_hal/lv_hal_disp.h
|
|
|
|
libs/lvgl/src/lv_hal/lv_hal_indev.c
|
|
|
|
libs/lvgl/src/lv_hal/lv_hal_indev.h
|
|
|
|
libs/lvgl/src/lv_hal/lv_hal_tick.c
|
|
|
|
libs/lvgl/src/lv_hal/lv_hal_tick.h
|
|
|
|
|
|
|
|
libs/lvgl/src/lv_font/lv_font.c
|
|
|
|
libs/lvgl/src/lv_font/lv_font.h
|
|
|
|
libs/lvgl/src/lv_font/lv_font_fmt_txt.c
|
|
|
|
libs/lvgl/src/lv_font/lv_font_fmt_txt.h
|
|
|
|
libs/lvgl/src/lv_font/lv_font_roboto_16.c
|
|
|
|
libs/lvgl/src/lv_font/lv_symbol_def.h
|
|
|
|
|
|
|
|
libs/lvgl/src/lv_themes/lv_theme.c
|
|
|
|
libs/lvgl/src/lv_themes/lv_theme.h
|
|
|
|
|
|
|
|
libs/lvgl/src/lv_objx/lv_btn.h
|
|
|
|
libs/lvgl/src/lv_objx/lv_btn.c
|
|
|
|
|
|
|
|
libs/lvgl/src/lv_objx/lv_cont.h
|
|
|
|
libs/lvgl/src/lv_objx/lv_cont.c
|
|
|
|
|
|
|
|
libs/lvgl/src/lv_objx/lv_label.h
|
|
|
|
libs/lvgl/src/lv_objx/lv_label.c
|
|
|
|
|
2020-02-10 20:05:33 +00:00
|
|
|
libs/lvgl/src/lv_themes/lv_theme.c
|
|
|
|
libs/lvgl/src/lv_themes/lv_theme.h
|
|
|
|
libs/lvgl/src/lv_themes/lv_theme_night.h
|
|
|
|
libs/lvgl/src/lv_themes/lv_theme_night.c
|
2020-02-08 17:01:02 +00:00
|
|
|
|
|
|
|
)
|
2019-11-17 19:47:04 +00:00
|
|
|
|
|
|
|
list(APPEND SOURCE_FILES
|
|
|
|
Logging/NrfLogger.cpp
|
|
|
|
BlinkApp/BlinkApp.cpp
|
2019-12-05 20:19:47 +00:00
|
|
|
DisplayApp/DisplayApp.cpp
|
2020-01-18 17:17:52 +00:00
|
|
|
DisplayApp/Fonts/lcdfont70.c
|
|
|
|
DisplayApp/Fonts/lcdfont14.c
|
|
|
|
DisplayApp/Screens/Screen.cpp
|
|
|
|
DisplayApp/Screens/Clock.cpp
|
|
|
|
DisplayApp/Screens/Message.cpp
|
2019-11-17 19:47:04 +00:00
|
|
|
main.cpp
|
2019-12-07 16:11:50 +00:00
|
|
|
drivers/St7789.cpp
|
|
|
|
drivers/SpiMaster.cpp
|
|
|
|
Components/Gfx/Gfx.cpp
|
2019-12-23 18:57:45 +00:00
|
|
|
BLE/BleManager.c
|
2019-12-27 15:05:35 +00:00
|
|
|
Components/Battery/BatteryController.cpp
|
2019-12-27 16:05:49 +00:00
|
|
|
Components/Ble/BleController.cpp
|
2019-12-28 13:34:50 +00:00
|
|
|
Components/DateTime/DateTimeController.cpp
|
2020-01-03 15:32:31 +00:00
|
|
|
drivers/Cst816s.cpp
|
2020-01-05 10:09:07 +00:00
|
|
|
FreeRTOS/port.c
|
|
|
|
FreeRTOS/port_cmsis_systick.c
|
|
|
|
FreeRTOS/port_cmsis.c
|
2020-02-08 17:01:02 +00:00
|
|
|
${LVGL_SRC}
|
|
|
|
|
2020-02-10 20:05:33 +00:00
|
|
|
DisplayApp/LittleVgl.cpp
|
|
|
|
DisplayApp/Fonts/jetbrains_mono_extrabold_compressed.c
|
|
|
|
DisplayApp/Fonts/jetbrains_mono_bold_20.c
|
2019-11-17 19:47:04 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
set(INCLUDE_FILES
|
|
|
|
Logging/Logger.h
|
|
|
|
Logging/NrfLogger.h
|
|
|
|
BlinkApp/BlinkApp.h
|
2019-12-05 20:19:47 +00:00
|
|
|
DisplayApp/DisplayApp.h
|
2020-01-18 17:17:52 +00:00
|
|
|
DisplayApp/Fonts/lcdfont70.h
|
|
|
|
DisplayApp/Fonts/lcdfont14.h
|
|
|
|
DisplayApp/Screens/Screen.h
|
|
|
|
DisplayApp/Screens/Clock.h
|
|
|
|
DisplayApp/Screens/Message.h
|
2019-12-07 16:11:50 +00:00
|
|
|
drivers/St7789.h
|
|
|
|
drivers/SpiMaster.h
|
|
|
|
Components/Gfx/Gfx.h
|
2019-12-23 18:57:45 +00:00
|
|
|
BLE/BleManager.h
|
2019-12-27 15:05:35 +00:00
|
|
|
Components/Battery/BatteryController.h
|
2019-12-27 16:05:49 +00:00
|
|
|
Components/Ble/BleController.h
|
2019-12-28 13:34:50 +00:00
|
|
|
Components/DateTime/DateTimeController.h
|
2020-01-03 15:32:31 +00:00
|
|
|
drivers/Cst816s.h
|
2020-01-05 10:09:07 +00:00
|
|
|
FreeRTOS/portmacro.h
|
|
|
|
FreeRTOS/portmacro_cmsis.h
|
2020-01-11 16:14:12 +00:00
|
|
|
libs/date/includes/date/tz.h
|
|
|
|
libs/date/includes/date/chrono_io.h
|
|
|
|
libs/date/includes/date/date.h
|
|
|
|
libs/date/includes/date/islamic.h
|
|
|
|
libs/date/includes/date/iso_week.h
|
|
|
|
libs/date/includes/date/julian.h
|
|
|
|
libs/date/includes/date/ptz.h
|
|
|
|
libs/date/includes/date/tz_private.h
|
2020-02-08 17:01:02 +00:00
|
|
|
|
2020-02-10 20:05:33 +00:00
|
|
|
DisplayApp/LittleVgl.h
|
2020-01-05 10:09:07 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
FreeRTOS/
|
2020-01-11 16:14:12 +00:00
|
|
|
libs/date/includes
|
2019-11-17 19:47:04 +00:00
|
|
|
)
|
|
|
|
|
2020-01-12 15:26:20 +00:00
|
|
|
link_directories(
|
|
|
|
../
|
|
|
|
)
|
|
|
|
|
2020-01-18 20:26:05 +00:00
|
|
|
nRF5x_addExecutable(pinetime-app "${SOURCE_FILES}")
|