]> git.alsa-project.org Git - alsa-gobject.git/commitdiff
utils: build internal static library including common utilities
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sat, 2 Apr 2022 01:46:22 +0000 (10:46 +0900)
committerTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sat, 2 Apr 2022 01:46:22 +0000 (10:46 +0900)
Current implementation of included libraries includes duplicated codes
to operate over sysfs by libudev. It's inconvenient in a point of
maintenance.

This commit adds internal static library for such duplicate codes.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
src/ctl/meson.build
src/hwdep/meson.build
src/meson.build
src/rawmidi/meson.build
src/seq/meson.build
src/timer/meson.build
src/utils/meson.build [new file with mode: 0644]
src/utils/utils.h [new file with mode: 0644]

index 785429fc286846958db5f1cff987bde524a84686..9e4058df73aa708b8988728aca5816ebf0ea7fd4 100644 (file)
@@ -33,6 +33,7 @@ privates = files(
 dependencies = [
   gobject_dependency,
   libudev_dependency,
+  utils_dependencies,
 ]
 
 pc_desc = 'GObject instrospection library for control interface in asound.h'
index 73897a98bce6d8fb467fc5da70ec186c28c1960e..8e8d3f2a436d02564318d516eb6ec8ec50b27acb 100644 (file)
@@ -25,6 +25,7 @@ privates = files(
 dependencies = [
   gobject_dependency,
   libudev_dependency,
+  utils_dependencies,
 ]
 
 pc_desc = 'GObject instrospection library for HwDep interface in asound.h'
index d6f8ab20efd6d5e8cce0706c3106547c3a44e5c7..78f9040f7910bdd8c3c71c21706ed45f47a6285a 100644 (file)
@@ -15,6 +15,7 @@ common_gir_includes = [
 
 build_dirs = {}
 
+subdir('utils')
 subdir('ctl')
 subdir('timer')
 subdir('seq')
index ce55c8072406e2462ad01ce5349bcedef6aa5dee..02994070683ead4b36d6e58f26fe76b46f4285b7 100644 (file)
@@ -31,6 +31,7 @@ privates = files(
 dependencies = [
   gobject_dependency,
   libudev_dependency,
+  utils_dependencies,
 ]
 
 pc_desc = 'GObject instrospection library for RawMidi interface in asound.h'
index 4b7d23e770b1d5542915116a29d4ac839aa926d7..875b34ebb075acc2588076b240cea0734a6d0139 100644 (file)
@@ -63,6 +63,7 @@ privates = files(
 dependencies = [
   gobject_dependency,
   libudev_dependency,
+  utils_dependencies,
   alsatimer_dependency,
 ]
 
index 74aab476fdda0c584781769dd730e73c9c2a1a8d..a273c4eb5f79538100cd813a0c63d713304d344f 100644 (file)
@@ -45,6 +45,7 @@ privates = files(
 dependencies = [
   gobject_dependency,
   libudev_dependency,
+  utils_dependencies,
 ]
 
 pc_desc = 'GObject instrospection library for timer interface in asound.h'
diff --git a/src/utils/meson.build b/src/utils/meson.build
new file mode 100644 (file)
index 0000000..0279814
--- /dev/null
@@ -0,0 +1,19 @@
+headers = [
+  'utils.h',
+]
+
+sources = [
+]
+
+dependencies = [
+]
+
+static_library = static_library('utils',
+  sources: sources + headers,
+)
+
+utils_dependencies = declare_dependency(
+  dependencies: dependencies,
+  include_directories: include_directories('.'),
+  link_with: static_library,
+)
diff --git a/src/utils/utils.h b/src/utils/utils.h
new file mode 100644 (file)
index 0000000..fcefa93
--- /dev/null
@@ -0,0 +1,5 @@
+// SPDX-License-Identifier: LGPL-3.0-or-later
+#ifndef __ALSA_GOBJECT_UTILS_H__
+#define __ALSA_GOBJECT_UTILS_H__
+
+#endif