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