SConscript 528 B

1234567891011121314151617181920212223242526
  1. from building import *
  2. import os
  3. cwd = GetCurrentDir()
  4. src = Split('''
  5. main.c
  6. ''')
  7. if GetDepend(['BSP_USING_LCD_SAMPLE']):
  8. src += ['lcd_sample.c']
  9. if GetDepend(['PKG_USING_NRF24L01']):
  10. src += ['nrf24l01_init.c']
  11. CPPPATH = [cwd]
  12. group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH)
  13. list = os.listdir(cwd)
  14. for d in list:
  15. path = os.path.join(cwd, d)
  16. if os.path.isfile(os.path.join(path, 'SConscript')):
  17. group = group + SConscript(os.path.join(d, 'SConscript'))
  18. Return('group')