SConscript 548 B

1234567891011121314151617181920212223242526
  1. from building import *
  2. import rtconfig
  3. # get current dir path
  4. cwd = GetCurrentDir()
  5. # init src and inc vars
  6. src = []
  7. inc = []
  8. # add LittlevGL2RTT common include
  9. inc = inc + [cwd]
  10. # add LittlevGL2RTT basic code
  11. src = Glob('*.c')
  12. LOCAL_CCFLAGS = ''
  13. if rtconfig.CROSS_TOOL == 'gcc':
  14. LOCAL_CCFLAGS += ' -std=c99'
  15. elif rtconfig.CROSS_TOOL == 'keil':
  16. LOCAL_CCFLAGS += ' --c99 --gnu -g -W'
  17. group = DefineGroup('LittlevGL2RTT_Demo', src, depend = ['LITTLEVGL2RTT_USING_DEMO'], CPPPATH = inc, LOCAL_CCFLAGS = LOCAL_CCFLAGS)
  18. Return('group')