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.

57 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 to include files
  25. env.AppendUnique(CPPPATH = ['#/', '#/common', '#/common/jack', '#/macosx'])
  26. #
  27. # Source files section
  28. #
  29. srcfiles_macosx_server = ['#/common/Jackdmp.cpp']
  30. srcfiles_macosx_coreaudio = ['JackCoreAudioDriver.cpp']
  31. srcfiles_macosx_dummy = ['#/common/JackDummyDriver.cpp']
  32. #
  33. # Build/install section
  34. #
  35. # build the server and its backends
  36. serverenv = env.Copy()
  37. serverenv.PrependUnique( LIBPATH=env['build_base'] )
  38. serverenv.PrependUnique( LIBS=[env['SERVERLIB'], 'dl'] )
  39. server = serverenv.Program(env['SERVER'], srcfiles_macosx_server)
  40. serverenv.Install( env['INSTALL_BINDIR'], server )
  41. drv = serverenv.SharedLibrary( 'jack_dummy', srcfiles_macosx_dummy )
  42. serverenv.InstallAs( env['INSTALL_ADDON_DIR']+ '/jack_dummy.so', drv )
  43. drv = serverenv.SharedLibrary( 'jack_coreaudio', srcfiles_macosx_coreaudio )
  44. serverenv.InstallAs( env['INSTALL_ADDON_DIR']+ '/jack_coreaudio.so', drv )