SConscript 446 B

12345678910111213141516171819
  1. from building import *
  2. import os
  3. cwd = GetCurrentDir()
  4. src = Glob('*.c')
  5. CPPPATH = [cwd]
  6. CPPDEFINES = ['STM32F4']
  7. objs = []
  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. objs = objs + SConscript(os.path.join(d, 'SConscript'))
  13. group = DefineGroup('LVGL-port', src, depend = ['BSP_USING_LVGL'], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)
  14. Return('objs')