Release micro-ROS Foxy: disable tracetools status app

This commit is contained in:
José Antonio Moral 2020-07-22 11:06:10 +00:00 committed by Ingo Lütkebohle
parent 2f09614c36
commit b473cec508
2 changed files with 19 additions and 11 deletions

View file

@ -21,6 +21,7 @@ else()
endif()
option(TRACETOOLS_DISABLED "Explicitly disable support for tracing" ${DISABLED_DEFAULT})
option(TRACETOOLS_NO_RDYNAMIC "Disable export of -rdynamic link flag" OFF)
option(TRACETOOLS_STATUS_CHECKING_TOOL "Enable the status checking tool" ON)
if(NOT TRACETOOLS_DISABLED)
# Set TRACETOOLS_LTTNG_ENABLED if we can find lttng-ust
@ -94,17 +95,19 @@ target_include_directories(${PROJECT_NAME} PUBLIC
)
ament_export_targets(${PROJECT_NAME}_export HAS_LIBRARY_TARGET)
# Status checking tool
add_executable(status
if(TRACETOOLS_STATUS_CHECKING_TOOL)
# Status checking tool
add_executable(status
src/status.c
)
target_link_libraries(status
)
target_link_libraries(status
${PROJECT_NAME}
)
install(TARGETS
)
install(TARGETS
status
DESTINATION lib/${PROJECT_NAME}
)
)
endif()
install(
DIRECTORY ${PROJECT_BINARY_DIR}/include/

View file

@ -18,11 +18,14 @@
#include <stddef.h>
#include <functional>
#include "tracetools/config.h"
#include "tracetools/visibility_control.hpp"
/// Default symbol, used when address resolution fails.
#define SYMBOL_UNKNOWN "UNKNOWN"
#ifndef TRACETOOLS_DISABLED
TRACETOOLS_PUBLIC const char * _demangle_symbol(const char * mangled);
TRACETOOLS_PUBLIC const char * _get_symbol_funcptr(void * funcptr);
@ -62,4 +65,6 @@ const char * get_symbol(L && l)
return _demangle_symbol(typeid(l).name());
}
#endif // TRACETOOLS_DISABLED
#endif // TRACETOOLS__UTILS_HPP_