how about that ... a monitor/main section .. GUI is still unfinished .. several small...
[ardour2.git] / libs / gtkmm2ext / wscript
blob1f8144294be0f057f1293d6d318d4184668c3017
1 #!/usr/bin/env python
2 import autowaf
3 import os
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)
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'
17 # Variables for 'waf dist'
18 APPNAME = 'gtkmm2ext'
19 VERSION = GTKMM2EXT_VERSION
21 gtkmm2ext_sources = [
22 'actions.cc',
23 'auto_spin.cc',
24 'barcontroller.cc',
25 'binding_proxy.cc',
26 'cell_renderer_pixbuf_multi.cc',
27 'cell_renderer_pixbuf_toggle.cc',
28 'choice.cc',
29 'click_box.cc',
30 'dndtreeview.cc',
31 'fastmeter.cc',
32 'focus_entry.cc',
33 'grouped_buttons.cc',
34 'gtk_ui.cc',
35 'idle_adjustment.cc',
36 'keyboard.cc',
37 'motionfeedback.cc',
38 'pixfader.cc',
39 'pixscroller.cc',
40 'popup.cc',
41 'prompter.cc',
42 'scroomer.cc',
43 'selector.cc',
44 'slider_controller.cc',
45 'stateful_button.cc',
46 'tearoff.cc',
47 'textviewer.cc',
48 'utils.cc',
49 'version.cc',
50 'window_title.cc'
53 # Mandatory variables
54 srcdir = '.'
55 blddir = 'build'
57 path_prefix = 'libs/gtkmm2ext/'
59 def set_options(opt):
60 autowaf.set_options(opt)
62 def configure(conf):
63 autowaf.build_version_files(path_prefix+'gtkmm2ext/version.h', path_prefix+'version.cc',
64 'libgtkmm2ext', MAJOR, MINOR, MICRO)
65 autowaf.configure(conf)
66 conf.check_tool('compiler_cxx')
67 autowaf.check_pkg(conf, 'gtkmm-2.4', uselib_store='GTKMM', atleast_version='2.8')
68 autowaf.check_pkg(conf, 'gtk+-2.0', uselib_store='GTK', atleast_version='2.12.1')
71 def build(bld):
72 obj = bld.new_task_gen(features = 'cc cxx cshlib')
73 obj.source = gtkmm2ext_sources
74 obj.export_incdirs = ['.']
75 obj.includes = ['.']
76 obj.name = 'libgtkmm2ext'
77 obj.target = 'gtkmm2ext'
78 obj.uselib = 'GTKMM GTK GTKOSX OSX GDK'
79 obj.uselib_local = 'libpbd'
80 obj.vnum = GTKMM2EXT_LIB_VERSION
81 obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')
82 obj.cxxflags = [
83 '-DPACKAGE="libgtkmm2ext"',
84 '-DLOCALEDIR="' + os.path.join(
85 os.path.normpath(bld.env['DATADIRNAME']), 'locale') + '"']
86 if bld.env['GTKOSX']:
87 obj.source += ['sync-menu.c']
89 def shutdown():
90 autowaf.shutdown()