feat(cmake) Allow building LVGL without kconfig (#2165)
This commit is contained in:
committed by
Gabor Kiss-Vamosi
parent
b3f1d49735
commit
d0fb10724b
@@ -3,7 +3,7 @@ if(ESP_PLATFORM)
|
|||||||
file(GLOB_RECURSE SOURCES src/*.c)
|
file(GLOB_RECURSE SOURCES src/*.c)
|
||||||
|
|
||||||
idf_component_register(SRCS ${SOURCES}
|
idf_component_register(SRCS ${SOURCES}
|
||||||
INCLUDE_DIRS . src
|
INCLUDE_DIRS . src ../
|
||||||
REQUIRES main)
|
REQUIRES main)
|
||||||
|
|
||||||
target_compile_definitions(${COMPONENT_LIB} PUBLIC "-DLV_CONF_INCLUDE_SIMPLE")
|
target_compile_definitions(${COMPONENT_LIB} PUBLIC "-DLV_CONF_INCLUDE_SIMPLE")
|
||||||
|
|||||||
@@ -27,11 +27,12 @@ fout.write(
|
|||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
/*Handle special Kconfig options*/
|
/* Handle special Kconfig options */
|
||||||
#include "lv_conf_kconfig.h"
|
#ifndef LV_KCONFIG_IGNORE
|
||||||
|
# include "lv_conf_kconfig.h"
|
||||||
#ifdef CONFIG_LV_CONF_SKIP
|
# ifdef CONFIG_LV_CONF_SKIP
|
||||||
#define LV_CONF_SKIP
|
# define LV_CONF_SKIP
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*If "lv_conf.h" is available from here try to use it later.*/
|
/*If "lv_conf.h" is available from here try to use it later.*/
|
||||||
|
|||||||
@@ -10,11 +10,12 @@
|
|||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
/*Handle special Kconfig options*/
|
/* Handle special Kconfig options */
|
||||||
#include "lv_conf_kconfig.h"
|
#ifndef LV_KCONFIG_IGNORE
|
||||||
|
# include "lv_conf_kconfig.h"
|
||||||
#ifdef CONFIG_LV_CONF_SKIP
|
# ifdef CONFIG_LV_CONF_SKIP
|
||||||
#define LV_CONF_SKIP
|
# define LV_CONF_SKIP
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*If "lv_conf.h" is available from here try to use it later.*/
|
/*If "lv_conf.h" is available from here try to use it later.*/
|
||||||
|
|||||||
Reference in New Issue
Block a user