[template-glib] build: create a static library for internal use
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [template-glib] build: create a static library for internal use
- Date: Wed, 4 May 2022 06:00:03 +0000 (UTC)
commit 9a1a3a7a5e97f3638300c27e2bc8430f7c2fd430
Author: Christian Hergert <chergert redhat com>
Date: Tue May 3 22:38:01 2022 -0700
build: create a static library for internal use
So we can use this from tests directly without dealing with linker things
for tests and what not.
src/meson.build | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/src/meson.build b/src/meson.build
index cec0704..63d27da 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -139,10 +139,14 @@ if libdir == '' or includedir == ''
error('You must set pkglibdir and pkgincludedir when using as a subproject')
endif
+core_lib = static_library('template_glib', libtemplate_glib_sources,
+ dependencies: libtemplate_glib_deps,
+)
+
libtemplate_glib = library(
'template_glib-' + apiversion,
- libtemplate_glib_sources,
+ link_whole: core_lib,
dependencies: libtemplate_glib_deps,
soversion: soversion,
version: libversion,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]