Skip to content

Added: ESP-IDF Component support #25

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)

Expand All @@ -23,3 +23,4 @@ else()

target_include_directories(eez-framework SYSTEM PUBLIC ./src ./src/eez/libs/agg)
endif()

9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 4 additions & 0 deletions idf_component.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
description: EEZ Framework for ESP-IDF
license: MIT
url: https://github.com/eez-open/eez-framework
version: 0.0.1