feat(cmake) Allow building LVGL without kconfig (#2165)

This commit is contained in:
Amir Gonnen
2021-03-25 00:54:03 +02:00
committed by Gabor Kiss-Vamosi
parent b3f1d49735
commit d0fb10724b
3 changed files with 13 additions and 11 deletions

View File

@@ -3,7 +3,7 @@ if(ESP_PLATFORM)
file(GLOB_RECURSE SOURCES src/*.c)
idf_component_register(SRCS ${SOURCES}
INCLUDE_DIRS . src
INCLUDE_DIRS . src ../
REQUIRES main)
target_compile_definitions(${COMPONENT_LIB} PUBLIC "-DLV_CONF_INCLUDE_SIMPLE")

View File

@@ -28,11 +28,12 @@ fout.write(
#include <stdint.h>
/* Handle special Kconfig options */
#ifndef LV_KCONFIG_IGNORE
# include "lv_conf_kconfig.h"
# ifdef CONFIG_LV_CONF_SKIP
# define LV_CONF_SKIP
# endif
#endif
/*If "lv_conf.h" is available from here try to use it later.*/
#if defined __has_include

View File

@@ -11,11 +11,12 @@
#include <stdint.h>
/* Handle special Kconfig options */
#ifndef LV_KCONFIG_IGNORE
# include "lv_conf_kconfig.h"
# ifdef CONFIG_LV_CONF_SKIP
# define LV_CONF_SKIP
# endif
#endif
/*If "lv_conf.h" is available from here try to use it later.*/
#if defined __has_include