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

Also add ../ to the search path, such that lv_conf.h could be found on parent directory

Related discussion: https://github.com/lvgl/lvgl/pull/1875#issuecomment-803179499
This commit is contained in:
Amir Gonnen
2021-03-25 00:54:03 +02:00
committed by GitHub
parent e1ac174e16
commit 1748798aca
3 changed files with 11 additions and 9 deletions
+1 -1
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")
+5 -4
View File
@@ -28,10 +28,11 @@ fout.write(
#include <stdint.h>
/* Handle special Kconfig options */
#include "lv_conf_kconfig.h"
#ifdef CONFIG_LV_CONF_SKIP
#define LV_CONF_SKIP
#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.*/
+5 -4
View File
@@ -11,10 +11,11 @@
#include <stdint.h>
/* Handle special Kconfig options */
#include "lv_conf_kconfig.h"
#ifdef CONFIG_LV_CONF_SKIP
#define LV_CONF_SKIP
#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.*/