subprojects: libgpiod: add wrap and configure
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I60ecdd3c2d28b11844407141922215ce658c4d8b
diff --git a/meson.build b/meson.build
index 5e98a12..bcbcb02 100644
--- a/meson.build
+++ b/meson.build
@@ -116,7 +116,10 @@
]
if get_option('ibm-parser').enabled()
- libgpiodcxx = dependency('libgpiodcxx')
+ libgpiodcxx = dependency(
+ 'libgpiodcxx',
+ default_options: ['bindings=cxx'],
+ )
ibm_read_vpd_SOURCES = ['ibm_vpd_app.cpp',
'vpd-manager/editor_impl.cpp',
]+common_SOURCES
diff --git a/subprojects/libgpiod.wrap b/subprojects/libgpiod.wrap
new file mode 100644
index 0000000..f650e74
--- /dev/null
+++ b/subprojects/libgpiod.wrap
@@ -0,0 +1,13 @@
+[wrap-file]
+directory = libgpiod-1.6.3
+source_url = https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/snapshot/libgpiod-1.6.3.tar.gz
+source_filename = libgpiod-1.6.3.tar.gz
+source_hash = eb446070be1444fd7d32d32bbca53c2f3bbb0a21193db86198cf6050b7a28441
+patch_filename = libgpiod_1.6.3-1_patch.zip
+patch_url = https://wrapdb.mesonbuild.com/v2/libgpiod_1.6.3-1/get_patch
+patch_hash = 76821c637073679a88f77593c6f7ce65b4b5abf8c998f823fffa13918c8761df
+
+[provide]
+libgpiod = gpiod_dep
+libgpiodcxx = gpiodcxx_dep
+
diff --git a/test/meson.build b/test/meson.build
index 805a653..6ad140d 100644
--- a/test/meson.build
+++ b/test/meson.build
@@ -13,7 +13,7 @@
endif
gmock = dependency('gmock', disabler: true, required: build_tests)
gtest = dependency('gtest', main: true, disabler: true, required: build_tests)
-libgpiodcxx = dependency('libgpiodcxx')
+libgpiodcxx = dependency('libgpiodcxx', default_options: ['bindings=cxx'])
dependecy_list = [gtest, gmock, sdbusplus, phosphor_logging, phosphor_dbus_interfaces, libgpiodcxx]
configuration_inc = include_directories('..', '../vpd-manager', 'vpd-manager-test', '../vpd-parser')