summaryrefslogtreecommitdiff
path: root/src/modules/ecore_imf/meson.build
blob: 97f021adff7eb6961045c072354a23273ffcdf5e (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
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('xim') == false
    config_h.set('ENABLE_'+mod_name.to_upper(), '1')
  endif
  if loader_disabler.contains(mod_name) == false
    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