From 58ac71ef940505f4134c3b29e3c8aeeb0e07b617 Mon Sep 17 00:00:00 2001 From: Yuki MIZUNO Date: Tue, 30 Jan 2024 23:19:16 +0900 Subject: [PATCH] Support esp-idf component manager --- CMakeLists.txt | 7 +++++++ component.mk | 7 +++++++ idf_component.yml | 10 ++++++++++ 3 files changed, 24 insertions(+) create mode 100644 CMakeLists.txt create mode 100644 component.mk create mode 100644 idf_component.yml diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..4c8831d --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,7 @@ +set(COMPONENT_ADD_INCLUDEDIRS src) +file(GLOB SRCS src/*.cpp) +set(COMPONENT_SRCS ${SRCS}) + +set(COMPONENT_REQUIRES M5Unified lvgl) + +register_component() diff --git a/component.mk b/component.mk new file mode 100644 index 0000000..3bd5ac1 --- /dev/null +++ b/component.mk @@ -0,0 +1,7 @@ +# +# Main Makefile. This is basically the same as a component makefile. +# +# (Uses default behaviour of compiling all source files in directory, adding 'include' to include path.) + +COMPONENT_SRCDIRS := src +COMPONENT_ADD_INCLUDEDIRS := src diff --git a/idf_component.yml b/idf_component.yml new file mode 100644 index 0000000..a4e41dc --- /dev/null +++ b/idf_component.yml @@ -0,0 +1,10 @@ +dependencies: + M5Unified: + git: https://github.com/m5stack/M5Unified + version: 0.1.12 + M5GFX: + git: https://github.com/m5stack/M5GFX + version: 0.1.12 + lvgl: + git: https://github.com/lvgl/lvgl + version: v9.0.0