2005-05-13 16:47:18 -04:00
|
|
|
# -*- python -*-
|
|
|
|
|
|
|
|
import os
|
|
|
|
import os.path
|
|
|
|
import glob
|
|
|
|
|
|
|
|
Import('env final_prefix install_prefix libraries i18n')
|
|
|
|
|
|
|
|
gtkmm2ext = env.Copy()
|
|
|
|
gtkmm2ext.Merge ([
|
|
|
|
libraries['sigc2'],
|
2006-07-05 15:47:25 -04:00
|
|
|
libraries['pbd'],
|
2005-05-13 16:47:18 -04:00
|
|
|
libraries['gtk2'],
|
|
|
|
libraries['glibmm2'],
|
|
|
|
libraries['pangomm'],
|
|
|
|
libraries['atkmm'],
|
|
|
|
libraries['gdkmm2'],
|
2007-11-12 18:44:49 -05:00
|
|
|
libraries['gtkmm2'],
|
|
|
|
libraries['cairomm']
|
2005-05-13 16:47:18 -04:00
|
|
|
])
|
|
|
|
|
|
|
|
#
|
|
|
|
# this defines the version number of libgtkmm2ext
|
|
|
|
#
|
|
|
|
|
|
|
|
domain = 'libgtkmm2ext'
|
|
|
|
|
2006-07-27 21:08:57 -04:00
|
|
|
gtkmm2ext.Append(DOMAIN=domain,MAJOR=0,MINOR=8,MICRO=3)
|
2005-05-13 16:47:18 -04:00
|
|
|
gtkmm2ext.Append(CXXFLAGS="-DPACKAGE=\\\"" + domain + "\\\"")
|
2007-11-12 18:44:49 -05:00
|
|
|
gtkmm2ext.Append(CXXFLAGS=["-DLIBSIGC_DISABLE_DEPRECATED", "-DGLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED", "-DGLIBMM_PROPERTIES_ENABLED"])
|
2006-07-27 21:08:57 -04:00
|
|
|
#gtkmm2ext.Append(CPPPATH='#libs/surfaces/control_protocol')
|
2005-05-13 16:47:18 -04:00
|
|
|
gtkmm2ext.Append(PACKAGE=domain)
|
|
|
|
gtkmm2ext.Append(POTFILE=domain + '.pot')
|
|
|
|
|
|
|
|
gtkmm2ext_files = Split("""
|
|
|
|
auto_spin.cc
|
|
|
|
barcontroller.cc
|
2006-07-13 23:43:32 -04:00
|
|
|
binding_proxy.cc
|
2005-05-13 16:47:18 -04:00
|
|
|
choice.cc
|
|
|
|
click_box.cc
|
2005-11-02 15:33:47 -05:00
|
|
|
dndtreeview.cc
|
2005-05-13 16:47:18 -04:00
|
|
|
fastmeter.cc
|
2007-01-09 18:24:54 -05:00
|
|
|
focus_entry.cc
|
2007-03-18 02:07:08 -04:00
|
|
|
grouped_buttons.cc
|
2005-05-13 16:47:18 -04:00
|
|
|
gtk_ui.cc
|
|
|
|
hexentry.cc
|
|
|
|
idle_adjustment.cc
|
2006-07-27 21:08:57 -04:00
|
|
|
pathlist.cc
|
2007-01-09 18:24:54 -05:00
|
|
|
pixfader.cc
|
2005-05-13 16:47:18 -04:00
|
|
|
pixscroller.cc
|
|
|
|
popup.cc
|
|
|
|
prompter.cc
|
|
|
|
selector.cc
|
|
|
|
slider_controller.cc
|
2005-12-21 16:37:18 -05:00
|
|
|
stateful_button.cc
|
2005-05-13 16:47:18 -04:00
|
|
|
tearoff.cc
|
|
|
|
textviewer.cc
|
|
|
|
utils.cc
|
|
|
|
version.cc
|
2007-04-12 19:20:37 -04:00
|
|
|
window_title.cc
|
2005-05-13 16:47:18 -04:00
|
|
|
""")
|
|
|
|
|
2006-11-19 11:45:16 -05:00
|
|
|
gtkmm2ext.VersionBuild(['version.cc','gtkmm2ext/version.h'], [])
|
2005-05-13 16:47:18 -04:00
|
|
|
|
|
|
|
gtkmm2ext.Append(CCFLAGS="-D_REENTRANT")
|
|
|
|
gtkmm2ext.Append(CCFLAGS="-DLOCALEDIR=\\\""+final_prefix+"/share/locale\\\"")
|
|
|
|
|
2006-04-25 16:23:50 -04:00
|
|
|
libgtkmm2ext = gtkmm2ext.SharedLibrary('gtkmm2ext', gtkmm2ext_files)
|
2005-05-13 16:47:18 -04:00
|
|
|
|
|
|
|
Default(libgtkmm2ext)
|
|
|
|
|
|
|
|
if env['NLS']:
|
|
|
|
i18n (gtkmm2ext, gtkmm2ext_files, env)
|
|
|
|
|
2007-01-09 18:24:54 -05:00
|
|
|
env.Alias('install', env.Install(os.path.join(install_prefix, env['LIBDIR'], 'ardour2'), libgtkmm2ext))
|
2006-04-25 20:45:27 -04:00
|
|
|
|
2005-05-13 16:47:18 -04:00
|
|
|
env.Alias('tarball', env.Distribute (env['DISTTREE'],
|
|
|
|
[ 'SConscript', 'i18n.h', 'gettext.h'] +
|
|
|
|
gtkmm2ext_files +
|
|
|
|
glob.glob('po/*.po') +
|
|
|
|
glob.glob('gtkmm2ext/*.h')))
|