meson: Use declare_dependency for libraries
Now example binaries and tests don't have to be aware of the nuances for
configuring the build to use the library. This makes the project library
look like any other system dependency.
Change-Id: Ife3bcd3dcbd423f08c513f9a05fc8cabff41e2f6
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/example/meson.build b/example/meson.build
index ea04ff5..fdab8f0 100644
--- a/example/meson.build
+++ b/example/meson.build
@@ -7,8 +7,6 @@
foreach example : examples
executable(example, example + '.cpp',
- include_directories: includes,
implicit_include_directories: false,
- link_with: sdeventplus,
- dependencies: stdplus)
+ dependencies: sdeventplus)
endforeach