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