-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathmeson.build
59 lines (44 loc) · 1.27 KB
/
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
project('flutter wlroots', 'c', 'cpp')
cc = meson.get_compiler('c')
if get_option('flutter_compositor')
add_project_arguments('-DFLUTTER_COMPOSITOR', language : 'c')
endif
embedder_dep = subproject('flutter_embedder').get_variable('embedder_dep')
wlroots_dep = subproject('wlroots', default_options: 'examples=false').get_variable('wlroots')
threads_dep = dependency('threads')
#wlroots_dep = dependency('wlroots')
wayland_server_dep = dependency('wayland-server')
glesv2_dep = dependency('glesv2')
egl_dep = dependency('egl')
fwr_src = []
fwr_deps = [
embedder_dep,
wlroots_dep,
wayland_server_dep,
glesv2_dep,
egl_dep,
threads_dep,
]
builtin_plugins = get_option('builtin_plugins')
foreach builtin_plugin : builtin_plugins
add_project_arguments('-DFWR_BUILTIN_PLUGIN_' + builtin_plugin.to_upper(), language: 'c')
endforeach
subdir('src')
subdir('include')
fwr_inc = include_directories('include')
lib_fwr = library(
'flutter_wlroots',
fwr_src,
dependencies : fwr_deps,
include_directories : [fwr_inc],
install: true,
)
flutter_wlroots = declare_dependency(
link_with : lib_fwr,
dependencies : fwr_deps,
include_directories : fwr_inc,
)
meson.override_dependency('flutter_wlroots', flutter_wlroots)
if get_option('examples')
subdir('example')
endif