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

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.*/