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.

46 lines
1.8KB

  1. #! /usr/bin/env python
  2. # encoding: utf-8
  3. #
  4. # Copyright (C) 2015, 2017-2018 Karl Linden <karl.j.linden@gmail.com>
  5. #
  6. # This program is free software; you can redistribute it and/or modify
  7. # it under the terms of the GNU General Public License as published by
  8. # the Free Software Foundation; either version 2 of the License.
  9. #
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. # GNU General Public License for more details.
  14. #
  15. # You should have received a copy of the GNU General Public License
  16. # along with this program; if not, write to the Free Software
  17. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18. #
  19. test_programs = {
  20. # For testing purposes
  21. #'synchroClient': ['testSynchroClient.cpp'],
  22. #'synchroServer': ['testSynchroServer.cpp'],
  23. #'synchroServerClient': ['testSynchroServerClient.cpp'],
  24. #'testSem': ['testSem.cpp'],
  25. 'jack_test': ['test.cpp'],
  26. 'jack_cpu': ['cpu.c'],
  27. 'jack_iodelay': ['iodelay.cpp'],
  28. 'jack_multiple_metro' : ['external_metro.cpp'],
  29. }
  30. def build(bld):
  31. for test_program, test_program_sources in list(test_programs.items()):
  32. prog = bld(features = 'cxx cxxprogram')
  33. if bld.env['IS_MACOSX']:
  34. prog.includes = ['..','../macosx', '../posix', '../common/jack', '../common']
  35. if bld.env['IS_LINUX']:
  36. prog.includes = ['..','../linux', '../posix', '../common/jack', '../common']
  37. if bld.env['IS_SUN']:
  38. prog.includes = ['..','../solaris', '../posix', '../common/jack', '../common']
  39. prog.source = test_program_sources
  40. if bld.env['IS_LINUX']:
  41. prog.uselib = 'RT'
  42. prog.use = 'clientlib'
  43. prog.target = test_program