Generate header with compile-time features
Currently: * DDS_HAS_SECURITY for DDS Security support * DDS_HAS_LIFESPAN for lifespan QoS support * DDS_HAS_DEADLINE_MISSED for "deadline missed" event support These are defined to 1 if support for the feature is included in the build and left undefined if it isn't. Signed-off-by: Erik Boasson <eb@ilities.com>
This commit is contained in:
parent
d4e9300dad
commit
ecbd585f12
3 changed files with 45 additions and 0 deletions
24
src/features.h.in
Normal file
24
src/features.h.in
Normal file
|
@ -0,0 +1,24 @@
|
|||
/*
|
||||
* Copyright(c) 2020 ADLINK Technology Limited and others
|
||||
*
|
||||
* This program and the accompanying materials are made available under the
|
||||
* terms of the Eclipse Public License v. 2.0 which is available at
|
||||
* http://www.eclipse.org/legal/epl-2.0, or the Eclipse Distribution License
|
||||
* v. 1.0 which is available at
|
||||
* http://www.eclipse.org/org/documents/edl-v10.php.
|
||||
*
|
||||
* SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
|
||||
*/
|
||||
#ifndef _DDS_PUBLIC_FEATURES_H_
|
||||
#define _DDS_PUBLIC_FEATURES_H_
|
||||
|
||||
/* Whether or not support for DDS Security is included */
|
||||
#cmakedefine DDS_HAS_SECURITY @DDS_HAS_SECURITY@
|
||||
|
||||
/* Whether or not support for the lifespan QoS is included */
|
||||
#cmakedefine DDS_HAS_LIFESPAN @DDS_HAS_LIFESPAN@
|
||||
|
||||
/* Whether or not support for generating "deadline missed" events is included */
|
||||
#cmakedefine DDS_HAS_DEADLINE_MISSED @DDS_HAS_DEADLINE_MISSED@
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue