Use PBD debugging code for keyboard debugging.
[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         'actions.cc',
23         'application.cc',
24         'auto_spin.cc',
25         'barcontroller.cc',
26         'binding_proxy.cc',
27         'bindable_button.cc',
28         'bindings.cc',
29         'cell_renderer_pixbuf_multi.cc',
30         'cell_renderer_pixbuf_toggle.cc',
31         'choice.cc',
32         'click_box.cc',
33         'debug.cc',
34         'dndtreeview.cc',
35         'fastmeter.cc',
36         'focus_entry.cc',
37         'grouped_buttons.cc',
38         'gtk_ui.cc',
39         'gtkapplication.c',
40         'idle_adjustment.cc',
41         'keyboard.cc',
42         'motionfeedback.cc',
43         'prolooks_helpers.c',
44         'pixfader.cc',
45         'pixscroller.cc',
46         'popup.cc',
47         'prompter.cc',
48         'scroomer.cc',
49         'selector.cc',
50         'slider_controller.cc',
51         'stateful_button.cc',
52         'tearoff.cc',
53         'textviewer.cc',
54         'treeutils.cc',
55         'utils.cc',
56         'version.cc',
57         'window_title.cc'
58 ]
59
60 # Mandatory variables
61 srcdir = '.'
62 blddir = 'build'
63
64 path_prefix = 'libs/gtkmm2ext/'
65
66 def set_options(opt):
67         autowaf.set_options(opt)
68
69 def configure(conf):
70         autowaf.build_version_files(path_prefix+'gtkmm2ext/version.h', path_prefix+'version.cc',
71                         'libgtkmm2ext', MAJOR, MINOR, MICRO)
72         autowaf.configure(conf)
73         conf.check_tool('compiler_cxx')
74         autowaf.check_pkg(conf, 'gtkmm-2.4', uselib_store='GTKMM', atleast_version='2.8')
75         autowaf.check_pkg(conf, 'gtk+-2.0', uselib_store='GTK', atleast_version='2.12.1')
76
77
78 def build(bld):
79         obj = bld.new_task_gen(features = 'cc cxx cshlib')
80         obj.source = gtkmm2ext_sources
81         obj.export_incdirs = ['.']
82         obj.includes     = ['.']
83         obj.name         = 'libgtkmm2ext'
84         obj.target       = 'gtkmm2ext'
85         obj.uselib       = 'GTKMM GTK GTKOSX OSX GDK'
86         obj.uselib_local = 'libpbd'
87         obj.vnum         = GTKMM2EXT_LIB_VERSION
88         obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')
89         obj.cxxflags     = [
90                         '-DPACKAGE="libgtkmm2ext"',
91                         '-DLOCALEDIR="' + os.path.join(
92                                 os.path.normpath(bld.env['DATADIRNAME']), 'locale') + '"']
93         if bld.env['GTKOSX']:
94                 obj.source += ['gtkapplication_quartz.mm']
95         else:
96                 obj.source += ['gtkapplication_x11.c']
97
98 def shutdown():
99         autowaf.shutdown()
100