From 00745b6677f14c86eae2dd6bf975ce6337597b72 Mon Sep 17 00:00:00 2001 From: Takashi Sakamoto Date: Thu, 31 Mar 2022 11:04:40 +0900 Subject: [PATCH] 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 --- src/ctl/meson.build | 4 +++- src/hwdep/meson.build | 4 +++- src/rawmidi/meson.build | 4 +++- src/seq/meson.build | 4 +++- src/timer/meson.build | 4 +++- 5 files changed, 15 insertions(+), 5 deletions(-) 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, ) -- 2.47.3