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.

105 lines
3.8KB

  1. #
  2. # Copyright (C) 2007 Arnold Krille
  3. # Copyright (C) 2007 Pieter Palmers
  4. #
  5. # This file originates from FFADO (www.ffado.org)
  6. #
  7. # This program is free software: you can redistribute it and/or modify
  8. # it under the terms of the GNU General Public License as published by
  9. # the Free Software Foundation, either version 3 of the License, or
  10. # (at your option) any later version.
  11. #
  12. # This program is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. # GNU General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU General Public License
  18. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  19. #
  20. import os
  21. from string import Template
  22. Import( 'env' )
  23. # paths where include files can be found
  24. env.AppendUnique( CPPPATH=["#/", "#/common"] )
  25. #
  26. # Define the source files
  27. #
  28. test_programs = {
  29. "synchroClient" : "testSynchroClient.cpp #/common/JackPosixSemaphore.cpp #/common/JackPosixThread.cpp #/common/JackError.c #/common/JackFifo.cpp",
  30. "synchroServer" : "testSynchroServer.cpp #/common/JackPosixSemaphore.cpp #/common/JackPosixThread.cpp #/common/JackError.c #/common/JackFifo.cpp",
  31. "synchroServerClient" : "testSynchroServerClient.cpp #/common/JackPosixSemaphore.cpp #/common/JackPosixThread.cpp #/common/JackError.c #/common/JackFifo.cpp #/common/JackPthreadCond.cpp",
  32. "testSem" : "testSem.cpp #/common/JackPosixSemaphore.cpp #/common/JackPosixThread.cpp #/common/JackError.c #/common/JackFifo.cpp",
  33. "jack_test" : "jack_test.cpp",
  34. }
  35. #
  36. # Start building
  37. #
  38. # build the tests
  39. testenv = env.Copy()
  40. testenv.PrependUnique( LIBPATH=env['build_base'] )
  41. testenv.PrependUnique( LIBS="jackmp" )
  42. for test_program in test_programs.keys():
  43. testenv.Program(target=test_program,
  44. source=env.Split( test_programs[test_program] ) )
  45. #
  46. # Copyright (C) 2007 Arnold Krille
  47. # Copyright (C) 2007 Pieter Palmers
  48. #
  49. # This file originates from FFADO (www.ffado.org)
  50. #
  51. # This program is free software: you can redistribute it and/or modify
  52. # it under the terms of the GNU General Public License as published by
  53. # the Free Software Foundation, either version 3 of the License, or
  54. # (at your option) any later version.
  55. #
  56. # This program is distributed in the hope that it will be useful,
  57. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  58. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  59. # GNU General Public License for more details.
  60. #
  61. # You should have received a copy of the GNU General Public License
  62. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  63. #
  64. import os
  65. from string import Template
  66. Import( 'env' )
  67. # paths where include files can be found
  68. env.AppendUnique( CPPPATH=["#/", "#/common"] )
  69. #
  70. # Define the source files
  71. #
  72. test_programs = {
  73. "synchroClient" : "testSynchroClient.cpp #/common/JackPosixSemaphore.cpp #/common/JackPosixThread.cpp #/common/JackError.c #/common/JackFifo.cpp",
  74. "synchroServer" : "testSynchroServer.cpp #/common/JackPosixSemaphore.cpp #/common/JackPosixThread.cpp #/common/JackError.c #/common/JackFifo.cpp",
  75. "synchroServerClient" : "testSynchroServerClient.cpp #/common/JackPosixSemaphore.cpp #/common/JackPosixThread.cpp #/common/JackError.c #/common/JackFifo.cpp #/common/JackPthreadCond.cpp",
  76. "testSem" : "testSem.cpp #/common/JackPosixSemaphore.cpp #/common/JackPosixThread.cpp #/common/JackError.c #/common/JackFifo.cpp",
  77. "jack_test" : "jack_test.cpp",
  78. }
  79. #
  80. # Start building
  81. #
  82. # build the tests
  83. testenv = env.Copy()
  84. testenv.PrependUnique( LIBPATH=env['build_base'] )
  85. testenv.PrependUnique( LIBS="jackmp" )
  86. for test_program in test_programs.keys():
  87. testenv.Program(target=test_program,
  88. source=env.Split( test_programs[test_program] ) )