2 from waflib.extras import autowaf as autowaf
3 from waflib import Options
4 from waflib import TaskGen
7 # Version of this package (even if built as a child)
11 WIDGETS_VERSION = "%s.%s.%s" % (MAJOR, MINOR, MICRO)
13 # Library version (UNIX style major, minor, micro)
14 # major increment <=> incompatible changes
15 # minor increment <=> compatible changes (additions)
16 # micro increment <=> no interface changes
17 WIDGETS_LIB_VERSION = '0.0.0'
19 # Variables for 'waf dist'
21 VERSION = WIDGETS_VERSION
22 I18N_PACKAGE = 'libwidgets'
42 'slider_controller.cc',
48 autowaf.set_options(opt)
51 conf.load ('compiler_cxx')
52 autowaf.configure(conf)
53 autowaf.check_pkg(conf, 'cairomm-1.0', uselib_store='CAIROMM', atleast_version='1.8.4')
57 if bld.is_defined ('INTERNAL_SHARED_LIBS'):
58 obj = bld.shlib(features = 'cxx cxxshlib', source=widgets_sources)
59 obj.defines = [ 'LIBWIDGETS_DLL_EXPORTS=1' ]
61 obj = bld.stlib(features = 'cxx cxxstlib', source=widgets_sources)
62 obj.cxxflags = [ '-fPIC' ]
63 obj.cflags = [ '-fPIC' ]
66 obj.export_includes = ['.']
68 obj.uselib = 'SIGCPP CAIROMM GTKMM BOOST XML'
69 obj.use = [ 'libpbd', 'libcanvas', 'libgtkmm2ext' ]
70 obj.name = 'libwidgets'
71 obj.target = 'widgets'
72 obj.vnum = WIDGETS_LIB_VERSION
73 obj.install_path = bld.env['LIBDIR']
74 obj.defines += [ 'PACKAGE="' + I18N_PACKAGE + '"' ]