summaryrefslogtreecommitdiff
path: root/shared
diff options
context:
space:
mode:
authorDavid Härdeman <david@hardeman.nu>2020-07-01 17:06:54 +0200
committerDavid Härdeman <david@hardeman.nu>2020-07-01 17:06:54 +0200
commit829ea0768672dad977ddeb30dd5e2b254bb4a4e9 (patch)
tree4dd2d89ff5ee68416f1d08134a0c46ba7aacffe2 /shared
parentdc93ade1436f619a90a9eee7d98ff91ecaccb6ab (diff)
Change include configuration for shared directory to make header includes clearer
Diffstat (limited to 'shared')
-rw-r--r--shared/meson.build7
1 files changed, 4 insertions, 3 deletions
diff --git a/shared/meson.build b/shared/meson.build
index 5b15c05..f0ef635 100644
--- a/shared/meson.build
+++ b/shared/meson.build
@@ -5,8 +5,6 @@ srcs_libshared = [
'utils.c',
]
-inc_libshared = include_directories('.')
-
deps_libshared = [
dep_config_h,
]
@@ -19,9 +17,12 @@ lib_libshared = static_library(
dependencies: deps_libshared,
)
+# Note: include_directories is *not* set here so that it is necessary
+# to include "shared/foo.h" instead of "foo.h", which makes it
+# clearer where the header files reside.
+
dep_libshared = declare_dependency(
link_with: lib_libshared,
dependencies: deps_libshared,
- include_directories: inc_libshared,
)