2019-10-01 05:57:04 -07:00
|
|
|
|
|
|
|
bindings = get_option('bindings')
|
2020-05-29 08:06:22 -07:00
|
|
|
bindings_order = ['lua', 'cxx', 'mono']
|
2019-10-01 05:57:04 -07:00
|
|
|
|
2019-11-06 10:41:13 -08:00
|
|
|
if (get_option('dotnet') and not bindings.contains('mono'))
|
|
|
|
message('dotnet support requires the C# bindings')
|
|
|
|
bindings += ['mono']
|
|
|
|
endif
|
|
|
|
|
2019-10-01 05:57:04 -07:00
|
|
|
if (bindings.contains('cxx') == false and bindings.contains('mono'))
|
|
|
|
subdirs = ['eina_cxx', 'eolian_cxx']
|
|
|
|
subdir(join_paths('cxx', 'eina_cxx'))
|
|
|
|
inc_dir = []
|
|
|
|
subdir(join_paths('cxx', 'eolian_cxx'))
|
|
|
|
eolian_cxx = declare_dependency(
|
|
|
|
include_directories: inc_dir,
|
|
|
|
dependencies : eolian
|
|
|
|
)
|
|
|
|
endif
|
|
|
|
|
2020-06-06 10:09:21 -07:00
|
|
|
if bindings.contains('lua') and not have_elua
|
|
|
|
error('Elua is necessary for Lua bindings')
|
|
|
|
endif
|
|
|
|
|
2019-10-01 05:57:04 -07:00
|
|
|
foreach binding : bindings_order
|
|
|
|
if bindings.contains(binding)
|
|
|
|
subdir(join_paths( binding))
|
|
|
|
endif
|
|
|
|
endforeach
|