13
0
livetrax/libs/gnomecanvas/wscript
David Robillard c1ef7b14a3 Remove use of waf compat15 tool.
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
2011-09-29 19:58:05 +00:00

67 lines
2.0 KiB
Python

#!/usr/bin/env python
from waflib.extras import autowaf as autowaf
import os
# Version of this package (even if built as a child)
MAJOR = '2'
MINOR = '30'
MICRO = '1'
LIBGNOMECANVAS_VERSION = "%s.%s.%s" % (MAJOR, MINOR, MICRO)
# Library version (UNIX style major, minor, micro)
# major increment <=> incompatible changes
# minor increment <=> compatible changes (additions)
# micro increment <=> no interface changes
LIBGNOMECANVAS_LIB_VERSION = '0.0.0'
# Variables for 'waf dist'
APPNAME = 'libgnomecanvas'
VERSION = LIBGNOMECANVAS_VERSION
# Mandatory variables
top = '.'
out = 'build'
path_prefix = 'libs/gnomecanvas/'
libgnomecanvas_sources = [
'libgnomecanvas/gnome-canvas-bpath.c',
'libgnomecanvas/gnome-canvas.c',
'libgnomecanvas/gnome-canvas-clipgroup.c',
'libgnomecanvas/gnome-canvas-line.c',
'libgnomecanvas/gnome-canvas-path-def.c',
'libgnomecanvas/gnome-canvas-pixbuf.c',
'libgnomecanvas/gnome-canvas-polygon.c',
'libgnomecanvas/gnome-canvas-rect-ellipse.c',
'libgnomecanvas/gnome-canvas-rich-text.c',
'libgnomecanvas/gnome-canvas-shape.c',
'libgnomecanvas/gnome-canvas-text.c',
'libgnomecanvas/gnome-canvas-util.c',
'libgnomecanvas/gnome-canvas-widget.c',
'libgnomecanvas/libgnomecanvastypes.c'
]
def options(opt):
autowaf.set_options(opt)
def configure(conf):
conf.load('compiler_c')
autowaf.configure(conf)
autowaf.check_pkg(conf, 'gtk+-2.0', uselib_store='GTK', atleast_version='2.18')
autowaf.check_pkg(conf, 'libart-2.0', uselib_store='LIBART', atleast_version='2.3')
def build(bld):
# Library
obj = bld(features = 'c cshlib')
obj.source = libgnomecanvas_sources
obj.export_includes = ['.']
obj.includes = ['.']
obj.name = 'libgnomecanvas-2'
obj.target = 'gnomecanvas-2'
obj.uselib = 'GLIB GTK LIBART'
obj.vnum = LIBGNOMECANVAS_LIB_VERSION
obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')
def shutdown():
autowaf.shutdown()