summaryrefslogtreecommitdiff
path: root/libs/gnomecanvas/wscript
blob: 346b79921c2e2d2ee07b3befe246973dcfda4448 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/usr/bin/env python
import 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
srcdir = '.'
blddir = '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 set_options(opt):
	autowaf.set_options(opt)

def configure(conf):
	autowaf.configure(conf)
	conf.check_tool('compiler_cc')
	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.new_task_gen('cc', 'shlib')
	obj.source       = libgnomecanvas_sources
	obj.export_incdirs = ['.']
        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()