[gobject-introspection/wip/tingping/meson] Allow setting custom cairo-gobject libname
- From: Patrick Griffis <pgriffis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection/wip/tingping/meson] Allow setting custom cairo-gobject libname
- Date: Thu, 26 Oct 2017 20:48:55 +0000 (UTC)
commit bc4f7eeeb6d3159001d9adcf3df4b55535577cdd
Author: Patrick Griffis <tingping tingping se>
Date: Thu Oct 26 16:48:38 2017 -0400
Allow setting custom cairo-gobject libname
gir/meson.build | 6 +++---
meson_options.txt | 4 ++++
2 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/gir/meson.build b/gir/meson.build
index 4086bff..5229207 100644
--- a/gir/meson.build
+++ b/gir/meson.build
@@ -1,12 +1,12 @@
cairo_conf = configuration_data()
-if host_machine.system() == 'win32'
- # TODO: Might not use libtool name
+if get_option('cairo-libname') != ''
+ cairo_library_name = get_option('cairo-libname')
+elif host_machine.system() == 'win32'
cairo_library_name = 'libcairo-gobject-2.dll'
elif host_machine.system() == 'darwin'
cairo_library_name = 'libcairo-gobject.2.dylib'
else
cairo_library_name = 'libcairo-gobject.so.2'
-# TODO: OpenBSD = libcairo-gobject.so
endif
cairo_conf.set('CAIRO_SHARED_LIBRARY', cairo_library_name)
diff --git a/meson_options.txt b/meson_options.txt
index 29224b7..f665490 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -14,6 +14,10 @@ option('gtk-doc', type: 'boolean', value: false,
description: 'Build and install documentation'
)
+option('cairo-libname', type: 'string',
+ description: 'Custom name for the cairo-gobject library name'
+)
+
option('gir_build', type: 'boolean',
description: 'Windows: post build (gir) stuff'
)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]