more attempted cleanup of AU preset declarations
[ardour2.git] / libs / clearlooks-newer / wscript
blobb33d216032943c2458eef5f9ccf3092890f5adf5
1 #!/usr/bin/env python
2 import autowaf
3 import os
4 import sys
6 srcdir = '.'
7 blddir = 'build'
9 path_prefix = 'libs/clearlooks-newer'
11 def set_options(opt):
12 autowaf.set_options(opt)
14 def configure(conf):
15 autowaf.configure(conf)
16 conf.check_tool('compiler_cc')
18 def build(bld):
19 obj = bld.new_task_gen('cc', 'shlib')
20 obj.source = '''
21 animation.c
22 cairo-support.c
23 clearlooks_draw.c
24 clearlooks_draw_glossy.c
25 clearlooks_draw_gummy.c
26 clearlooks_draw_inverted.c
27 clearlooks_rc_style.c
28 clearlooks_style.c
29 clearlooks_theme_main.c
30 support.c
31 widget-information.c
32 '''
34 obj.name = 'clearlooks-newer'
35 obj.target = 'clearlooks'
36 obj.uselib = 'GTK'
37 obj.includes = '.'
38 obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')
40 if sys.platform == 'darwin':
41 # Bit of a hack: make a symlink to the .dylib that meets GTK's criteria for finding it (namely that the library must be a *.so
42 # and that it must reside in a directory called `engines')
43 obj = bld.new_task_gen(target = 'engines', rule = 'mkdir -p ${TGT} && rm -f ${TGT}/libclearlooks.so && ln -s ../libclearlooks.dylib ${TGT}/libclearlooks.so')
46 def shutdown():
47 autowaf.shutdown()