SConscript 585 B

12345678910111213141516171819202122232425
  1. from building import *
  2. # get current dir path
  3. cwd = GetCurrentDir()
  4. # init src and inc vars
  5. src = []
  6. inc = []
  7. # add MultiButton common include
  8. inc = inc + [cwd]
  9. # add MultiButton basic code
  10. src = src + ['./multi_button.c']
  11. # add MultiButton Test code
  12. if GetDepend('MULTIBUTTON_USING_EXAMPLE_ASYNC'):
  13. src = src + ['./examples/event_async.c']
  14. if GetDepend('MULTIBUTTON_USING_EXAMPLE_INQUIRE'):
  15. src = src + ['./examples/event_inquire.c']
  16. # add group to IDE project
  17. group = DefineGroup('MultiButton', src, depend = ['PKG_USING_MULTIBUTTON'], CPPPATH = inc)
  18. Return('group')