jack2 codebase
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1.2KB

  1. #! /usr/bin/python3
  2. # encoding: utf-8
  3. test_programs = {
  4. # For testing purposes
  5. # 'synchroClient': ['testSynchroClient.cpp'],
  6. # 'synchroServer': ['testSynchroServer.cpp'],
  7. # 'synchroServerClient': ['testSynchroServerClient.cpp'],
  8. # 'testSem': ['testSem.cpp'],
  9. 'jack_test': ['test.cpp'],
  10. 'jack_cpu': ['cpu.c'],
  11. 'jack_iodelay': ['iodelay.cpp'],
  12. 'jack_multiple_metro': ['external_metro.cpp'],
  13. }
  14. def build(bld):
  15. for test_program, test_program_sources in list(test_programs.items()):
  16. prog = bld(features='cxx cxxprogram')
  17. if bld.env['IS_MACOSX']:
  18. prog.includes = ['..', '../macosx', '../posix', '../common/jack', '../common']
  19. if bld.env['IS_LINUX']:
  20. prog.includes = ['..', '../linux', '../posix', '../common/jack', '../common']
  21. if bld.env['IS_FREEBSD']:
  22. prog.includes = ['..', '../freebsd', '../posix', '../common/jack', '../common']
  23. if bld.env['IS_SUN']:
  24. prog.includes = ['..', '../solaris', '../posix', '../common/jack', '../common']
  25. prog.source = test_program_sources
  26. if bld.env['IS_LINUX']:
  27. prog.uselib = 'RT'
  28. prog.use = 'clientlib'
  29. prog.target = test_program