Waf: build control surfaces.
git-svn-id: svn://localhost/ardour2/branches/3.0@4695 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
58febcbacb
commit
0a61e3893d
38
libs/surfaces/control_protocol/wscript
Normal file
38
libs/surfaces/control_protocol/wscript
Normal file
|
@ -0,0 +1,38 @@
|
|||
#!/usr/bin/env python
|
||||
import autowaf
|
||||
|
||||
# Library version (UNIX style major, minor, micro)
|
||||
# major increment <=> incompatible changes
|
||||
# minor increment <=> compatible changes (additions)
|
||||
# micro increment <=> no interface changes
|
||||
LIBSURFACES_LIB_VERSION = '4.1.0'
|
||||
|
||||
# Mandatory variables
|
||||
srcdir = '.'
|
||||
blddir = 'build'
|
||||
|
||||
def set_options(opt):
|
||||
autowaf.set_options(opt)
|
||||
|
||||
def configure(conf):
|
||||
autowaf.configure(conf)
|
||||
|
||||
def build(bld):
|
||||
obj = bld.new_task_gen('cxx', 'shlib')
|
||||
obj.source = '''
|
||||
basic_ui.cc
|
||||
control_protocol.cc
|
||||
smpte.cc
|
||||
'''
|
||||
obj.export_incdirs = ['.']
|
||||
obj.cxxflags = '-DPACKAGE=\\\"ardour_cp\\\"'
|
||||
obj.includes = ['.']
|
||||
obj.name = 'libsurfaces'
|
||||
obj.target = 'surfaces'
|
||||
obj.uselib_local = 'libardour'
|
||||
obj.vnum = LIBSURFACES_LIB_VERSION
|
||||
obj.install_path = ''
|
||||
|
||||
def shutdown():
|
||||
autowaf.shutdown()
|
||||
|
46
libs/surfaces/frontier/wscript
Normal file
46
libs/surfaces/frontier/wscript
Normal file
|
@ -0,0 +1,46 @@
|
|||
#!/usr/bin/env python
|
||||
import autowaf
|
||||
|
||||
# Version of this package (even if built as a child)
|
||||
LIBSURFACES_VERSION = '4.1.0'
|
||||
|
||||
# Library version (UNIX style major, minor, micro)
|
||||
# major increment <=> incompatible changes
|
||||
# minor increment <=> compatible changes (additions)
|
||||
# micro increment <=> no interface changes
|
||||
LIBSURFACES_LIB_VERSION = '4.1.0'
|
||||
|
||||
# Variables for 'waf dist'
|
||||
APPNAME = 'libsurfaces'
|
||||
VERSION = LIBSURFACES_VERSION
|
||||
|
||||
# Mandatory variables
|
||||
srcdir = '.'
|
||||
blddir = 'build'
|
||||
|
||||
def set_options(opt):
|
||||
autowaf.set_options(opt)
|
||||
|
||||
def configure(conf):
|
||||
autowaf.configure(conf)
|
||||
|
||||
def build(bld):
|
||||
# Generic MIDI
|
||||
obj = bld.new_task_gen('cxx', 'shlib')
|
||||
obj.source = '''
|
||||
generic_midi_control_protocol.cc
|
||||
interface.cc
|
||||
midicontrollable.cc
|
||||
'''
|
||||
obj.export_incdirs = ['./generic_midi']
|
||||
obj.cxxflags = '-DPACKAGE=\\\"ardour_genericmidi\\\"'
|
||||
obj.includes = ['.', './generic_midi']
|
||||
obj.name = 'libgeneric_midi'
|
||||
obj.target = 'generic_midi'
|
||||
obj.uselib_local = 'libardour libsurfaces'
|
||||
obj.vnum = LIBSURFACES_LIB_VERSION
|
||||
obj.install_path = ''
|
||||
|
||||
def shutdown():
|
||||
autowaf.shutdown()
|
||||
|
38
libs/surfaces/generic_midi/wscript
Normal file
38
libs/surfaces/generic_midi/wscript
Normal file
|
@ -0,0 +1,38 @@
|
|||
#!/usr/bin/env python
|
||||
import autowaf
|
||||
|
||||
# Library version (UNIX style major, minor, micro)
|
||||
# major increment <=> incompatible changes
|
||||
# minor increment <=> compatible changes (additions)
|
||||
# micro increment <=> no interface changes
|
||||
LIBSURFACES_LIB_VERSION = '4.1.0'
|
||||
|
||||
# Mandatory variables
|
||||
srcdir = '.'
|
||||
blddir = 'build'
|
||||
|
||||
def set_options(opt):
|
||||
autowaf.set_options(opt)
|
||||
|
||||
def configure(conf):
|
||||
autowaf.configure(conf)
|
||||
|
||||
def build(bld):
|
||||
obj = bld.new_task_gen('cxx', 'shlib')
|
||||
obj.source = '''
|
||||
generic_midi_control_protocol.cc
|
||||
interface.cc
|
||||
midicontrollable.cc
|
||||
'''
|
||||
obj.export_incdirs = ['./generic_midi']
|
||||
obj.cxxflags = '-DPACKAGE=\\\"ardour_genericmidi\\\"'
|
||||
obj.includes = ['.', './generic_midi']
|
||||
obj.name = 'libgeneric_midi'
|
||||
obj.target = 'generic_midi'
|
||||
obj.uselib_local = 'libardour libsurfaces'
|
||||
obj.vnum = LIBSURFACES_LIB_VERSION
|
||||
obj.install_path = ''
|
||||
|
||||
def shutdown():
|
||||
autowaf.shutdown()
|
||||
|
53
libs/surfaces/mackie/wscript
Normal file
53
libs/surfaces/mackie/wscript
Normal file
|
@ -0,0 +1,53 @@
|
|||
#!/usr/bin/env python
|
||||
import autowaf
|
||||
|
||||
# Library version (UNIX style major, minor, micro)
|
||||
# major increment <=> incompatible changes
|
||||
# minor increment <=> compatible changes (additions)
|
||||
# micro increment <=> no interface changes
|
||||
LIBSURFACES_LIB_VERSION = '4.1.0'
|
||||
|
||||
# Mandatory variables
|
||||
srcdir = '.'
|
||||
blddir = 'build'
|
||||
|
||||
def set_options(opt):
|
||||
autowaf.set_options(opt)
|
||||
|
||||
def configure(conf):
|
||||
autowaf.configure(conf)
|
||||
|
||||
def build(bld):
|
||||
obj = bld.new_task_gen('cxx', 'shlib')
|
||||
obj.source = '''
|
||||
bcf_surface.cc
|
||||
bcf_surface_generated.cc
|
||||
controls.cc
|
||||
dummy_port.cc
|
||||
interface.cc
|
||||
mackie_button_handler.cc
|
||||
mackie_control_protocol.cc
|
||||
mackie_control_protocol_poll.cc
|
||||
mackie_jog_wheel.cc
|
||||
mackie_midi_builder.cc
|
||||
mackie_port.cc
|
||||
mackie_surface.cc
|
||||
mackie_surface_generated.cc
|
||||
midi_byte_array.cc
|
||||
route_signal.cc
|
||||
surface.cc
|
||||
surface_port.cc
|
||||
types.cc
|
||||
'''
|
||||
obj.export_incdirs = ['./mackie']
|
||||
obj.cxxflags = '-DPACKAGE=\\\"ardour_mackie\\\"'
|
||||
obj.includes = ['.', './mackie']
|
||||
obj.name = 'libmackie'
|
||||
obj.target = 'mackie'
|
||||
obj.uselib_local = 'libardour libsurfaces'
|
||||
obj.vnum = LIBSURFACES_LIB_VERSION
|
||||
obj.install_path = ''
|
||||
|
||||
def shutdown():
|
||||
autowaf.shutdown()
|
||||
|
45
libs/surfaces/osc/wscript
Normal file
45
libs/surfaces/osc/wscript
Normal file
|
@ -0,0 +1,45 @@
|
|||
#!/usr/bin/env python
|
||||
import autowaf
|
||||
|
||||
# Version of this package (even if built as a child)
|
||||
LIBSURFACES_VERSION = '4.1.0'
|
||||
|
||||
# Library version (UNIX style major, minor, micro)
|
||||
# major increment <=> incompatible changes
|
||||
# minor increment <=> compatible changes (additions)
|
||||
# micro increment <=> no interface changes
|
||||
LIBSURFACES_LIB_VERSION = '4.1.0'
|
||||
|
||||
# Variables for 'waf dist'
|
||||
APPNAME = 'libsurfaces'
|
||||
VERSION = LIBSURFACES_VERSION
|
||||
|
||||
# Mandatory variables
|
||||
srcdir = '.'
|
||||
blddir = 'build'
|
||||
|
||||
def set_options(opt):
|
||||
autowaf.set_options(opt)
|
||||
|
||||
def configure(conf):
|
||||
autowaf.configure(conf)
|
||||
|
||||
def build(bld):
|
||||
obj = bld.new_task_gen('cxx', 'shlib')
|
||||
obj.source = '''
|
||||
osc.cc
|
||||
osc_controllable.cc
|
||||
interface.cc
|
||||
'''
|
||||
obj.export_incdirs = ['./osc']
|
||||
obj.cxxflags = '-DPACKAGE=\\\"ardour_cp\\\"'
|
||||
obj.includes = ['.', './osc']
|
||||
obj.name = 'libsurfaces'
|
||||
obj.target = 'surfaces'
|
||||
obj.uselib_local = 'libardour'
|
||||
obj.vnum = LIBSURFACES_LIB_VERSION
|
||||
obj.install_path = ''
|
||||
|
||||
def shutdown():
|
||||
autowaf.shutdown()
|
||||
|
37
libs/surfaces/powermate/wscript
Normal file
37
libs/surfaces/powermate/wscript
Normal file
|
@ -0,0 +1,37 @@
|
|||
#!/usr/bin/env python
|
||||
import autowaf
|
||||
|
||||
# Library version (UNIX style major, minor, micro)
|
||||
# major increment <=> incompatible changes
|
||||
# minor increment <=> compatible changes (additions)
|
||||
# micro increment <=> no interface changes
|
||||
LIBSURFACES_LIB_VERSION = '4.1.0'
|
||||
|
||||
# Mandatory variables
|
||||
srcdir = '.'
|
||||
blddir = 'build'
|
||||
|
||||
def set_options(opt):
|
||||
autowaf.set_options(opt)
|
||||
|
||||
def configure(conf):
|
||||
autowaf.configure(conf)
|
||||
|
||||
def build(bld):
|
||||
obj = bld.new_task_gen('cxx', 'shlib')
|
||||
obj.source = '''
|
||||
interface.cc
|
||||
powermate.cc
|
||||
'''
|
||||
obj.export_incdirs = ['./powermate']
|
||||
obj.cxxflags = '-DPACKAGE=\\\"ardour_powermate\\\"'
|
||||
obj.includes = ['.', './powermate']
|
||||
obj.name = 'libpowermate'
|
||||
obj.target = 'powermate'
|
||||
obj.uselib_local = 'libardour libsurfaces'
|
||||
obj.vnum = LIBSURFACES_LIB_VERSION
|
||||
obj.install_path = ''
|
||||
|
||||
def shutdown():
|
||||
autowaf.shutdown()
|
||||
|
51
libs/surfaces/tranzport/wscript
Normal file
51
libs/surfaces/tranzport/wscript
Normal file
|
@ -0,0 +1,51 @@
|
|||
#!/usr/bin/env python
|
||||
import autowaf
|
||||
|
||||
# Library version (UNIX style major, minor, micro)
|
||||
# major increment <=> incompatible changes
|
||||
# minor increment <=> compatible changes (additions)
|
||||
# micro increment <=> no interface changes
|
||||
LIBSURFACES_LIB_VERSION = '4.1.0'
|
||||
|
||||
# Mandatory variables
|
||||
srcdir = '.'
|
||||
blddir = 'build'
|
||||
|
||||
def set_options(opt):
|
||||
autowaf.set_options(opt)
|
||||
|
||||
def configure(conf):
|
||||
autowaf.configure(conf)
|
||||
|
||||
def build(bld):
|
||||
obj = bld.new_task_gen('cxx', 'shlib')
|
||||
obj.source = '''
|
||||
button_events.cc
|
||||
buttons.cc
|
||||
general.cc
|
||||
init.cc
|
||||
interface.cc
|
||||
io.cc
|
||||
io_usb.cc
|
||||
lcd.cc
|
||||
lights.cc
|
||||
mode.cc
|
||||
panner.cc
|
||||
screen.cc
|
||||
show.cc
|
||||
state.cc
|
||||
wheel.cc
|
||||
wheel_modes.cc
|
||||
'''
|
||||
obj.export_incdirs = ['./tranzport']
|
||||
obj.cxxflags = '-DPACKAGE=\\\"ardour_tranzport\\\"'
|
||||
obj.includes = ['.', './tranzport']
|
||||
obj.name = 'libtranzport'
|
||||
obj.target = 'tranzport'
|
||||
obj.uselib_local = 'libardour libsurfaces'
|
||||
obj.vnum = LIBSURFACES_LIB_VERSION
|
||||
obj.install_path = ''
|
||||
|
||||
def shutdown():
|
||||
autowaf.shutdown()
|
||||
|
37
libs/surfaces/wiimote/wscript
Normal file
37
libs/surfaces/wiimote/wscript
Normal file
|
@ -0,0 +1,37 @@
|
|||
#!/usr/bin/env python
|
||||
import autowaf
|
||||
|
||||
# Library version (UNIX style major, minor, micro)
|
||||
# major increment <=> incompatible changes
|
||||
# minor increment <=> compatible changes (additions)
|
||||
# micro increment <=> no interface changes
|
||||
LIBSURFACES_LIB_VERSION = '4.1.0'
|
||||
|
||||
# Mandatory variables
|
||||
srcdir = '.'
|
||||
blddir = 'build'
|
||||
|
||||
def set_options(opt):
|
||||
autowaf.set_options(opt)
|
||||
|
||||
def configure(conf):
|
||||
autowaf.configure(conf)
|
||||
|
||||
def build(bld):
|
||||
obj = bld.new_task_gen('cxx', 'shlib')
|
||||
obj.source = '''
|
||||
wiimote.cc
|
||||
interface.cc
|
||||
'''
|
||||
obj.export_incdirs = ['./wiimote']
|
||||
obj.cxxflags = '-DPACKAGE=\\\"ardour_wiimote\\\"'
|
||||
obj.includes = ['.', './wiimote']
|
||||
obj.name = 'libwiimote'
|
||||
obj.target = 'wiimote'
|
||||
obj.uselib_local = 'libardour libsurfaces'
|
||||
obj.vnum = LIBSURFACES_LIB_VERSION
|
||||
obj.install_path = ''
|
||||
|
||||
def shutdown():
|
||||
autowaf.shutdown()
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
import autowaf
|
||||
|
||||
# Version of this package (even if built as a child)
|
||||
LIBSURFACES_VERSION = '0.0.0'
|
||||
LIBSURFACES_VERSION = '4.1.0'
|
||||
|
||||
# Library version (UNIX style major, minor, micro)
|
||||
# major increment <=> incompatible changes
|
||||
|
@ -23,34 +23,10 @@ def set_options(opt):
|
|||
|
||||
def configure(conf):
|
||||
autowaf.configure(conf)
|
||||
autowaf.check_tool(conf, 'compiler_cxx')
|
||||
autowaf.check_pkg(conf, 'libxml-2.0', uselib_store='XML')
|
||||
autowaf.check_pkg(conf, 'sigc++-2.0', uselib_store='SIGCPP', atleast_version='2.0')
|
||||
autowaf.check_pkg(conf, 'uuid', uselib_store='UUID')
|
||||
|
||||
conf.env.append_value('CXXFLAGS', '-DHAVE_WAFCONFIG_H')
|
||||
conf.write_config_header('wafconfig.h')
|
||||
|
||||
# Boost headers
|
||||
autowaf.check_header(conf, 'boost/shared_ptr.hpp')
|
||||
autowaf.check_header(conf, 'boost/weak_ptr.hpp')
|
||||
|
||||
def build(bld):
|
||||
# Library
|
||||
obj = bld.new_task_gen('cxx', 'shlib')
|
||||
obj.source = '''
|
||||
control_protocol/basic_ui.cc
|
||||
control_protocol/control_protocol.cc
|
||||
control_protocol/smpte.cc
|
||||
'''
|
||||
obj.export_incdirs = ['./control_protocol']
|
||||
obj.cxxflags = '-DPACKAGE=\\\"ardour_cp\\\"'
|
||||
obj.includes = ['.', './control_protocol']
|
||||
obj.name = 'libsurfaces'
|
||||
obj.target = 'surfaces'
|
||||
obj.uselib_local = 'libardour'
|
||||
obj.vnum = LIBSURFACES_LIB_VERSION
|
||||
obj.install_path = ''
|
||||
bld.add_subdirs('control_protocol')
|
||||
bld.add_subdirs('generic_midi')
|
||||
|
||||
def shutdown():
|
||||
autowaf.shutdown()
|
||||
|
|
Loading…
Reference in New Issue
Block a user