summaryrefslogtreecommitdiff
path: root/src/modules/ecore_evas/meson.build
blob: 7a9d6979da7bdf1a36f86c8c900e6eaf7097f112 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
engines = [
['cocoa', ['cocoa']],
['drm', ['drm']],
['fb', ['fb']],
['sdl', ['sdl']],
['wayland', ['wl']],
['x', ['x11']],
]

if sys_windows == false
  engines += [['extn', []]]
else
  engines += [['win32', []]]
endif


foreach engine_conf : engines
  engine = engine_conf[0]
  build = true
  engine_deps = []

  if engine_conf[1].length() > 0
    build = get_option(engine_conf[1])
  endif

  if build
    engine_include_dir = []
    engine_src = []

    config_h.set('BUILD_ECORE_EVAS_'+engine.to_upper(), '1')

    mod_full_name = engine
    mod_install_dir = join_paths(dir_lib, package_name, 'engines', engine, version_name)

    subdir(join_paths('engines', engine))

    module_files += join_paths(mod_install_dir, 'lib'+mod_full_name + '.' + sys_mod_extension)
  endif
endforeach


if get_option('vnc-server')
  mod_install_dir = join_paths(dir_lib, package_name, engine, version_name)

  subdir(join_paths('vnc_server'))
endif