[planner: 1/2] libplanner: Make it a private library with no API promises
- From: Mart Raudsepp <mraudsepp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [planner: 1/2] libplanner: Make it a private library with no API promises
- Date: Sat, 31 Jul 2021 13:16:45 +0000 (UTC)
commit 88642e714fe1e701f4cf4b5d73c01a9518fe773c
Author: Mart Raudsepp <leio gentoo org>
Date: Thu Jul 29 23:09:12 2021 +0300
libplanner: Make it a private library with no API promises
Stop installing the headers and pkgconfig file, and bump library soname
once, as API was broken and to differentiate from old public libplanner
more clearly.
The library itself is moved to pkglibdir, to make it clear that it is
for private use only.
libplanner will be subject to major refactorings in the future, so we can
not commit to API stability in the short-term. Please let us know via
the issue tracker if you'd see benefit in a public libplanner again and
for what purpose.
Closes #238
libplanner/meson.build | 36 +++---------------------------------
src/meson.build | 1 +
2 files changed, 4 insertions(+), 33 deletions(-)
---
diff --git a/libplanner/meson.build b/libplanner/meson.build
index 59784559..976dec27 100644
--- a/libplanner/meson.build
+++ b/libplanner/meson.build
@@ -22,28 +22,6 @@ libplanner_srcs = [
'mrp-types.c',
]
-libplanner_installed_headers = [
- 'planner.h',
- 'mrp-application.h',
- 'mrp-assignment.h',
- 'mrp-calendar.h',
- 'mrp-day.h',
- 'mrp-group.h',
- 'mrp-object.h',
- 'mrp-project.h',
- 'mrp-property.h',
- 'mrp-resource.h',
- 'mrp-storage-module.h',
- 'mrp-task.h',
- 'mrp-relation.h',
- 'mrp-types.h',
- 'mrp-time.h',
- 'mrp-error.h',
- 'mrp-paths.h',
-]
-
-install_headers(libplanner_installed_headers, subdir: 'planner-1.0' / 'libplanner')
-
libplanner_inc = include_directories('.')
mrp_marshal_srcs = gnome.genmarshal('mrp-marshal',
sources: 'mrp-marshal.list',
@@ -54,17 +32,9 @@ libplanner_library = shared_library('planner-1',
dependencies: [libplanner_deps],
include_directories: [toplevel_inc, libplanner_inc],
install: true,
- soversion: '0',
- version: '0.0.0',
-)
-
-pkg.generate(libplanner_library,
- libraries: libplanner_deps,
- name: 'libplanner',
- description: 'Support library for Planner',
- filebase: 'libplanner-1',
- subdirs: 'planner-1.0',
- variables: 'exec_prefix=${prefix}',
+ install_dir: planner_pkglibdir,
+ soversion: '1',
+ version: '1.0.0',
)
libplanner_dep = declare_dependency(
diff --git a/src/meson.build b/src/meson.build
index 95ac6c9e..e3e867f9 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -95,6 +95,7 @@ planner_app = executable('planner',
export_dynamic: true,
include_directories: [toplevel_inc],
install: true,
+ install_rpath: planner_pkglibdir,
)
if gda_dep.found()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]