From: Takashi Sakamoto Date: Thu, 31 Mar 2022 02:04:40 +0000 (+0900) Subject: meson: move pkg-config description to metadata part X-Git-Tag: v0.3.0~235 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=607d8ee96ec71a3496eadeaab3faffa73bfe514c;p=alsa-gobject.git meson: move pkg-config description to metadata part This commit refactors description for pkg-config to reduce difference of each meson configuration. Signed-off-by: Takashi Sakamoto --- diff --git a/src/ctl/meson.build b/src/ctl/meson.build index c65c55e..e050c01 100644 --- a/src/ctl/meson.build +++ b/src/ctl/meson.build @@ -36,6 +36,8 @@ dependencies = [ libudev_dependency, ] +pc_desc = 'GObject instrospection library for control interface in asound.h' + # For test. build_dirs += {'alsactl': meson.current_build_dir()} @@ -96,7 +98,7 @@ install_headers(headers, # Generate pkg-config file for development. pkg.generate(library, - description: 'GObject instrospection library for control interface in asound.h', + description: pc_desc, subdirs: inc_dir, ) diff --git a/src/hwdep/meson.build b/src/hwdep/meson.build index 4ac36d9..9f80be9 100644 --- a/src/hwdep/meson.build +++ b/src/hwdep/meson.build @@ -28,6 +28,8 @@ dependencies = [ libudev_dependency, ] +pc_desc = 'GObject instrospection library for HwDep interface in asound.h' + # For test. build_dirs += {'alsahwdep': meson.current_build_dir()} @@ -88,7 +90,7 @@ install_headers(headers, # Generate pkg-config file for development. pkg.generate(library, - description: 'GObject instrospection library for HwDep interface in asound.h', + description: pc_desc, subdirs: inc_dir, ) diff --git a/src/rawmidi/meson.build b/src/rawmidi/meson.build index 749ae43..70b445b 100644 --- a/src/rawmidi/meson.build +++ b/src/rawmidi/meson.build @@ -33,6 +33,8 @@ dependencies = [ libudev_dependency, ] +pc_desc = 'GObject instrospection library for RawMidi interface in asound.h' + # For test. build_dirs += {'alsarawmidi': meson.current_build_dir()} @@ -93,7 +95,7 @@ install_headers(headers, # Generate pkg-config file for development. pkg.generate(library, - description: 'GObject instrospection library for RawMidi interface in asound.h', + description: pc_desc, subdirs: inc_dir, ) diff --git a/src/seq/meson.build b/src/seq/meson.build index 8181ca9..e98a071 100644 --- a/src/seq/meson.build +++ b/src/seq/meson.build @@ -67,6 +67,8 @@ dependencies = [ alsatimer_dependency, ] +pc_desc = 'GObject instrospection library for sequencer interface in asequencer.h' + # For test. build_dirs += {'alsaseq': meson.current_build_dir()} @@ -127,7 +129,7 @@ install_headers(headers, # Generate pkg-config file for development. pkg.generate(library, - description: 'GObject instrospection library for sequencer interface in asequencer.h', + description: pc_desc, subdirs: inc_dir, ) diff --git a/src/timer/meson.build b/src/timer/meson.build index 66197c6..c033619 100644 --- a/src/timer/meson.build +++ b/src/timer/meson.build @@ -48,6 +48,8 @@ dependencies = [ libudev_dependency, ] +pc_desc = 'GObject instrospection library for timer interface in asound.h' + # For test. build_dirs += {'alsatimer': meson.current_build_dir()} @@ -108,7 +110,7 @@ install_headers(headers, # Generate pkg-config file for development. pkg.generate(library, - description: 'GObject instrospection library for timer interface in asound.h', + description: pc_desc, subdirs: inc_dir, )