summaryrefslogtreecommitdiff
path: root/src/modules/ecore_imf/meson.build
blob: 72ab44ff5152d92c07738c6e17c43144b75c4c53 (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
26
27
28
mods = []

if get_option('x11')
  mods +=['ibus', 'xim', 'scim']
endif

if get_option('wl')
  mods += ['wayland']
endif

loader_disabler = get_option('ecore-imf-loaders-disabler')

foreach mod_name : mods
  mod_src = []
  mod_deps = []

  if loader_disabler.contains(mod_name) == false
    if mod_name == 'ibus'
      if get_option('glib') == false
        error('Need glib enabled if ibus is enabled')
      endif
    endif
    mod_install_dir =  join_paths(dir_package_modules, mod_name, version_name)
    subdir(mod_name)
    module_files += join_paths(mod_install_dir, 'lib'+mod_name+'.'+sys_mod_extension)
    config_h.set('BUILD_ECORE_IMF_'+mod_name.to_upper(), '1')
  endif
endforeach