(1) push a locate all the way through the processing heirarchy so that MIDI output...
[ardour.git] / libs / gnomecanvas / wscript
1 #!/usr/bin/env python
2 import autowaf
3 import os
4
5 # Version of this package (even if built as a child)
6 MAJOR = '2'
7 MINOR = '30'
8 MICRO = '1'
9 LIBGNOMECANVAS_VERSION = "%s.%s.%s" % (MAJOR, MINOR, MICRO)
10
11 # Library version (UNIX style major, minor, micro)
12 # major increment <=> incompatible changes
13 # minor increment <=> compatible changes (additions)
14 # micro increment <=> no interface changes
15 LIBGNOMECANVAS_LIB_VERSION = '0.0.0'
16
17 # Variables for 'waf dist'
18 APPNAME = 'libgnomecanvas'
19 VERSION = LIBGNOMECANVAS_VERSION
20
21 # Mandatory variables
22 srcdir = '.'
23 blddir = 'build'
24
25 path_prefix = 'libs/gnomecanvas/'
26
27 libgnomecanvas_sources = [
28         'libgnomecanvas/gnome-canvas-bpath.c',
29         'libgnomecanvas/gnome-canvas.c',
30         'libgnomecanvas/gnome-canvas-clipgroup.c',
31         'libgnomecanvas/gnome-canvas-line.c',
32         'libgnomecanvas/gnome-canvas-path-def.c',
33         'libgnomecanvas/gnome-canvas-pixbuf.c',
34         'libgnomecanvas/gnome-canvas-polygon.c',
35         'libgnomecanvas/gnome-canvas-rect-ellipse.c',
36         'libgnomecanvas/gnome-canvas-rich-text.c',
37         'libgnomecanvas/gnome-canvas-shape.c',
38         'libgnomecanvas/gnome-canvas-text.c',
39         'libgnomecanvas/gnome-canvas-util.c',
40         'libgnomecanvas/gnome-canvas-widget.c',
41         'libgnomecanvas/libgnomecanvastypes.c'
42         ]
43
44 def set_options(opt):
45     autowaf.set_options(opt)
46
47 def configure(conf):
48     autowaf.configure(conf)
49     conf.check_tool('compiler_cc')
50     autowaf.check_pkg(conf, 'gtk+-2.0', uselib_store='GTK', atleast_version='2.18')
51     autowaf.check_pkg(conf, 'libart-2.0', uselib_store='LIBART', atleast_version='2.3')
52
53 def build(bld):
54     # Library
55     obj              = bld.new_task_gen('cc', 'shlib')
56     obj.source       = libgnomecanvas_sources
57     obj.export_incdirs = ['.']
58     obj.includes     = ['.']
59     obj.name         = 'libgnomecanvas-2'
60     obj.target       = 'gnomecanvas-2'
61     obj.uselib       = 'GLIB GTK LIBART'
62     obj.vnum         = LIBGNOMECANVAS_LIB_VERSION
63     obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')
64
65 def shutdown():
66     autowaf.shutdown()