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.

84 lines
2.6KB

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