summaryrefslogtreecommitdiff
path: root/libs/surfaces/osc/wscript
blob: 4d0dba67508130d3ece12c50669a3f462c084a08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/env python
from waflib.extras import autowaf as autowaf
import os

# Mandatory variables
top = '.'
out = 'build'

def options(opt):
    autowaf.set_options(opt)

def configure(conf):
    autowaf.configure(conf)

def build(bld):
    obj = bld(features = 'cxx cxxshlib')
    obj.source = '''
            osc.cc
            osc_controllable.cc
            osc_route_observer.cc
            osc_select_observer.cc
            osc_global_observer.cc
            osc_cue_observer.cc
            interface.cc
            osc_gui.cc
    '''
    obj.export_includes = ['.']
    obj.defines      = [ 'PACKAGE="ardour_osc"' ]
    obj.defines     += [ 'ARDOURSURFACE_DLL_EXPORTS' ]
    obj.includes     = ['.', './osc']
    obj.name         = 'libardour_osc'
    obj.target       = 'ardour_osc'
    obj.uselib       = 'LO GTKMM GTK GDK'
    obj.use          = 'libardour libardour_cp libgtkmm2ext libpbd'
    obj.install_path = os.path.join(bld.env['LIBDIR'], 'surfaces')

def shutdown():
    autowaf.shutdown()