summaryrefslogtreecommitdiff
path: root/src/bindings/meson.build
blob: b59e084d8a58830cce1e22c2d2e31751effad858 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

bindings = get_option('bindings')
bindings_order = ['luajit', 'cxx', 'mono']

if (get_option('dotnet') and not bindings.contains('mono'))
  message('dotnet support requires the C# bindings')
  bindings += ['mono']
endif

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

foreach binding : bindings_order
  if bindings.contains(binding)
    subdir(join_paths( binding))
  endif
endforeach