SConscript 430 B

1234567891011121314151617
  1. from building import *
  2. import os
  3. cwd = GetCurrentDir()
  4. group = []
  5. src = Glob('*.c')
  6. CPPPATH = [cwd]
  7. list = os.listdir(cwd)
  8. for d in list:
  9. path = os.path.join(cwd, d)
  10. if os.path.isfile(os.path.join(path, 'SConscript')):
  11. group = group + SConscript(os.path.join(d, 'SConscript'))
  12. group = group + DefineGroup('LVGL-demo', src, depend = ['BSP_USING_LVGL', 'BSP_USING_LVGL_DEMO'], CPPPATH = CPPPATH)
  13. Return('group')