SConscript 680 B

1234567891011121314151617181920212223242526
  1. from building import *
  2. import rtconfig
  3. # get current directory
  4. cwd = GetCurrentDir()
  5. # The set of source files associated with this SConscript file.
  6. src = Glob('src/*.cpp')
  7. path = [cwd + '/']
  8. path += [cwd + '/port']
  9. path += [cwd + '/src']
  10. LOCAL_CCFLAGS = ''
  11. if GetDepend('ROSSERIAL_USING_HELLO_WORLD_UART'):
  12. src += Glob('examples/hello_world_serial.cpp')
  13. if GetDepend('ROSSERIAL_USING_HELLO_WORLD_TCP'):
  14. src += Glob('examples/hello_world_tcp.cpp')
  15. if rtconfig.CROSS_TOOL == 'gcc':
  16. LOCAL_CCFLAGS += ' -std=c99'
  17. group = DefineGroup('rosserial', src, depend = ['PKG_USING_ROSSERIAL'], CPPPATH = path, LOCAL_CCFLAGS = LOCAL_CCFLAGS)
  18. Return('group')