]> git.alsa-project.org Git - alsa-gobject.git/commitdiff
meson: move pkg-config description to metadata part
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Thu, 31 Mar 2022 02:04:40 +0000 (11:04 +0900)
committer坂本 貴史 <o-takashi@sakamocchi.jp>
Fri, 1 Apr 2022 00:48:18 +0000 (09:48 +0900)
This commit refactors description for pkg-config to reduce difference of
each meson configuration.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
src/ctl/meson.build
src/hwdep/meson.build
src/rawmidi/meson.build
src/seq/meson.build
src/timer/meson.build

index c65c55e63986cb197366a0184d2c824f03a5c4cf..e050c01c26ab1117fbe869987e056692fa6fde0b 100644 (file)
@@ -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,
 )
 
index 4ac36d9119548fd1b6983116b0b7ed2d766a0829..9f80be91868b721d843434331496c2f42ca65f52 100644 (file)
@@ -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,
 )
 
index 749ae43391bf112a5ff89b7b4289d81831a3dd30..70b445b9e0912bf3bd66ff91528d68436ea38a8d 100644 (file)
@@ -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,
 )
 
index 8181ca91d62a3ef0d2d93675b68e167b63e58f72..e98a071cb56c850ed18df662a9b80ed787e2859d 100644 (file)
@@ -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,
 )
 
index 66197c6121d2014e4c6a65325ef75942bbb07dc7..c033619f1ec6353e2c2be6f0d0f6ef3d3dbfb47a 100644 (file)
@@ -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,
 )