diff --git a/CMakeLists.txt b/CMakeLists.txt index b4637c7d..5e1f270c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,11 +1,11 @@ +# ESP_PLATFORM: Set to 1 when the CMake file is processed within the ESP-IDF build system. if(ESP_PLATFORM) - # for arduino as component ESP-IDF - # get_filename_component(dir ${CMAKE_CURRENT_LIST_FILE} PATH) - # FILE(GLOB_RECURSE app_sources ${dir}/src/eez/*.c*) - # idf_component_register(SRCS ${app_sources} - # INCLUDE_DIRS "src" "src/eez/libs/agg" - # PRIV_REQUIRES arduino lvgl - # ) + + file(GLOB_RECURSE app_sources src/eez/*.c*) + idf_component_register(SRCS ${app_sources} + INCLUDE_DIRS "src" "src/eez/libs/agg" "src/eez/platform/simulator/" + PRIV_REQUIRES lvgl + ) else() cmake_minimum_required(VERSION 3.12) @@ -23,3 +23,4 @@ else() target_include_directories(eez-framework SYSTEM PUBLIC ./src ./src/eez/libs/agg) endif() + diff --git a/README.md b/README.md index 119427ca..06237143 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,15 @@ This library, called eez-framework, is used in combination with the [EEZ Studio](https://github.com/eez-open/studio). When EEZ Studio generates C/C++ for your eez-project, and your eez-project is using EEZ Flow or EEZ-GUI, then you will need this library. It is written in C++. +# For ESP-IDF Users +Add the following lines in your idf_components.yml + +``` + eez-framework: + version: * + git: https://github.com/eez-open/eez-framework.git +``` + # For LVGL users Only if you want to use EEZ Flow with your LVGL based project you will need this libary. diff --git a/idf_component.yml b/idf_component.yml new file mode 100644 index 00000000..4a601120 --- /dev/null +++ b/idf_component.yml @@ -0,0 +1,4 @@ +description: EEZ Framework for ESP-IDF +license: MIT +url: https://github.com/eez-open/eez-framework +version: 0.0.1