summaryrefslogtreecommitdiff
path: root/meson.build
blob: 83ac4d3f97965d40420be49bc7ac89aeaa2db9bb (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
project(
	'wlhangul',
	'c',
	version: '0.0.0',
	license: 'MIT',
	meson_version: '>=0.51.0',
	default_options: [
		'c_std=c99',
		'warning_level=2',
		'werror=true',
	],
)

cc = meson.get_compiler('c')

add_project_arguments(cc.get_supported_arguments([
	'-Wno-missing-braces',
	'-Wno-unused-parameter',
]), language: 'c')

wlhangul_inc = include_directories('include')

libhangul = dependency('libhangul')
wayland_client = dependency('wayland-client')
wayland_protocols = dependency('wayland-protocols')
xkbcommon = dependency('xkbcommon')

wlhangul_files = files('main.c', 'utf8.c')

subdir('protocol')

executable(
	meson.project_name(),
	wlhangul_files,
	include_directories: wlhangul_inc,
	dependencies: [libhangul, wayland_client, xkbcommon],
	install: true,
)