summaryrefslogtreecommitdiff
path: root/lib/lvgl/env_support/rt-thread/SConscript
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2024-06-12 17:54:40 +1000
committerjacqueline <me@jacqueline.id.au>2024-06-12 17:54:40 +1000
commit64bd9053a25297f7a442ca831c7da5b44bd33f84 (patch)
treea90c6cad25a12028302ab1a5334510fba0229bae /lib/lvgl/env_support/rt-thread/SConscript
parent611176ed667c4ed7ee9f609e958f9404f4aee91d (diff)
downloadtangara-fw-64bd9053a25297f7a442ca831c7da5b44bd33f84.tar.gz
Update LVGL to v9.1.0
Diffstat (limited to 'lib/lvgl/env_support/rt-thread/SConscript')
-rw-r--r--lib/lvgl/env_support/rt-thread/SConscript11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/lvgl/env_support/rt-thread/SConscript b/lib/lvgl/env_support/rt-thread/SConscript
index 378c36f3..56983c0a 100644
--- a/lib/lvgl/env_support/rt-thread/SConscript
+++ b/lib/lvgl/env_support/rt-thread/SConscript
@@ -12,8 +12,8 @@ port_src = Glob('*.c')
port_inc = [cwd]
group = group + DefineGroup('LVGL-port', port_src, depend = ['PKG_USING_LVGL'], CPPPATH = port_inc)
-# check if .h or .hpp files exsit
-def check_h_hpp_exsit(path):
+# check if .h or .hpp files exists
+def check_h_hpp_exists(path):
file_dirs = os.listdir(path)
for file_dir in file_dirs:
if os.path.splitext(file_dir)[1] in ['.h', '.hpp']:
@@ -24,11 +24,12 @@ lvgl_cwd = cwd + '/../../'
lvgl_src_cwd = lvgl_cwd + 'src/'
inc = inc + [lvgl_src_cwd]
+src = src + Glob(os.path.join(lvgl_src_cwd,'*.c'))
for root, dirs, files in os.walk(lvgl_src_cwd):
for dir in dirs:
current_path = os.path.join(root, dir)
src = src + Glob(os.path.join(current_path,'*.c')) # add all .c files
- if check_h_hpp_exsit(current_path): # add .h and .hpp path
+ if check_h_hpp_exists(current_path): # add .h and .hpp path
inc = inc + [current_path]
@@ -39,7 +40,7 @@ if GetDepend('PKG_LVGL_USING_EXAMPLES'):
for dir in dirs:
current_path = os.path.join(root, dir)
src = src + Glob(os.path.join(current_path,'*.c'))
- if check_h_hpp_exsit(current_path):
+ if check_h_hpp_exists(current_path):
inc = inc + [current_path]
if GetDepend('PKG_LVGL_USING_DEMOS'):
@@ -49,7 +50,7 @@ if GetDepend('PKG_LVGL_USING_DEMOS'):
for dir in dirs:
current_path = os.path.join(root, dir)
src = src + Glob(os.path.join(current_path,'*.c'))
- if check_h_hpp_exsit(current_path):
+ if check_h_hpp_exists(current_path):
inc = inc + [current_path]
LOCAL_CFLAGS = ''