build: rename dependency variable
Per [1], the naming convention for dependencies is '<project_name>_dep',
for consistency when importing the project as a meson subproject.
Rename the variable here to match this convention.
Based on [2] there appears to not be any current users of this as a
subproject which would need to be updated.
1. https://mesonbuild.com/Subprojects.html#naming-convention-for-dependency-variables
2. https://github.com/search?q=org%3Aopenbmc+get_variable&type=code
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I66082b3f667e9d00ede02184d0b008d0dd22d36b
diff --git a/example/meson.build b/example/meson.build
index fdab8f0..5fc4c40 100644
--- a/example/meson.build
+++ b/example/meson.build
@@ -8,5 +8,5 @@
foreach example : examples
executable(example, example + '.cpp',
implicit_include_directories: false,
- dependencies: sdeventplus)
+ dependencies: sdeventplus_dep)
endforeach
diff --git a/src/meson.build b/src/meson.build
index e8196cc..4463db0 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -48,7 +48,7 @@
dependencies: sdeventplus_deps,
install: true)
-sdeventplus = declare_dependency(
+sdeventplus_dep = declare_dependency(
dependencies: sdeventplus_deps,
include_directories: sdeventplus_headers,
link_with: sdeventplus_lib)
@@ -64,7 +64,7 @@
name: 'sdeventplus',
description: 'C++ systemd event wrapper',
version: meson.project_version(),
- libraries: sdeventplus,
+ libraries: sdeventplus_dep,
requires: sdeventplus_reqs)
install_headers(
diff --git a/test/meson.build b/test/meson.build
index 6848112..97e219b 100644
--- a/test/meson.build
+++ b/test/meson.build
@@ -37,5 +37,5 @@
foreach t : tests
test(t, executable(t.underscorify(), t + '.cpp',
implicit_include_directories: false,
- dependencies: [sdeventplus, gtest, gmock]))
+ dependencies: [sdeventplus_dep, gtest, gmock]))
endforeach