[geocode-glib/wip/hadess/api-version: 2/3] build: Namespace shared library for new API




commit 053e63b562880b5fb53a4cbb58d2478f901e65b1
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Jun 30 11:41:17 2022 +0200

    build: Namespace shared library for new API

 geocode-glib/meson.build | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/geocode-glib/meson.build b/geocode-glib/meson.build
index 970860f..2a880d1 100644
--- a/geocode-glib/meson.build
+++ b/geocode-glib/meson.build
@@ -66,7 +66,11 @@ current = major_version + minor_version + 1
 interface_age = micro_version
 darwin_versions = [current, '@0@.@1@'.format(current, interface_age)]
 
-libgcglib = shared_library('geocode-glib',
+library_name = 'geocode-glib'
+if not get_option('soup2')
+  library_name += '-2'
+endif
+libgcglib = shared_library(library_name,
                            sources,
                            dependencies: deps,
                            include_directories: include,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]