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.

93 lines
2.9KB

  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. 'alsa_rawmidi.c',
  33. 'alsa_seqmidi.c',
  34. 'alsa_midi_jackmp.cpp',
  35. 'memops.c',
  36. 'generic_hw.c',
  37. 'hdsp.c',
  38. 'hammerfall.c',
  39. 'ice1712.c'
  40. ]
  41. for i in range(len(srcfiles_linux_alsa)):
  42. srcfiles_linux_alsa[i] = 'alsa/%s' % srcfiles_linux_alsa[i]
  43. srcfiles_linux_freebob = ['freebob/JackFreebobDriver.cpp']
  44. srcfiles_linux_ffado = ['firewire/JackFFADODriver.cpp']
  45. srcfiles_linux_dummy = ['#/common/JackDummyDriver.cpp']
  46. srcfiles_linux_net = ['#/common/JackNetDriver.cpp']
  47. #
  48. # Start building
  49. #
  50. # build the server and its backends
  51. serverenv = env.Copy()
  52. serverenv.PrependUnique( LIBPATH=env['build_base'] )
  53. serverenv.PrependUnique( LIBS=[env['SERVERLIB'], 'dl'] )
  54. server = serverenv.Program(env['SERVER'], srcfiles_linux_server)
  55. serverenv.Install( env['INSTALL_BINDIR'], server )
  56. driver_dir = env['INSTALL_ADDON_DIR'] + "/"
  57. drv = serverenv.SharedLibrary( 'jack_dummy', srcfiles_linux_dummy )
  58. serverenv.InstallAs( driver_dir + "jack_dummy.so", drv )
  59. drv = serverenv.SharedLibrary( 'jack_net', srcfiles_linux_net )
  60. serverenv.InstallAs( driver_dir + "jack_net.so", drv )
  61. if env['ENABLE_ALSA']:
  62. if not env.GetOption('clean'):
  63. serverenv.MergeFlags( env['ALSA_FLAGS'] )
  64. drv = serverenv.SharedLibrary( 'jack_alsa', srcfiles_linux_alsa )
  65. serverenv.InstallAs( driver_dir + "jack_alsa.so", drv )
  66. if env['ENABLE_FREEBOB']:
  67. if not env.GetOption('clean'):
  68. serverenv.MergeFlags( env['FREEBOB_FLAGS'] )
  69. drv = serverenv.SharedLibrary( 'jack_freebob', srcfiles_linux_freebob )
  70. serverenv.InstallAs( driver_dir + "jack_freebob.so", drv )
  71. if env['ENABLE_FIREWIRE']:
  72. if not env.GetOption('clean'):
  73. serverenv.MergeFlags( env['FFADO_FLAGS'] )
  74. drv = serverenv.SharedLibrary( 'jack_firewire', srcfiles_linux_ffado )
  75. serverenv.InstallAs( driver_dir + "jack_firewire.so", drv )