summaryrefslogtreecommitdiff
path: root/cursor/meson.build
blob: ae85ed9b8e246f80da31321ec99633c05730af79 (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
icondir = get_option('icon_directory')
if icondir == ''
	icondir = join_paths(get_option('prefix'), get_option('datadir'), 'icons')
endif

wayland_cursor = library(
	'wayland-cursor',
	sources: [
		'wayland-cursor.c',
		'os-compatibility.c',
		'xcursor.c',
	],
	version: '0.0.0',
	dependencies: [ wayland_client_dep ],
	c_args: [ '-DICONDIR="@0@"'.format(icondir) ],
	install: true,
)

install_headers('wayland-cursor.h')

pkgconfig.generate(
	name: 'Wayland Cursor',
	description: 'Wayland cursor helper library',
	version: meson.project_version(),
	libraries: wayland_cursor,
	filebase: 'wayland-cursor',
)