meson: introduce to meson build system
[platform/upstream/efl.git] / src / modules / ecore_evas / meson.build
1 engines = [
2 ['cocoa', ['cocoa']],
3 ['drm', ['drm']],
4 ['fb', ['fb']],
5 ['sdl', ['sdl']],
6 ['wayland', ['wl']],
7 #['win32', ['ecore_win32']],
8 ['x', ['x11']],
9 ]
10
11 engines += [
12   ['tbm', ['tbm']],
13 ]
14
15 if sys_windows == false
16   engines += [['extn', []]]
17 endif
18
19
20 foreach engine_conf : engines
21   engine = engine_conf[0]
22   build = true
23   engine_deps = []
24
25   if engine_conf[1].length() > 0
26     build = get_option(engine_conf[1])
27   endif
28
29   if build
30     engine_include_dir = []
31     engine_src = []
32
33     config_h.set('BUILD_ECORE_EVAS_'+engine.to_upper(), '1')
34
35     mod_full_name = engine
36     mod_install_dir = join_paths(dir_lib, package_name, 'engines', engine, version_name)
37
38     subdir(join_paths('engines', engine))
39
40     module_files += join_paths(mod_install_dir, 'lib'+mod_full_name + '.' + sys_mod_extension)
41   endif
42 endforeach
43
44
45 if get_option('vnc-server')
46   mod_install_dir = join_paths(dir_lib, package_name, engine, version_name)
47
48   subdir(join_paths('vnc_server'))
49 endif