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.

79 lines
2.1KB

  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. '#/common/JackPosixSemaphore.cpp',
  33. '#/common/JackPosixThread.cpp',
  34. '#/common/JackError.c',
  35. '#/common/JackFifo.cpp'
  36. ],
  37. 'synchroServer': [
  38. 'testSynchroServer.cpp',
  39. '#/common/JackPosixSemaphore.cpp',
  40. '#/common/JackPosixThread.cpp',
  41. '#/common/JackError.c',
  42. '#/common/JackFifo.cpp'
  43. ],
  44. 'synchroServerClient': [
  45. 'testSynchroServerClient.cpp',
  46. '#/common/JackPosixSemaphore.cpp',
  47. '#/common/JackPosixThread.cpp',
  48. '#/common/JackError.c',
  49. '#/common/JackFifo.cpp'
  50. ],
  51. 'testSem': [
  52. 'testSem.cpp',
  53. '#/common/JackPosixSemaphore.cpp',
  54. '#/common/JackPosixThread.cpp',
  55. '#/common/JackError.c',
  56. '#/common/JackFifo.cpp'
  57. ],
  58. 'jack_test': [
  59. 'jack_test.cpp'
  60. ],
  61. }
  62. #
  63. # Build section
  64. #
  65. # build the tests
  66. testenv = env.Copy()
  67. testenv.PrependUnique(LIBPATH=env['build_base'])
  68. testenv.PrependUnique(LIBS='jackmp')
  69. for test_program, test_program_source in test_programs.items():
  70. testenv.Program(test_program, test_program_source)