2008-06-02 17:41:35 -04:00
|
|
|
# -*- python -*-
|
|
|
|
|
|
|
|
import os.path
|
|
|
|
import glob
|
|
|
|
|
|
|
|
libclearlooks_files = [
|
|
|
|
'clearlooks_draw.c',
|
2008-12-12 09:43:24 -05:00
|
|
|
'clearlooks_rc_style.c',
|
|
|
|
'clearlooks_style.c',
|
|
|
|
'clearlooks_theme_main.c',
|
|
|
|
'support.c' ]
|
2008-06-02 17:41:35 -04:00
|
|
|
|
|
|
|
Import ('env install_prefix')
|
|
|
|
|
2008-09-10 11:03:30 -04:00
|
|
|
clearlooks = env.Clone()
|
2008-06-02 17:41:35 -04:00
|
|
|
|
2008-12-12 09:43:24 -05:00
|
|
|
clearlooks.Replace(CCFLAGS = ' `pkg-config --cflags gtk+-2.0` ',
|
|
|
|
LINKFLAGS = ' `pkg-config --libs gtk+-2.0` ')
|
2008-06-02 17:41:35 -04:00
|
|
|
|
|
|
|
if env['GTKOSX']:
|
|
|
|
clearlooks.Append (CCFLAGS = '-DGTKOSX')
|
|
|
|
|
|
|
|
libclearlooks = clearlooks.SharedLibrary('clearlooks', libclearlooks_files)
|
|
|
|
|
|
|
|
usable_libclearlooks = clearlooks.Install ('engines', libclearlooks)
|
|
|
|
Default (usable_libclearlooks)
|
|
|
|
|
|
|
|
env.Alias('install',
|
2008-12-12 09:43:24 -05:00
|
|
|
env.Install(os.path.join(install_prefix,env['LIBDIR'], 'ardour2', 'engines'),
|
2008-06-02 17:41:35 -04:00
|
|
|
libclearlooks))
|
|
|
|
|
|
|
|
env.Alias('tarball', env.Distribute (env['DISTTREE'],
|
2008-12-12 09:43:24 -05:00
|
|
|
[ 'SConscript', 'bits.c'] +
|
2008-06-02 17:41:35 -04:00
|
|
|
libclearlooks_files +
|
|
|
|
glob.glob('*.h')
|
|
|
|
))
|