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.7KB

  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", "#/common/jack", "#/linux"] )
  25. #
  26. # Define the source files
  27. #
  28. srcfiles_linux_server = ['#/common/Jackdmp.cpp']
  29. srcfiles_linux_alsa = env.Split( '\
  30. JackAlsaDriver.cpp memops.c generic_hw.c hdsp.c hammerfall.c ice1712.c')
  31. for i in range(len(srcfiles_linux_alsa)):
  32. srcfiles_linux_alsa[i] = 'alsa/%s' % srcfiles_linux_alsa[i]
  33. srcfiles_linux_freebob = ['freebob/JackFreebobDriver.cpp']
  34. srcfiles_linux_ffado = ['firewire/JackFFADODriver.cpp']
  35. srcfiles_linux_dummy = ['#/common/JackDummyDriver.cpp']
  36. #
  37. # Start building
  38. #
  39. #pkgconfig = env.ScanReplace( "libjackmp.pc.in" )
  40. #env.Install( env['libdir'] + '/pkgconfig', pkgconfig )
  41. # build the server and its backends
  42. serverenv = env.Copy()
  43. serverenv.PrependUnique( LIBPATH=env['build_base'] )
  44. serverenv.PrependUnique( LIBS=["jackdmp", "dl"] )
  45. server = serverenv.Program("jackdmp", srcfiles_linux_server)
  46. serverenv.Install( env['bindir'], server )
  47. drv = serverenv.SharedLibrary( "jack_dummy", srcfiles_linux_dummy )
  48. serverenv.InstallAs( env['libdir']+ "/jackmp/jack_dummy.so", drv )
  49. if env['ENABLE_ALSA']:
  50. if not env.GetOption('clean'):
  51. serverenv.MergeFlags( env['ALSA_FLAGS'] )
  52. drv = serverenv.SharedLibrary( "jack_alsa", srcfiles_linux_alsa )
  53. serverenv.InstallAs( env['libdir']+ "/jackmp/jack_alsa.so", drv )
  54. if env['ENABLE_FREEBOB']:
  55. if not env.GetOption('clean'):
  56. serverenv.MergeFlags( env['FREEBOB_FLAGS'] )
  57. drv = serverenv.SharedLibrary( "jack_freebob", srcfiles_linux_freebob )
  58. serverenv.InstallAs( env['libdir']+ "/jackmp/jack_freebob.so", drv )
  59. if env['ENABLE_FIREWIRE']:
  60. if not env.GetOption('clean'):
  61. serverenv.MergeFlags( env['FFADO_FLAGS'] )
  62. drv = serverenv.SharedLibrary( "jack_firewire", srcfiles_linux_ffado )
  63. serverenv.InstallAs( env['libdir']+ "/jackmp/jack_firewire.so", drv )