xref: /aosp_15_r20/external/wayland/egl/meson.build (revision 84e872a0dc482bffdb63672969dd03a827d67c73)
1wayland_egl = library(
2	'wayland-egl',
3	sources: [
4		'wayland-egl.c',
5		wayland_client_protocol_h
6	],
7	include_directories: src_inc,
8	version: meson.project_version(),
9	install: true
10)
11
12executable('wayland-egl-abi-check', 'wayland-egl-abi-check.c')
13
14nm_path = find_program('nm').full_path()
15
16test(
17	'wayland-egl symbols check',
18	find_program('wayland-egl-symbols-check'),
19	env: [
20		'WAYLAND_EGL_LIB=@0@'.format(wayland_egl.full_path()),
21		'NM=@0@'.format(nm_path)
22	]
23)
24
25install_headers([
26	'wayland-egl.h',
27	'wayland-egl-core.h',
28	'wayland-egl-backend.h'
29])
30
31pkgconfig.generate(
32	name: 'wayland-egl',
33	description: 'Frontend wayland-egl library',
34	version: '18.1.0',
35	requires: 'wayland-client',
36	libraries: wayland_egl
37)
38
39pkgconfig.generate(
40	name: 'wayland-egl-backend',
41	description: 'Backend wayland-egl interface',
42	version: '3'
43)
44
45wayland_egl_dep = declare_dependency(
46	link_with: wayland_egl,
47	include_directories: [ root_inc, include_directories('.') ],
48)
49
50if meson.version().version_compare('>= 0.54.0')
51	meson.override_dependency('wayland-egl', wayland_egl_dep)
52endif
53