2019-04-05 13:11:01 +03:00
|
|
|
if not get_option('backend-headless')
|
|
|
|
subdir_done()
|
|
|
|
endif
|
|
|
|
|
|
|
|
config_h.set('BUILD_HEADLESS_COMPOSITOR', '1')
|
|
|
|
|
|
|
|
srcs_headless = [
|
|
|
|
'headless.c',
|
|
|
|
presentation_time_server_protocol_h,
|
|
|
|
]
|
|
|
|
plugin_headless = shared_library(
|
|
|
|
'headless-backend',
|
|
|
|
srcs_headless,
|
2019-04-05 17:09:28 +03:00
|
|
|
include_directories: common_inc,
|
2022-07-13 16:03:44 +03:00
|
|
|
dependencies: [
|
|
|
|
dep_libweston_private,
|
|
|
|
dep_libdrm_headers,
|
|
|
|
dep_lib_cairo_shared,
|
2022-12-08 18:15:21 +03:00
|
|
|
dep_lib_gl_borders,
|
2022-07-13 16:03:44 +03:00
|
|
|
],
|
2019-04-05 13:11:01 +03:00
|
|
|
name_prefix: '',
|
|
|
|
install: true,
|
|
|
|
install_dir: dir_module_libweston,
|
|
|
|
)
|
|
|
|
env_modmap += 'headless-backend.so=@0@;'.format(plugin_headless.full_path())
|
|
|
|
install_headers(backend_headless_h, subdir: dir_include_libweston_install)
|