2009-10-04 22:43:30 -04:00
|
|
|
#!/usr/bin/env python
|
2011-09-29 15:17:54 -04:00
|
|
|
from waflib.extras import autowaf as autowaf
|
2009-10-04 22:43:30 -04:00
|
|
|
import os
|
|
|
|
import sys
|
|
|
|
|
2011-09-29 15:17:54 -04:00
|
|
|
def options(opt):
|
2022-01-25 11:43:36 -05:00
|
|
|
pass
|
2009-10-04 22:43:30 -04:00
|
|
|
|
|
|
|
def configure(conf):
|
2022-01-22 16:09:13 -05:00
|
|
|
pass
|
2009-10-04 22:43:30 -04:00
|
|
|
|
|
|
|
def build(bld):
|
2011-09-29 15:17:54 -04:00
|
|
|
obj = bld(features = 'c cshlib')
|
2009-10-04 22:43:30 -04:00
|
|
|
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 = '.'
|
2014-04-28 21:11:08 -04:00
|
|
|
obj.install_path = os.path.join(bld.env['LIBDIR'], 'engines')
|
2014-01-17 13:10:41 -05:00
|
|
|
autowaf.ensure_visible_symbols (obj, True)
|
2009-10-04 22:43:30 -04:00
|
|
|
|
|
|
|
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')
|
2011-09-29 15:17:54 -04:00
|
|
|
obj = bld(target = 'engines', rule = 'mkdir -p ${TGT} && rm -f ${TGT}/libclearlooks.so && ln -s ../libclearlooks.dylib ${TGT}/libclearlooks.so')
|
2015-02-19 05:33:46 -05:00
|
|
|
elif bld.env['build_target'] != 'mingw':
|
2013-02-26 13:54:49 -05:00
|
|
|
# this is a hack so that running ./ardev will work, since it sets GTK_PATH to include this dir and GTK will search {thisdir}/engines
|
|
|
|
obj = bld(target = 'engines', rule = 'mkdir -p ${TGT} && rm -f ${TGT}/libclearlooks.so && ln -s ../libclearlooks.so ${TGT}/libclearlooks.so')
|