wscript 2.78 KB
Newer Older
1
2
3
4
#! /usr/bin/env python
# encoding: utf-8

def build(bld):
nedko's avatar
nedko committed
5
    common_libsources = [
6
7
8
9
        'JackActivationCount.cpp',
        'JackAPI.cpp',
        'JackClient.cpp',
        'JackConnectionManager.cpp',
nedko's avatar
nedko committed
10
        'ringbuffer.c',
11
12
13
14
15
16
17
18
19
20
        'JackError.cpp',
        'JackFrameTimer.cpp',
        'JackGraphManager.cpp',
        'JackPort.cpp',
        'JackPosixSemaphore.cpp',
        'JackFifo.cpp',
        'JackPortType.cpp',
        'JackAudioPort.cpp',
        'JackMidiPort.cpp',
        'JackMidiAPI.cpp',
nedko's avatar
nedko committed
21
22
        'JackEngineControl.cpp',
        'JackPosixThread.cpp',
23
24
25
26
27
28
29
30
31
32
        'JackShmMem.cpp',
        'shm.c',
        'JackSocket.cpp',
        'JackTime.c',
        'JackGlobals.cpp',
        'JackDebugClient.cpp',
        'JackTransportEngine.cpp',
        'timestamps.c',
        'JackTools.cpp',
        'JackMessageBuffer.cpp',
sletz's avatar
sletz committed
33
        'JackProcessSync.cpp',
34
        ]
nedko's avatar
nedko committed
35
36
37
38
39
40
41
    
    serverlib = bld.create_obj('cpp', 'shlib')
    serverlib.features.append('cc')
    serverlib.defines = 'HAVE_CONFIG_H'
    serverlib.includes = ['.', './jack', '..', '../linux']
    serverlib.name         = 'serverlib'
    serverlib.target       = 'jackserver'
nedko's avatar
nedko committed
42
    serverlib.uselib = ['RT', "PTHREAD"]
nedko's avatar
nedko committed
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
    serverlib.source = [] + common_libsources
    serverlib.source += [
        'JackAudioDriver.cpp',
        'JackDriver.cpp',
        'JackEngine.cpp',
        'JackExternalClient.cpp',
        'JackFreewheelDriver.cpp',
        'JackInternalClient.cpp',
        'JackLoopbackDriver.cpp',
        'JackServer.cpp',
        'JackThreadedDriver.cpp',
        'JackSocketServerChannel.cpp',
        'JackSocketNotifyChannel.cpp',
        'JackSocketServerNotifyChannel.cpp',
        'JackServerAPI.cpp',
        'JackDriverLoader.cpp',
        'JackServerGlobals.cpp',
        'JackControl.cpp',
sletz's avatar
sletz committed
61
	'JackNetTool.cpp',
nedko's avatar
nedko committed
62
        ]
nedko's avatar
nedko committed
63
    serverlib.vnum = bld.env()['JACK_API_VERSION']
nedko's avatar
nedko committed
64
65
66
67

    clientlib = bld.create_obj('cpp', 'shlib')
    clientlib.features.append('cc')
    clientlib.defines = 'HAVE_CONFIG_H'
nedko's avatar
nedko committed
68
    clientlib.uselib = ['RT', "PTHREAD"]
69
    if bld.env()['BUILD_JACKDBUS'] == True:
nedko's avatar
nedko committed
70
        clientlib.uselib.append('DBUS-1')
nedko's avatar
nedko committed
71
72
73
74
75
76
77
78
    clientlib.includes = ['.', './jack', '..', '../linux']
    clientlib.name         = 'clientlib'
    clientlib.target       = 'jack'
    clientlib.source = [] + common_libsources
    clientlib.source += [
        'JackLibClient.cpp',
        'JackLibAPI.cpp',
        'JackSocketClientChannel.cpp',
79
        'JackServerLaunch.cpp', 
nedko's avatar
nedko committed
80
        ]
nedko's avatar
nedko committed
81
    clientlib.vnum = bld.env()['JACK_API_VERSION']
82

sletz's avatar
sletz committed
83
84
85
86
87
88
89
    netmanager_lib = bld.create_obj('cpp', 'shlib')
    netmanager_lib.env['shlib_PATTERN'] = '%s.so'
    netmanager_lib.includes = ['./jack', '.']
    netmanager_lib.name     = 'netmanager'
    netmanager_lib.target   = 'netmanager'
    netmanager_lib.source   = 'JackNetManager.cpp'

90
    install_files('PREFIX', 'jack', 'jack/*.h')