Commit 4e891c5e authored by nedko's avatar nedko
Browse files

Initial waf integration, jackd should build fine on linux

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@2396 0c269be4-1314-0410-8aa9-9f06e86f4224
parent 7cd9cbbb
......@@ -17,6 +17,10 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#if defined(HAVE_CONFIG_H)
#include "config.h"
#endif
#ifdef WIN32
#pragma warning (disable : 4786)
#endif
......
#! /usr/bin/env python
# encoding: utf-8
def build(bld):
obj = bld.create_obj('cpp', 'shlib')
obj.features.append('cc')
obj.defines = 'HAVE_CONFIG_H'
obj.includes = ['.', './jack', '..', '../linux']
obj.name = 'serverlib'
obj.target = 'jackserver'
obj.source = [
'JackActivationCount.cpp',
'JackAPI.cpp',
'JackAudioDriver.cpp',
'JackClient.cpp',
'JackConnectionManager.cpp',
'JackDriver.cpp',
'JackEngine.cpp',
'JackEngineControl.cpp',
'JackError.cpp',
'JackExternalClient.cpp',
'JackFrameTimer.cpp',
'JackFreewheelDriver.cpp',
'JackGlobalsServer.cpp',
'JackGraphManager.cpp',
'JackInternalClient.cpp',
'JackPort.cpp',
'JackPosixSemaphore.cpp',
'JackPosixThread.cpp',
'JackFifo.cpp',
'JackLoopbackDriver.cpp',
'JackPortType.cpp',
'JackAudioPort.cpp',
'JackMidiPort.cpp',
'JackMidiAPI.cpp',
'JackServer.cpp',
'JackShmMem.cpp',
'JackThreadedDriver.cpp',
'shm.c',
'JackSocket.cpp',
'JackSocketServerChannel.cpp',
'JackSocketNotifyChannel.cpp',
'JackSocketServerNotifyChannel.cpp',
'JackTime.c',
'JackServerAPI.cpp',
'JackGlobals.cpp',
'JackDriverLoader.cpp',
'JackDebugClient.cpp',
'JackTransportEngine.cpp',
'JackServerGlobals.cpp',
'JackServerLaunch.cpp',
'timestamps.c',
'JackTools.cpp',
'ringbuffer.c',
'JackControl.cpp',
'JackMessageBuffer.cpp',
'JackProcessSync.cpp'
]
#! /usr/bin/env python
# encoding: utf-8
def build(bld):
obj = bld.create_obj('cpp', 'program')
#obj.features.append('cc')
obj.source = [
'jackdbus.c',
'controller.c',
'controller_iface_configure.c',
'controller_iface_control.c',
'controller_iface_introspectable.c',
'controller_iface_patchbay.c',
'controller_iface_transport.c',
'xml.c',
'xml_expat.c',
#'xml_libxml.c',
#'xml_nop.c',
'xml_write_raw.c',
'sigsegv.c',
]
obj.includes = '.'
obj.uselib = 'DBUS-1'
#obj.uselib_local = 'tony john testshlib' # 'tony john peter' # look for 'peter' above
obj.target = 'jackdbus_dyn_linked'
def configure(conf):
conf.check_pkg('dbus-1', mandatory=True)
#! /usr/bin/env python
# encoding: utf-8
def build(bld):
obj = bld.create_obj('cpp', 'program')
obj.includes = ['../common/jack']
obj.source = ['../common/Jackdmp.cpp']
obj.uselib = 'PTHREAD DL RT'
obj.uselib_local = 'serverlib'
obj.target = 'jackd'
def configure(conf):
conf.check_pkg('dbus-1', mandatory=True)
This diff is collapsed.
#! /usr/bin/env python
# encoding: utf-8
import Params
VERSION='1.9.0'
APPNAME='jack'
# these variables are mandatory ('/' are converted automatically)
srcdir = '.'
blddir = 'build'
def set_options(opt):
# options provided by the modules
opt.tool_options('compiler_cxx')
opt.tool_options('compiler_cc')
#opt.add_option('--dbus', action='store_true', default=False, help='Compile D-Bus JACK')
def configure(conf):
conf.check_tool('compiler_cxx')
conf.check_tool('compiler_cc')
#if Params.g_options['dbus']:
# conf.sub_config('linux/dbus')
conf.env['LIB_PTHREAD'] = ['pthread']
conf.env['LIB_DL'] = ['dl']
conf.env['LIB_RT'] = ['rt']
conf.define('ADDON_DIR', '/blabla')
conf.define('JACK_LOCATION', conf.env['PREFIX'] + '/bin')
conf.define('SOCKET_RPC_FIFO_SEMA', 1)
conf.define('__SMP__', 1)
conf.define('USE_POSIX_SHM', 1)
conf.write_config_header('config.h')
#print Params.g_options
#print conf.env
def build(bld):
# process subfolders from here
bld.add_subdirs([
'common',
'linux',
# 'linux/dbus',
])
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment