#!/usr/bin/env python
import autowaf

def build(bld):
	obj = bld.create_obj('cpp', 'program')
	obj.target       = 'ingen'
	obj.source       = 'main.cpp cmdline.c'
	obj.includes     = ['../common', '../']
	obj.defines      = 'VERSION=\\\"' + bld.env()['INGEN_VERSION'] + '\\\"'
	obj.uselib_local = 'libingen_module libingen_shared'
	obj.inst_dir     = bld.env()['BINDIRNAME']
	autowaf.use_lib(bld, obj, 'GTHREAD GLIBMM REDLANDMM RAUL LV2CORE SLV2 INGEN LIBLO SOUP')
	
	autowaf.build_wrapper(bld, 'ingen.in', obj)