Patch from agorka to add some includes required for building with the GCC shipped...
[ardour.git] / libs / evoral / src / libsmf / SConscript
1 # -*- python -*-
2
3 import os
4 import os.path
5 import glob
6
7 Import('env libraries install_prefix')
8
9 subdirs = ['src/libsmf']
10
11 smf = env.Clone()
12 smf.Merge([
13                 libraries['glib2']
14          ])
15
16 if smf['IS_OSX']:
17         smf.Append (LINKFLAGS="-Xlinker -headerpad -Xlinker 2048")
18
19 domain = 'smf'
20
21 smf.Append(DOMAIN=domain, MAJOR=1, MINOR=2, MICRO=0)
22
23 sources = Split("""
24 smf.c
25 smf_decode.c
26 smf_load.c
27 smf_save.c
28 smf_tempo.c
29 """)
30
31 smf.Append(CFLAGS = '-DSMF_VERSION=\\\"1.2\\\"')
32
33 libsmf = smf.SharedLibrary('smf', [ sources ])
34
35 Default(libsmf)
36
37 env.Alias('install', env.Install(os.path.join(install_prefix, env['LIBDIR'], 'ardour3'), libsmf))