Skip to content

Commit

Permalink
arch(env): move rt-thread into env_support folder (lvgl#3025)
Browse files Browse the repository at this point in the history
  • Loading branch information
mysterywolf authored Jan 19, 2022
1 parent 10866ce commit bd243f3
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -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')
10 changes: 9 additions & 1 deletion rt-thread/SConscript → env_support/rt-thread/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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'
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit bd243f3

Please sign in to comment.