From ea15573988b2a8bd9e49f8a76221d9c50ecea286 Mon Sep 17 00:00:00 2001 From: "Man, Jianting (Meco)" <920369182@qq.com> Date: Mon, 28 Nov 2022 14:58:24 -0500 Subject: [PATCH] fix(rt-thread): fix compiler cannot find the lvgl/lvgl.h file with SquareLine (#3814) --- env_support/rt-thread/squareline/SConscript | 7 ++----- .../rt-thread/squareline/{ui => }/lv_ui_entry.c | 2 +- env_support/rt-thread/squareline/ui/lvgl/lvgl.h | 15 +++++++++++++++ 3 files changed, 18 insertions(+), 6 deletions(-) rename env_support/rt-thread/squareline/{ui => }/lv_ui_entry.c (88%) create mode 100644 env_support/rt-thread/squareline/ui/lvgl/lvgl.h diff --git a/env_support/rt-thread/squareline/SConscript b/env_support/rt-thread/squareline/SConscript index 89a509973..51edf228e 100644 --- a/env_support/rt-thread/squareline/SConscript +++ b/env_support/rt-thread/squareline/SConscript @@ -1,13 +1,10 @@ from building import * cwd = GetCurrentDir() -group = [] -src = [] -CPPPATH =[] +src = ['lv_ui_entry.c'] src += Glob(cwd + '/ui/*.c') -CPPPATH += [cwd+'/ui'] -group = group + DefineGroup('LVGL-SquareLine', src, depend = ['PKG_USING_LVGL_SQUARELINE'], CPPPATH = CPPPATH) +group = DefineGroup('LVGL-SquareLine', src, depend = ['PKG_USING_LVGL_SQUARELINE']) Return('group') diff --git a/env_support/rt-thread/squareline/ui/lv_ui_entry.c b/env_support/rt-thread/squareline/lv_ui_entry.c similarity index 88% rename from env_support/rt-thread/squareline/ui/lv_ui_entry.c rename to env_support/rt-thread/squareline/lv_ui_entry.c index 838b53c9f..f08e1f58d 100644 --- a/env_support/rt-thread/squareline/ui/lv_ui_entry.c +++ b/env_support/rt-thread/squareline/lv_ui_entry.c @@ -1,7 +1,7 @@ /* * Copyright (c) 2006-2022, RT-Thread Development Team * - * SPDX-License-Identifier: Apache-2.0 + * SPDX-License-Identifier: MIT * * Change Logs: * Date Author Notes diff --git a/env_support/rt-thread/squareline/ui/lvgl/lvgl.h b/env_support/rt-thread/squareline/ui/lvgl/lvgl.h new file mode 100644 index 000000000..f2d518f4d --- /dev/null +++ b/env_support/rt-thread/squareline/ui/lvgl/lvgl.h @@ -0,0 +1,15 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: MIT + * + * Change Logs: + * Date Author Notes + * 2022-11-20 Meco Man The first version + */ + +#ifdef __RTTHREAD__ + +#include "../../../../../lvgl.h" /* back to the root folder's lvgl.h */ + +#endif /* __RTTHREAD__ */