SConscript 457 B

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