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'
49 'slider_controller.cc',
58 autowaf.set_options(opt)
61 conf.load ('compiler_cxx')
62 autowaf.configure(conf)
63 autowaf.check_pkg(conf, 'cairomm-1.0', uselib_store='CAIROMM', atleast_version='1.8.4')
67 if bld.is_defined ('INTERNAL_SHARED_LIBS'):
68 obj = bld.shlib(features = 'cxx cxxshlib', source=widgets_sources)
69 obj.defines = [ 'LIBWIDGETS_DLL_EXPORTS=1' ]
71 obj = bld.stlib(features = 'cxx cxxstlib', source=widgets_sources)
72 obj.cxxflags = [ '-fPIC' ]
73 obj.cflags = [ '-fPIC' ]
76 obj.export_includes = ['.']
78 obj.uselib = 'SIGCPP CAIROMM GTKMM BOOST XML'
79 obj.use = [ 'libpbd', 'libgtkmm2ext' ]
80 obj.name = 'libwidgets'
81 obj.target = 'widgets'
82 obj.vnum = WIDGETS_LIB_VERSION
83 obj.install_path = bld.env['LIBDIR']
84 obj.defines += [ 'PACKAGE="' + I18N_PACKAGE + '"' ]