From e5ffa017047525ed2e3ee41ea2294546ee64894c Mon Sep 17 00:00:00 2001 From: Stefan Vacek Date: Fri, 28 Aug 2015 16:59:52 +0200 Subject: Add C++ extension - header only implementation, uses variadic templates from C++ 11 - Enable installation and building tests with -DWITH_DLT_CXX11_EXT - allow logging in the form of DLT_LOG_CXX(context, level, param1, param2, param3), e.g. - allow logging of user types (if a function logToDlt for the given user-type is present), e.g. - Added pkg-config file automotive-dlt-c++.pc - Sample code is provided in tests/dlt-test-cpp-extension.cpp Signed-off-by: Stefan Vacek --- automotive-dlt.spec.in | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'automotive-dlt.spec.in') diff --git a/automotive-dlt.spec.in b/automotive-dlt.spec.in index eeb7221..ec5fe53 100644 --- a/automotive-dlt.spec.in +++ b/automotive-dlt.spec.in @@ -24,7 +24,8 @@ Vendor: BMW Group AG License: @LICENSE@ Source0: %{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root -Requires: %{name} = %{version}-%{release}, pkgconfig +BuildRequires: pkg-configure +BuildRequires: cmake %description This component provides a standardised log and trace interface, based on the @@ -50,11 +51,21 @@ This component provides the documentation for %{name}. %package devel Summary: %{name} - Diagnostic Log and Trace: Development files Group: Development/Libraries -Requires: %{name} = %{version}-%{release}, pkgconfig +Requires: %{name} = %{version}-%{release} +Provides: pkgconfig(%{name}) %description devel This component provides the development libraries and includes for %{name}. +%package c++-devel +Summary: %{name} - Diagnostic Log and Trace: Development files +Group: Development/Libraries +Requires: %{name} = %{version}-%{release}-devel +Provides: pkgconfig(%{name}-c++) + +%description c++devel +This component adds a C++ extension for %{name}. + %prep %setup -q @@ -135,3 +146,7 @@ rm -rf $RPM_BUILD_ROOT %files devel %{_includedir}/dlt/*.h %{_libdir}/pkgconfig/@PROJECT_NAME@.pc + +%files c++-devel +%{_includedir}/dlt/*.hpp +%{_libdir}/pkgconfig/@PROJECT_NAME@-c++.pc -- cgit v1.2.1