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.

68 lines
1.7KB

  1. #
  2. # Copyright (C) 2007 Arnold Krille
  3. # Copyright (C) 2007 Pieter Palmers
  4. # Copyright (C) 2008 Marc-Olivier Barre
  5. #
  6. # This file originates from FFADO (www.ffado.org)
  7. #
  8. # This program is free software: you can redistribute it and/or modify
  9. # it under the terms of the GNU General Public License as published by
  10. # the Free Software Foundation, either version 3 of the License, or
  11. # (at your option) any later version.
  12. #
  13. # This program is distributed in the hope that it will be useful,
  14. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. # GNU General Public License for more details.
  17. #
  18. # You should have received a copy of the GNU General Public License
  19. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  20. #
  21. import os
  22. from string import Template
  23. Import('env')
  24. # Paths where include files can be found
  25. env.AppendUnique(CPPPATH=['#/', '#/common'])
  26. #
  27. # Source files section
  28. #
  29. test_programs = {
  30. 'synchroClient': [
  31. 'testSynchroClient.cpp'
  32. ],
  33. 'synchroServer': [
  34. 'testSynchroServer.cpp'
  35. ],
  36. 'synchroServerClient': [
  37. 'testSynchroServerClient.cpp'
  38. ],
  39. 'testSem': [
  40. 'testSem.cpp'
  41. ],
  42. 'jack_test': [
  43. 'jack_test.cpp'
  44. ],
  45. }
  46. # Libraries to link
  47. extra_libs = {}
  48. for test_program in test_programs:
  49. extra_libs[test_program] = ['jackserver']
  50. #
  51. # Build section
  52. #
  53. # build the tests
  54. testenv = env.Copy()
  55. testenv.PrependUnique(LIBPATH=env['build_base'])
  56. testenv.PrependUnique(LIBS=env['CLIENTLIB'])
  57. for test_program, test_program_source in test_programs.items():
  58. testenv.Program(test_program, test_program_source)