libweston: export weston_config API

Make it official that libweston will export the weston_config API, as requested
in https://gitlab.freedesktop.org/wayland/weston/merge_requests/29 .

There is no other way third party helper clients could access the API.

The autotools build has been accidentally exporting it all the time, but the
Meson build needed fixing.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
dev
Pekka Paalanen 6 years ago
parent 7261edfe36
commit 1ed3506b70
  1. 7
      README.md
  2. 2
      ivi-shell/meson.build
  3. 2
      libweston/meson.build
  4. 1
      shared/meson.build

@ -88,6 +88,13 @@ Libweston was first introduced in Weston 1.12, and is expected to
continue evolving through many Weston releases before it achieves a
stable API and feature completeness.
Libweston's primary purpose is exporting an API for creating Wayland
compositors. Libweston's secondary purpose is to export the weston_config API
so that third party plugins and helper programs can read `weston.ini` if they
want to. However, these two scopes are orthogonal and independent. At no point
will the compositor functionality use or depend on the weston_config
functionality.
API/ABI (in)stability and parallel installability
-------------------------------------------------

@ -30,7 +30,7 @@ if get_option('shell-ivi')
'hmi-controller',
srcs_ivi_hmi,
include_directories: include_directories('..', '../shared'),
dependencies: dep_libweston,
dependencies: [ dep_libweston, dep_libshared ],
name_prefix: '',
install: true,
install_dir: dir_module_weston

@ -4,7 +4,6 @@ deps_libweston = [
dep_libm,
dep_libdl,
dep_libdrm_headers,
dep_libshared,
dep_xkbcommon,
]
srcs_libweston = [
@ -75,6 +74,7 @@ lib_weston = shared_library(
link_args: [ '-export-dynamic' ],
install: true,
version: '0.0.@0@'.format(libweston_revision),
link_whole: lib_libshared,
dependencies: deps_libweston
)

@ -12,6 +12,7 @@ lib_libshared = static_library(
srcs_libshared,
include_directories: include_directories('..'),
dependencies: deps_libshared,
pic: true,
install: false
)
dep_libshared = declare_dependency(

Loading…
Cancel
Save