SConscript 544 B

12345678910111213141516171819202122
  1. import rtconfig
  2. from building import *
  3. # get current directory
  4. cwd = GetCurrentDir()
  5. # The set of source files associated with this SConscript file.
  6. src = Glob('STM32F7xx_HAL_Driver/Src/*.c')
  7. src += Split('''
  8. CMSIS/Device/ST/STM32F7xx/Source/Templates/system_stm32f7xx.c
  9. ''')
  10. path = [cwd + '/STM32F7xx_HAL_Driver/Inc',
  11. cwd + '/CMSIS/Device/ST/STM32F7xx/Include',
  12. cwd + '/CMSIS/Include']
  13. CPPDEFINES = ['USE_HAL_DRIVER']
  14. group = DefineGroup('STM32_HAL', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
  15. Return('group')