1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-28 07:03:00 +08:00

[rt-thread][squareline] support squareline studio for every rt-thread bsp which has supported LVGL (#3566)

Squareline Studio can automatically put the generated C files into `ui` folder, so that rt-thread will automatically detect them; or, as a user,  you can move the generated C files into `ui` folder manually.
This commit is contained in:
Man, Jianting (Meco) 2022-08-15 08:47:58 -04:00 committed by GitHub
parent 95e6fcc566
commit 704363c5bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,4 @@
This folder is for LVGL SquareLine Studio
SquareLine Studio can automatically put the generated C files into `ui` folder, so that rt-thread will automatically detect them; or, as a user, you can move the generated C files into `ui` folder manually.

View File

@ -0,0 +1,13 @@
from building import *
cwd = GetCurrentDir()
group = []
src = []
CPPPATH =[]
src += Glob(cwd + '/ui/*.c')
CPPPATH += [cwd+'/ui']
group = group + DefineGroup('LVGL-SquareLine', src, depend = ['PKG_USING_LVGL_SQUARELINE'], CPPPATH = CPPPATH)
Return('group')

View File

@ -0,0 +1,19 @@
/*
* Copyright (c) 2006-2022, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2022-05-13 Meco Man First version
*/
#ifdef __RTTHREAD__
void lv_user_gui_init(void)
{
extern void ui_init(void);
ui_init();
}
#endif /* __RTTHREAD__ */