David Robillard
c1ef7b14a3
Always load waf tools first (prevent smashing of --debug, DATADIR, etc). git-svn-id: svn://localhost/ardour2/branches/3.0@10163 d708f5d6-7413-0410-9779-e7cbd77b26cf
48 lines
1.2 KiB
Python
48 lines
1.2 KiB
Python
#!/usr/bin/env python
|
|
from waflib.extras import autowaf as autowaf
|
|
import os
|
|
import sys
|
|
|
|
top = '.'
|
|
out = 'build'
|
|
|
|
path_prefix = 'libs/clearlooks-newer'
|
|
|
|
def options(opt):
|
|
autowaf.set_options(opt)
|
|
|
|
def configure(conf):
|
|
conf.load('compiler_c')
|
|
autowaf.configure(conf)
|
|
|
|
def build(bld):
|
|
obj = bld(features = 'c cshlib')
|
|
obj.source = '''
|
|
animation.c
|
|
cairo-support.c
|
|
clearlooks_draw.c
|
|
clearlooks_draw_glossy.c
|
|
clearlooks_draw_gummy.c
|
|
clearlooks_draw_inverted.c
|
|
clearlooks_rc_style.c
|
|
clearlooks_style.c
|
|
clearlooks_theme_main.c
|
|
support.c
|
|
widget-information.c
|
|
'''
|
|
|
|
obj.name = 'clearlooks-newer'
|
|
obj.target = 'clearlooks'
|
|
obj.uselib = 'GTK'
|
|
obj.includes = '.'
|
|
obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')
|
|
|
|
if sys.platform == 'darwin':
|
|
# 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
|
|
# and that it must reside in a directory called `engines')
|
|
obj = bld(target = 'engines', rule = 'mkdir -p ${TGT} && rm -f ${TGT}/libclearlooks.so && ln -s ../libclearlooks.dylib ${TGT}/libclearlooks.so')
|
|
|
|
|
|
def shutdown():
|
|
autowaf.shutdown()
|