SConscript 558 B

123456789101112131415161718
  1. Import('env')
  2. Import('rtconfig')
  3. comm = rtconfig.ARCH + '/common'
  4. path = rtconfig.ARCH + '/' + rtconfig.CPU
  5. # The set of source files associated with this SConscript file.
  6. if rtconfig.CC == 'armcc':
  7. src_local = Glob(path + '/*.c') + Glob(path + '/*_rvds.s') + Glob(comm + '/*.c')
  8. if rtconfig.CC == 'gcc':
  9. src_local = Glob(path + '/*.c') + Glob(path + '/*_gcc.s') + Glob(comm + '/*.c')
  10. if rtconfig.CC == 'iar':
  11. src_local = Glob(path + '/*.c') + Glob(path + '/*_iar.s') + Glob(comm + '/*.c')
  12. obj = env.Object(src_local)
  13. Return('obj')