From: Takashi Sakamoto Date: Wed, 16 Mar 2022 00:03:48 +0000 (+0900) Subject: meson: infer library soname for .pc file X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=9646c07798a8e6444a5d33db00363adafe16d888;p=alsa-gobject.git 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 --- 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(), )