13
0
livetrax/libs/evoral/wscript
David Robillard a9021cdd1d Add waf build script.
git-svn-id: svn://localhost/ardour2/branches/3.0@3843 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-09-30 15:34:54 +00:00

55 lines
1.2 KiB
Python

#!/usr/bin/env python
import Params
# Variables for 'waf dist'
VERSION = '0.0.1'
APPNAME = 'evoral'
# Mandatory variables
srcdir = '.'
blddir = 'build'
def set_options(opt):
opt.tool_options('compiler_cxx')
def configure(conf):
if not conf.env['GLIBMM']:
conf.check_pkg('glibmm-2.4', destvar='GLIBMM', vnum='2.16.0', mandatory=True)
if not conf.env['GTHREAD']:
conf.check_pkg('gthread-2.0', destvar='GTHREAD', vnum='2.16.0', mandatory=True)
if not conf.env['CXX']:
conf.check_tool('compiler_cxx')
def build(bld):
# Headers (evoral)
install_files('PREFIX', 'include/evoral', 'evoral/*.hpp')
# Library (src)
obj = bld.create_obj('cpp', 'shlib')
obj.source = '''
src/Control.cpp
src/ControlList.cpp
src/ControlSet.cpp
src/Curve.cpp
src/Event.cpp
src/MIDIEvent.cpp
src/Note.cpp
src/SMF.cpp
src/SMFReader.cpp
src/Sequence.cpp
'''
obj.includes = '..'
obj.name = 'libevoral'
obj.target = 'evoral'
obj.uselib = 'GLIBMM GTHREAD'
obj.vnum = '0.0.0'
# Test (test)
obj = bld.create_obj('cpp', 'program')
obj.source = 'test/sequence.cpp'
obj.includes = '..'
obj.uselib_local = 'libevoral'
obj.target = 'sequence'
obj.inst_var = 0