[libmanette] Meson: Un-hardcode building a shared library
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libmanette] Meson: Un-hardcode building a shared library
- Date: Tue, 27 Sep 2022 07:50:32 +0000 (UTC)
commit 003c2e84d95357bbbef72fb395ef85f1650097a3
Author: Adrian Perez de Castro <aperez igalia com>
Date: Fri Sep 23 14:35:51 2022 +0300
Meson: Un-hardcode building a shared library
Use library() instead of shared_library() to allow specifying which kind
of library to build with "meson setup --default-library ..."
This allows more easily incorporating libmanette in an application e.g.
as a Meson subproject which gets built into a program as a static
library.
src/meson.build | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/meson.build b/src/meson.build
index c140cac..b71d090 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -63,7 +63,7 @@ if gudev.found()
libmanette_deps += [ gudev ]
endif
-libmanette_lib = shared_library(
+libmanette_lib = library(
libmanette_module,
libmanette_sources,
c_args: libmanette_c_args,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]