Rename timeline-object.h to libweston/timeline-object.h

This patch sets up the stage for similarly renaming compositor.h which will
justify this. That patch will be big, so moving timeline-object.h first makes
it easy to see the changes to the build and install directives.

This and all the following moves essentially break the API, so libweston major
is bumped.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
This commit is contained in:
Pekka Paalanen 2019-03-28 16:35:56 +02:00
parent cb74afd482
commit a78cf77582
6 changed files with 14 additions and 6 deletions

View File

@ -0,0 +1,4 @@
install_headers(
'timeline-object.h',
subdir: dir_include_libweston_install
)

1
include/meson.build Normal file
View File

@ -0,0 +1 @@
subdir('libweston')

View File

@ -44,7 +44,7 @@ extern "C" {
#include "matrix.h"
#include "config-parser.h"
#include "zalloc.h"
#include "timeline-object.h"
#include <libweston/timeline-object.h>
struct weston_geometry {
int32_t x, y;

View File

@ -59,7 +59,6 @@ srcs_libweston = [
install_headers(
'compositor.h',
'plugin-registry.h',
'timeline-object.h',
'windowed-output-api.h',
'../shared/config-parser.h',
'../shared/matrix.h',
@ -78,7 +77,7 @@ endif
lib_weston = shared_library(
'weston-@0@'.format(libweston_major),
srcs_libweston,
include_directories: include_directories('..', '../shared'),
include_directories: [ include_directories('..', '../shared'), public_inc ],
link_args: [ '-Wl,-export-dynamic' ],
install: true,
version: '0.0.@0@'.format(libweston_revision),
@ -88,7 +87,7 @@ lib_weston = shared_library(
dep_libweston = declare_dependency(
link_with: lib_weston,
include_directories: include_directories('.'),
include_directories: [ include_directories('.'), public_inc ],
dependencies: deps_libweston
)
@ -97,7 +96,7 @@ dep_libweston = declare_dependency(
# https://github.com/mesonbuild/meson/pull/5167
# in hopefully Meson 0.51.
dep_libweston_h = declare_dependency(
include_directories: include_directories('.'),
include_directories: [ include_directories('.'), public_inc ],
dependencies: [
dep_pixman.partial_dependency(compile_args: true),
dep_xkbcommon.partial_dependency(compile_args: true),

View File

@ -10,7 +10,7 @@ project('weston',
license: 'MIT/Expat',
)
libweston_major = 6
libweston_major = 7
# libweston_revision is manufactured to follow the autotools build's
# library file naming, thanks to libtool
@ -31,6 +31,7 @@ dir_prefix = get_option('prefix')
dir_bin = join_paths(dir_prefix, get_option('bindir'))
dir_data = join_paths(dir_prefix, get_option('datadir'))
dir_include_libweston = 'libweston-@0@'.format(libweston_major)
dir_include_libweston_install = join_paths(dir_include_libweston, 'libweston')
dir_lib = join_paths(dir_prefix, get_option('libdir'))
dir_libexec = join_paths(dir_prefix, get_option('libexecdir'))
dir_module_weston = join_paths(dir_lib, 'weston')
@ -40,6 +41,8 @@ dir_lib_pc = join_paths(dir_lib, 'pkgconfig')
dir_man = join_paths(dir_prefix, get_option('mandir'))
dir_protocol_libweston = 'libweston/protocols'
public_inc = include_directories('include')
pkgconfig = import('pkgconfig')
libweston_version_h = configuration_data()
@ -149,6 +152,7 @@ dep_libdrm = dependency('libdrm', version: '>= 2.4.68')
dep_libdrm_headers = dep_libdrm.partial_dependency(compile_args: true)
dep_threads = dependency('threads')
subdir('include')
subdir('protocol')
subdir('shared')
subdir('libweston')