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.

52 lines
1.2KB

  1. #! /usr/bin/env python
  2. # encoding: utf-8
  3. import Params
  4. import commands
  5. VERSION='1.9.0'
  6. APPNAME='jack'
  7. # these variables are mandatory ('/' are converted automatically)
  8. srcdir = '.'
  9. blddir = 'build'
  10. def fetch_svn_revision(path):
  11. cmd = "LANG= "
  12. cmd += "svnversion "
  13. cmd += path
  14. return commands.getoutput(cmd)
  15. def set_options(opt):
  16. # options provided by the modules
  17. opt.tool_options('compiler_cxx')
  18. opt.tool_options('compiler_cc')
  19. def configure(conf):
  20. conf.check_tool('compiler_cxx')
  21. conf.check_tool('compiler_cc')
  22. conf.sub_config('linux/dbus')
  23. conf.env['LIB_PTHREAD'] = ['pthread']
  24. conf.env['LIB_DL'] = ['dl']
  25. conf.env['LIB_RT'] = ['rt']
  26. conf.define('ADDON_DIR', conf.env['PREFIX'] + '/lib/jack')
  27. conf.define('JACK_LOCATION', conf.env['PREFIX'] + '/bin')
  28. conf.define('SOCKET_RPC_FIFO_SEMA', 1)
  29. conf.define('__SMP__', 1)
  30. conf.define('USE_POSIX_SHM', 1)
  31. conf.define('JACK_SVNREVISION', fetch_svn_revision('.'))
  32. conf.write_config_header('config.h')
  33. #print Params.g_options
  34. #print conf.env
  35. def build(bld):
  36. # process subfolders from here
  37. bld.add_subdirs('common')
  38. bld.add_subdirs('linux')
  39. bld.add_subdirs('linux/dbus')