SConscript 460 B

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