diff --git a/SConscript b/SConscript index 841579ed8..d457d9a47 100644 --- a/SConscript +++ b/SConscript @@ -6,6 +6,6 @@ from building import * objs = [] cwd = GetCurrentDir() -objs = objs + SConscript(cwd + '/rt-thread/SConscript') +objs = objs + SConscript(cwd + '/env_support/rt-thread/SConscript') Return('objs') diff --git a/rt-thread/SConscript b/env_support/rt-thread/SConscript similarity index 88% rename from rt-thread/SConscript rename to env_support/rt-thread/SConscript index 8f215b014..7f6048404 100644 --- a/rt-thread/SConscript +++ b/env_support/rt-thread/SConscript @@ -9,7 +9,7 @@ cwd = GetCurrentDir() src = [] inc = [] -lvgl_cwd = cwd + '/../' +lvgl_cwd = cwd + '/../../' lvgl_src_cwd = lvgl_cwd + 'src/' inc = inc + [lvgl_src_cwd] @@ -26,6 +26,14 @@ if GetDepend('PKG_USING_LVGL_EXAMPLES'): src = src + Glob(os.path.join(root,dir,'*.c')) inc = inc + [os.path.join(root,dir)] +if GetDepend('PKG_USING_LVGL_DEMOS'): + lvgl_src_cwd = lvgl_cwd + 'demos/' + inc = inc + [lvgl_src_cwd] + for root, dirs, files in os.walk(lvgl_src_cwd): + for dir in dirs: + src = src + Glob(os.path.join(root,dir,'*.c')) + inc = inc + [os.path.join(root,dir)] + LOCAL_CCFLAGS = '' if rtconfig.PLATFORM == 'gcc': # GCC LOCAL_CCFLAGS += ' -std=c99' diff --git a/rt-thread/lv_rt_thread_conf.h b/env_support/rt-thread/lv_rt_thread_conf.h similarity index 100% rename from rt-thread/lv_rt_thread_conf.h rename to env_support/rt-thread/lv_rt_thread_conf.h diff --git a/rt-thread/lv_rt_thread_port.c b/env_support/rt-thread/lv_rt_thread_port.c similarity index 100% rename from rt-thread/lv_rt_thread_port.c rename to env_support/rt-thread/lv_rt_thread_port.c