From 600414ef775181a88c8f10d2170ab641f90b994a Mon Sep 17 00:00:00 2001 From: Takashi Sakamoto Date: Wed, 16 Mar 2022 09:03:48 +0900 Subject: [PATCH] meson: infer library soname for .pc file In meson build, the pkgconfig module automatically infers soname from given object. Let's use it. Signed-off-by: Takashi Sakamoto --- meson.build | 1 + src/ctl/meson.build | 3 +-- src/hwdep/meson.build | 3 +-- src/rawmidi/meson.build | 3 +-- src/seq/meson.build | 3 +-- src/timer/meson.build | 3 +-- 6 files changed, 6 insertions(+), 10 deletions(-) diff --git a/meson.build b/meson.build index 631dcec..27fc45a 100644 --- a/meson.build +++ b/meson.build @@ -1,6 +1,7 @@ project('alsa-gobject', 'c', version: '0.2.2', license: 'LGPL-3', + meson_version: '>= 0.47.0', ) gnome = import('gnome') diff --git a/src/ctl/meson.build b/src/ctl/meson.build index 9a3a45c..4a7606f 100644 --- a/src/ctl/meson.build +++ b/src/ctl/meson.build @@ -96,8 +96,7 @@ install_headers(headers, # Generate pkg-config file for development. pkg = import('pkgconfig') pkg.generate(library, - name: name, - description: 'GObject instrospection library with API for asound.h and asequencer.h', + description: 'GObject instrospection library for control interface in asound.h', subdirs: meson.project_name(), ) diff --git a/src/hwdep/meson.build b/src/hwdep/meson.build index 0e25cd2..582b1a2 100644 --- a/src/hwdep/meson.build +++ b/src/hwdep/meson.build @@ -88,8 +88,7 @@ install_headers(headers, # Generate pkg-config file for development. pkg = import('pkgconfig') pkg.generate(library, - name: name, - description: 'GObject instrospection library with API for asound.h and asequencer.h', + description: 'GObject instrospection library for HwDep interface in asound.h', subdirs: meson.project_name(), ) diff --git a/src/rawmidi/meson.build b/src/rawmidi/meson.build index e4d2ff2..878b6b2 100644 --- a/src/rawmidi/meson.build +++ b/src/rawmidi/meson.build @@ -94,8 +94,7 @@ install_headers(headers, # Generate pkg-config file for development. pkg = import('pkgconfig') pkg.generate(library, - name: name, - description: 'GObject instrospection library with API for asound.h and asequencer.h', + description: 'GObject instrospection library for RawMidi interface in asound.h', subdirs: meson.project_name(), ) diff --git a/src/seq/meson.build b/src/seq/meson.build index 29cfd6b..e0777a7 100644 --- a/src/seq/meson.build +++ b/src/seq/meson.build @@ -127,8 +127,7 @@ install_headers(headers, # Generate pkg-config file for development. pkg = import('pkgconfig') pkg.generate(library, - name: name, - description: 'GObject instrospection library with API for asound.h and asequencer.h', + description: 'GObject instrospection library for sequencer interface in asequencer.h', subdirs: meson.project_name(), ) diff --git a/src/timer/meson.build b/src/timer/meson.build index 62cfd08..984bf19 100644 --- a/src/timer/meson.build +++ b/src/timer/meson.build @@ -108,8 +108,7 @@ install_headers(headers, # Generate pkg-config file for development. pkg = import('pkgconfig') pkg.generate(library, - name: name, - description: 'GObject instrospection library with API for asound.h and asequencer.h', + description: 'GObject instrospection library for timer interface in asound.h', subdirs: meson.project_name(), ) -- 2.47.3