summaryrefslogtreecommitdiff
path: root/meson.build
blob: 9b20f9a2bc808034ce7dd90f1aa90f155f2178e2 (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
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')

wlhangul_files = files('main.c')

subdir('protocol')

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