diff options
author | Martin Willers <M.Willers@gmx.net> | 2021-07-15 03:46:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-15 10:46:43 +0900 |
commit | 0c1284fa4126e1091bd59416c9454fa317944809 (patch) | |
tree | 82d7b2e5dff97acb25196a265fa7b848b8e4032e /automotive-dlt.pc.in | |
parent | 24d197214bfdcec7430d31b42e5c87df27287aaf (diff) | |
download | DLT-daemon-0c1284fa4126e1091bd59416c9454fa317944809.tar.gz |
Extend include path in *.pc file (#319)
* Extend include path in *.pc file
Previously, an application using this library's pkg-config setting for
include directory would only get e.g. -I/usr/local/dlt/include/dlt
With that include dir, the application needs to write its #include
statements without any prefix, i.e. "#include "dlt_user.h"
This is considered bad practice for header files of an elaborate
library consisting of multiple header files.
For such libraries, one should write #include statements like
this: #include "dlt/dlt_user.h", i.e. prefix it with a directory.
This commit achieves that by letting the pkg-config module also return
the upper-level directory in addition to the previous one.
For instance, the include directive returned by the above example
would now be "-I/usr/local/dlt/include -I/usr/local/dlt".
Signed-off-by: Martin Willers <M.Willers@gmx.net>
Diffstat (limited to 'automotive-dlt.pc.in')
-rw-r--r-- | automotive-dlt.pc.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/automotive-dlt.pc.in b/automotive-dlt.pc.in index bddd03b..a52da01 100644 --- a/automotive-dlt.pc.in +++ b/automotive-dlt.pc.in @@ -23,5 +23,5 @@ Description: Diagnostic Log and Trace Version: @PROJECT_VERSION@ Requires: Libs: -L${libdir} -ldlt -lrt -lpthread @ZLIB_LIBRARY@ -Cflags: -I${includedir}/dlt -DDLT_@PROJECT_VERSION_MAJOR@_@PROJECT_VERSION_MINOR@ +Cflags: -I${includedir}/dlt -I${includedir} -DDLT_@PROJECT_VERSION_MAJOR@_@PROJECT_VERSION_MINOR@ |