summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wl2/meson.build
blob: eb88e4770375e00356d11824ed6d8ad233aa76e8 (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
47
ecore_wl2_deps = [ecore, ecore_input, buildsystem]
ecore_wl2_pub_deps = [eina, ecore]
ecore_wl2_ext_deps = [dependency('wayland-client'), dependency('wayland-server'), dependency('xkbcommon'),
  wayland_protocol, libdrm, buildsystem_simple, dl, m]

ecore_wl2_header_src = [
  'Ecore_Wl2.h'
]

ecore_wl2_src = files([
  'ecore_wl2_internal.h',
  'ecore_wl2_subsurf.c',
  'ecore_wl2_dnd.c',
  'ecore_wl2_window.c',
  'ecore_wl2_input.c',
  'ecore_wl2_output.c',
  'ecore_wl2_display.c',
  'ecore_wl2.c',
  'ecore_wl2_private.h',
  'ecore_wl2_buffer.c',
  'ecore_wl2_surface.c'
])

ecore_wl2_lib = library('ecore_wl2',
    ecore_wl2_src, pub_eo_file_target,
    c_args : package_c_args,
    dependencies: ecore_wl2_deps + ecore_wl2_pub_deps + ecore_wl2_ext_deps,
    include_directories : config_dir,
    install: true,
    version : meson.project_version()
)

ecore_wl2 = declare_dependency(
  include_directories: [include_directories('.')],
  link_with: ecore_wl2_lib,
  sources : pub_eo_file_target + priv_eo_file_target,
  dependencies: ecore_wl2_pub_deps,
)

ecore_wl2_internal_headers = declare_dependency(
  include_directories: include_directories('.'),
  dependencies: [wayland_protocol_simple, libdrm, dependency('wayland-client'), dependency('wayland-server'), dependency('xkbcommon'),],
)

install_headers(ecore_wl2_header_src,
  install_dir : dir_package_include,
)