add ctrl-click behaviour to DndVBox, though not generalized to use primary/secondary...
[ardour.git] / libs / gtkmm2ext / 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 = '0'
7 MINOR = '8'
8 MICRO = '3'
9 GTKMM2EXT_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 GTKMM2EXT_LIB_VERSION = '0.8.3'
16
17 # Variables for 'waf dist'
18 APPNAME = 'gtkmm2ext'
19 VERSION = GTKMM2EXT_VERSION
20
21 gtkmm2ext_sources = [
22         'auto_spin.cc',
23         'barcontroller.cc',
24         'binding_proxy.cc',
25         'cell_renderer_pixbuf_multi.cc',
26         'cell_renderer_pixbuf_toggle.cc',
27         'choice.cc',
28         'click_box.cc',
29         'dndtreeview.cc',
30         'fastmeter.cc',
31         'focus_entry.cc',
32         'grouped_buttons.cc',
33         'gtk_ui.cc',
34         'idle_adjustment.cc',
35         'pixfader.cc',
36         'pixscroller.cc',
37         'popup.cc',
38         'prompter.cc',
39         'scroomer.cc',
40         'selector.cc',
41         'slider_controller.cc',
42         'stateful_button.cc',
43         'tearoff.cc',
44         'textviewer.cc',
45         'utils.cc',
46         'version.cc',
47         'window_title.cc'
48 ]
49
50 # Mandatory variables
51 srcdir = '.'
52 blddir = 'build'
53
54 path_prefix = 'libs/gtkmm2ext/'
55
56 def set_options(opt):
57         autowaf.set_options(opt)
58
59 def configure(conf):
60         autowaf.build_version_files(path_prefix+'gtkmm2ext/version.h', path_prefix+'version.cc',
61                         'libgtkmm2ext', MAJOR, MINOR, MICRO)
62         autowaf.configure(conf)
63         conf.check_tool('compiler_cxx')
64         autowaf.check_pkg(conf, 'gtkmm-2.4', uselib_store='GTKMM', atleast_version='2.8')
65         autowaf.check_pkg(conf, 'gtk+-2.0', uselib_store='GTK', atleast_version='2.12.1')
66
67
68 def build(bld):
69         obj = bld.new_task_gen(features = 'cc cxx cshlib')
70         obj.source = gtkmm2ext_sources
71         obj.export_incdirs = ['.']
72         obj.includes     = ['.']
73         obj.name         = 'libgtkmm2ext'
74         obj.target       = 'gtkmm2ext'
75         obj.uselib       = 'GTKMM GTK GTKOSX OSX GDK'
76         obj.uselib_local = 'libpbd'
77         obj.vnum         = GTKMM2EXT_LIB_VERSION
78         obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')
79         obj.cxxflags     = [
80                         '-DPACKAGE="libgtkmm2ext"',
81                         '-DLOCALEDIR="' + os.path.join(
82                                 os.path.normpath(bld.env['DATADIRNAME']), 'locale') + '"']
83         if bld.env['GTKOSX']:
84                 obj.source      += ['sync-menu.c']
85
86 def shutdown():
87         autowaf.shutdown()
88