2006-12-18 21:41:19 -05:00
|
|
|
# -*- python -*-
|
|
|
|
|
2006-11-15 16:06:21 -05:00
|
|
|
import os.path
|
2006-12-18 21:41:19 -05:00
|
|
|
import glob
|
|
|
|
|
|
|
|
libclearlooks_files = [
|
2008-02-03 15:33:49 -05:00
|
|
|
'animation.c',
|
|
|
|
'cairo-support.c',
|
2006-12-18 21:41:19 -05:00
|
|
|
'clearlooks_draw.c',
|
2008-02-03 15:33:49 -05:00
|
|
|
'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'
|
|
|
|
]
|
2006-11-15 16:06:21 -05:00
|
|
|
|
|
|
|
Import ('env install_prefix')
|
|
|
|
|
|
|
|
clearlooks = env.Copy()
|
|
|
|
|
2008-02-03 15:33:49 -05:00
|
|
|
clearlooks.Replace(CCFLAGS = ' `pkg-config --cflags gtk+-2.0 cairo` ',
|
|
|
|
LINKFLAGS = ' `pkg-config --libs gtk+-2.0 cairo` ')
|
2006-11-15 16:06:21 -05:00
|
|
|
|
2007-10-11 18:07:47 -04:00
|
|
|
if env['GTKOSX']:
|
|
|
|
clearlooks.Append (CCFLAGS = '-DGTKOSX')
|
|
|
|
|
2006-12-18 21:41:19 -05:00
|
|
|
libclearlooks = clearlooks.SharedLibrary('clearlooks', libclearlooks_files)
|
2006-11-15 16:06:21 -05:00
|
|
|
|
|
|
|
usable_libclearlooks = clearlooks.Install ('engines', libclearlooks)
|
|
|
|
Default (usable_libclearlooks)
|
|
|
|
|
|
|
|
env.Alias('install',
|
2008-02-21 14:30:01 -05:00
|
|
|
env.Install(os.path.join(install_prefix,env['LIBDIR'], 'ardour3', 'engines'),
|
2006-11-15 16:06:21 -05:00
|
|
|
libclearlooks))
|
2006-12-18 21:41:19 -05:00
|
|
|
|
|
|
|
env.Alias('tarball', env.Distribute (env['DISTTREE'],
|
|
|
|
[ 'SConscript', 'bits.c'] +
|
|
|
|
libclearlooks_files +
|
|
|
|
glob.glob('*.h')
|
|
|
|
))
|