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.

89 lines
2.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 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. #
  47. # Start building
  48. #
  49. # build the server and its backends
  50. serverenv = env.Copy()
  51. serverenv.PrependUnique( LIBPATH=env['build_base'] )
  52. serverenv.PrependUnique( LIBS=[env['SERVERLIB'], 'dl'] )
  53. server = serverenv.Program(env['SERVER'], srcfiles_linux_server)
  54. serverenv.Install( env['BINDIR'], server )
  55. driver_dir = env['ADDON_DIR'] + "/"
  56. drv = serverenv.SharedLibrary( 'jack_dummy', srcfiles_linux_dummy )
  57. serverenv.InstallAs( driver_dir + "jack_dummy.so", drv )
  58. if env['ENABLE_ALSA']:
  59. if not env.GetOption('clean'):
  60. serverenv.MergeFlags( env['ALSA_FLAGS'] )
  61. drv = serverenv.SharedLibrary( 'jack_alsa', srcfiles_linux_alsa )
  62. serverenv.InstallAs( driver_dir + "jack_alsa.so", drv )
  63. if env['ENABLE_FREEBOB']:
  64. if not env.GetOption('clean'):
  65. serverenv.MergeFlags( env['FREEBOB_FLAGS'] )
  66. drv = serverenv.SharedLibrary( 'jack_freebob', srcfiles_linux_freebob )
  67. serverenv.InstallAs( driver_dir + "jack_freebob.so", drv )
  68. if env['ENABLE_FIREWIRE']:
  69. if not env.GetOption('clean'):
  70. serverenv.MergeFlags( env['FFADO_FLAGS'] )
  71. drv = serverenv.SharedLibrary( 'jack_firewire', srcfiles_linux_ffado )
  72. serverenv.InstallAs( driver_dir + "jack_firewire.so", drv )