ignore unpaired noteoff's when writing part of a MidiModel to a new source. in realit...
[ardour2.git] / libs / gtkmm2ext / wscript
blobfa5dea50e076993f2a2587eb114245b318ce105a
1 #!/usr/bin/env python
2 import autowaf
3 import os
4 import glob
6 # Version of this package (even if built as a child)
7 MAJOR = '0'
8 MINOR = '8'
9 MICRO = '3'
10 GTKMM2EXT_VERSION = "%s.%s.%s" % (MAJOR, MINOR, MICRO)
12 # Library version (UNIX style major, minor, micro)
13 # major increment <=> incompatible changes
14 # minor increment <=> compatible changes (additions)
15 # micro increment <=> no interface changes
16 GTKMM2EXT_LIB_VERSION = '0.8.3'
18 # Variables for 'waf dist'
19 APPNAME = 'gtkmm2ext'
20 VERSION = GTKMM2EXT_VERSION
22 gtkmm2ext_sources = [
23 'actions.cc',
24 'application.cc',
25 'auto_spin.cc',
26 'barcontroller.cc',
27 'binding_proxy.cc',
28 'bindable_button.cc',
29 'bindings.cc',
30 'cairocell.cc',
31 'cell_renderer_pixbuf_multi.cc',
32 'cell_renderer_pixbuf_toggle.cc',
33 'choice.cc',
34 'click_box.cc',
35 'debug.cc',
36 'dndtreeview.cc',
37 'fastmeter.cc',
38 'focus_entry.cc',
39 'grouped_buttons.cc',
40 'gtk_ui.cc',
41 'gtkapplication.c',
42 'idle_adjustment.cc',
43 'keyboard.cc',
44 'motionfeedback.cc',
45 'prolooks_helpers.c',
46 'pixfader.cc',
47 'pixscroller.cc',
48 'popup.cc',
49 'prompter.cc',
50 'scroomer.cc',
51 'selector.cc',
52 'slider_controller.cc',
53 'stateful_button.cc',
54 'tearoff.cc',
55 'textviewer.cc',
56 'treeutils.cc',
57 'utils.cc',
58 'version.cc',
59 'window_title.cc'
62 # Mandatory variables
63 srcdir = '.'
64 blddir = 'build'
66 path_prefix = 'libs/gtkmm2ext/'
68 def set_options(opt):
69 autowaf.set_options(opt)
71 def configure(conf):
72 autowaf.build_version_files(path_prefix+'gtkmm2ext/version.h', path_prefix+'version.cc',
73 'libgtkmm2ext', MAJOR, MINOR, MICRO)
74 autowaf.configure(conf)
75 conf.check_tool('compiler_cxx')
76 autowaf.check_pkg(conf, 'gtkmm-2.4', uselib_store='GTKMM', atleast_version='2.8')
77 autowaf.check_pkg(conf, 'gtk+-2.0', uselib_store='GTK', atleast_version='2.12.1')
80 def build(bld):
81 obj = bld.new_task_gen(features = 'cc cxx cshlib')
82 obj.source = gtkmm2ext_sources
83 obj.export_incdirs = ['.']
84 obj.includes = ['.']
85 obj.name = 'libgtkmm2ext'
86 obj.target = 'gtkmm2ext'
87 obj.uselib = 'GTKMM GTK GTKOSX OSX GDK'
88 obj.uselib_local = 'libpbd'
89 obj.vnum = GTKMM2EXT_LIB_VERSION
90 obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')
91 obj.cxxflags = [
92 '-DPACKAGE="libgtkmm2ext"',
93 '-DLOCALEDIR="' + os.path.join(
94 os.path.normpath(bld.env['DATADIRNAME']), 'locale') + '"']
95 if bld.env['GTKOSX']:
96 obj.source += ['gtkapplication_quartz.mm']
97 else:
98 obj.source += ['gtkapplication_x11.c']
100 # i18n
101 if bld.env['ENABLE_NLS']:
102 mo_files = glob.glob (os.path.join (bld.get_curdir(), 'po/*.mo'))
103 for mo in mo_files:
104 lang = os.path.basename (mo).replace ('.mo', '')
105 bld.install_as (os.path.join(bld.env['PREFIX'], 'share', 'locale',
106 lang, 'LC_MESSAGES', 'libgtkmm2ext.mo'),
109 def i18n(bld):
110 autowaf.build_i18n(bld, '.', 'libs/gtkmm2ext', APPNAME, gtkmm2ext_sources)
112 def shutdown():
113 autowaf.shutdown()