summaryrefslogtreecommitdiff
path: root/libs/clearlooks-newer
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2009-10-05 02:43:30 +0000
committerCarl Hetherington <carl@carlh.net>2009-10-05 02:43:30 +0000
commit57d05c4c318cf6bd28c95773649525690459e79f (patch)
tree9aa83b356c1870bb2fb9eb05522035ad365891c6 /libs/clearlooks-newer
parent9962fd7a24ff49c8766905af9c595bb88e9b9e4c (diff)
Build clearlooks-newer for OSX
git-svn-id: svn://localhost/ardour2/branches/3.0@5727 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/clearlooks-newer')
-rw-r--r--libs/clearlooks-newer/wscript48
1 files changed, 48 insertions, 0 deletions
diff --git a/libs/clearlooks-newer/wscript b/libs/clearlooks-newer/wscript
new file mode 100644
index 0000000000..b33d216032
--- /dev/null
+++ b/libs/clearlooks-newer/wscript
@@ -0,0 +1,48 @@
+#!/usr/bin/env python
+import autowaf
+import os
+import sys
+
+srcdir = '.'
+blddir = 'build'
+
+path_prefix = 'libs/clearlooks-newer'
+
+def set_options(opt):
+ autowaf.set_options(opt)
+
+def configure(conf):
+ autowaf.configure(conf)
+ conf.check_tool('compiler_cc')
+
+def build(bld):
+ obj = bld.new_task_gen('cc', 'shlib')
+ 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.new_task_gen(target = 'engines', rule = 'mkdir -p ${TGT} && rm -f ${TGT}/libclearlooks.so && ln -s ../libclearlooks.dylib ${TGT}/libclearlooks.so')
+
+
+def shutdown():
+ autowaf.shutdown()
+