1#!/usr/bin/env python 2from waflib.extras import autowaf as autowaf 3import os 4 5# Mandatory variables 6top = '.' 7out = 'build' 8 9controlcp_sources = [ 10 'basic_ui.cc', 11 'control_protocol.cc', 12 ] 13 14def options(opt): 15 autowaf.set_options(opt) 16 17def configure(conf): 18 autowaf.configure(conf) 19 20def build(bld): 21 if bld.is_defined ('INTERNAL_SHARED_LIBS'): 22 obj = bld.shlib(features = 'c cxx cshlib cxxshlib', source=controlcp_sources) 23 # defines for this library 24 obj.defines = [ 'LIBCONTROLCP_DLL_EXPORTS' ] 25 else: 26 obj = bld.stlib(features = 'c cxx cstlib cxxstlib', source=controlcp_sources) 27 obj.cxxflags = [ bld.env['compiler_flags_dict']['pic'] ] 28 obj.defines = [ ] 29 30 obj.export_includes = ['.', './control_protocol' ] 31 obj.defines += [ 'PACKAGE="ardour_cp"' ] 32 obj.includes = ['.', './control_protocol'] 33 obj.name = 'libardour_cp' 34 obj.target = 'ardourcp' 35 obj.use = 'libardour libpbd' 36 obj.uselib = 'GLIBMM SIGCPP XML OSX' 37 obj.install_path = bld.env['LIBDIR'] 38 39def shutdown(): 40 autowaf.shutdown() 41