-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
45 lines (38 loc) · 941 Bytes
/
meson.build
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
39
40
41
42
43
44
45
project('glshell', 'c',
version : '0.1.0',
default_options : [
'warning_level=3',
'b_lto=true',
]
)
cc = meson.get_compiler('c')
add_global_arguments('-DPROJECT_NAME="glshell"', language : 'c')
add_global_arguments('-DPROJECT_VERSION="0.1.0"', language : 'c')
src = [
'src/args.c',
'src/glshell.c',
'src/main.c',
]
wayland_client = dependency('wayland-client')
wayland_egl = dependency('wayland-egl')
wayland_protocols = dependency('wayland-protocols')
subdir('protocols')
deps = [
wayland_client,
wayland_egl,
wayland_protocols,
client_protos,
dependency('glew'),
cc.find_library('m', required : false),
cc.find_library('EGL', required : true),
cc.find_library('GL', required : true),
]
inc = include_directories('include')
stb = include_directories('stb', is_system : true)
exe = executable('glshell', src,
include_directories : [
inc,
stb
],
dependencies : deps,
install : true)