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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
|
srcs_weston = [
git_version_h,
'main.c',
'text-backend.c',
'weston-screenshooter.c',
'../shared/config-parser.c',
'../shared/option-parser.c',
'../shared/os-compatibility.c',
gen_text_input_server,
gen_text_input_impl,
gen_input_method_server,
gen_input_method_impl,
gen_shooter_server,
gen_shooter_impl,
]
deps_weston = [
dep_libweston,
dep_libinput,
dep_libdl,
]
if get_option('xwayland')
srcs_weston += 'xwayland.c'
config_h.set('XSERVER_PATH',
'"@0@"'.format(get_option('xwayland_path')))
endif
if get_option('libunwind')
deps_weston += dependency('libunwind')
config_h.set('HAVE_LIBUNWIND', '1')
endif
exe_weston = executable('weston',
srcs_weston,
include_directories:
include_directories('..', '../libweston', '../shared'),
link_args: [ '-export-dynamic' ],
dependencies: deps_weston,
install: true
)
install_headers('weston.h', subdir: 'weston')
if get_option('screenshare')
files_screenshare = [
'screen-share.c',
gen_fullscreen_shell_server,
gen_fullscreen_shell_client,
gen_fullscreen_shell_impl,
]
deps_screenshare = [
dep_libweston,
dep_wayland_client,
]
plugin_screenshare = shared_library('screen-share',
files_screenshare,
include_directories:
include_directories('..', '../libweston', '../shared'),
dependencies: deps_screenshare,
name_prefix: '',
install: true,
install_dir: dir_weston_module,
)
env_modmap += 'screen-share.so=@0@;'.format(plugin_screenshare.full_path())
endif
if get_option('color_management_lcms')
config_h.set('HAVE_LCMS', '1')
files_lcms = [
'cms-static.c',
'cms-helper.c',
]
deps_lcms = [
dep_libweston,
dependency('lcms2'),
]
plugin_lcms = shared_library('cms-static',
files_lcms,
include_directories:
include_directories('..', '../libweston', '../shared'),
dependencies: deps_lcms,
name_prefix: '',
install: true,
install_dir: dir_weston_module,
)
env_modmap += 'cms-static.so=@0@;'.format(plugin_lcms.full_path())
endif
if get_option('color_management_colord')
if not get_option('color_management_lcms')
error('LCMS must be enabled to support colord')
endif
files_colord = [
'cms-colord.c',
'cms-helper.c',
]
deps_colord = [
dep_libweston,
dependency('colord', version: '>= 0.1.27')
]
plugin_colord = shared_library('cms-colord',
files_colord,
include_directories:
include_directories('..', '../libweston', '../shared'),
dependencies: deps_colord,
name_prefix: '',
install: true,
install_dir: dir_weston_module,
)
env_modmap += 'cms-colord.so=@0@;'.format(plugin_colord.full_path())
endif
weston_ini_config = configuration_data()
weston_ini_config.set('bindir',
'@0@/@1@'.format(get_option('prefix'), get_option('bindir')))
weston_ini_config.set('libexecdir',
'@0@/@1@'.format(get_option('prefix'), get_option('libexecdir')))
weston_ini_config.set('abs_top_srcdir', meson.source_root())
weston_ini_config.set('abs_top_builddir', meson.build_root())
configure_file(input: '../weston.ini.in',
output: 'weston.ini',
install: true,
install_dir: '@0@/xdg/weston'.format(get_option('sysconfdir')),
configuration: weston_ini_config,
)
|