From 7dea456122798e35eb5380876bc442089d0e84b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ingo=20L=C3=BCtkebohle?= Date: Fri, 18 Oct 2019 17:07:18 +0000 Subject: [PATCH] Set symbols visibility to public for util functions --- tracetools/CMakeLists.txt | 8 +++++++- tracetools/include/tracetools/utils.hpp | 6 ++++-- tracetools/package.xml | 2 +- tracetools_launch/package.xml | 2 +- tracetools_launch/setup.py | 2 +- tracetools_read/package.xml | 2 +- tracetools_read/setup.py | 2 +- tracetools_test/package.xml | 2 +- tracetools_trace/package.xml | 2 +- tracetools_trace/setup.py | 2 +- 10 files changed, 19 insertions(+), 11 deletions(-) diff --git a/tracetools/CMakeLists.txt b/tracetools/CMakeLists.txt index 1ff1a22..39ffd4b 100644 --- a/tracetools/CMakeLists.txt +++ b/tracetools/CMakeLists.txt @@ -14,7 +14,13 @@ endif() find_package(ament_cmake_ros REQUIRED) -option(TRACETOOLS_DISABLED "Explicitly disable support for tracing with LTTng" OFF) +if(WIN32) + set(DISABLED_DEFAULT ON) +else() + set(DISABLED_DEFAULT OFF) +endif() +option(TRACETOOLS_DISABLED "Explicitly disable support for tracing with LTTng" ${DISABLED_DEFAULT}) + if(NOT TRACETOOLS_DISABLED) # Set TRACING_ENABLED if we can find lttng-ust find_package(PkgConfig) diff --git a/tracetools/include/tracetools/utils.hpp b/tracetools/include/tracetools/utils.hpp index 3149992..77f4811 100644 --- a/tracetools/include/tracetools/utils.hpp +++ b/tracetools/include/tracetools/utils.hpp @@ -18,11 +18,13 @@ #include #include +#include "tracetools/visibility_control.hpp" + #define SYMBOL_UNKNOWN "UNKNOWN" -const char * _demangle_symbol(const char * mangled); +TRACETOOLS_PUBLIC const char * _demangle_symbol(const char * mangled); -const char * _get_symbol_funcptr(void * funcptr); +TRACETOOLS_PUBLIC const char * _get_symbol_funcptr(void * funcptr); template const char * get_symbol(std::function f) diff --git a/tracetools/package.xml b/tracetools/package.xml index 8b75809..44dcaa2 100644 --- a/tracetools/package.xml +++ b/tracetools/package.xml @@ -5,7 +5,7 @@ 0.2.8 Tracing wrapper for ROS 2. Christophe Bedard - Ingo Lütkebohle + Ingo Luetkebohle Apache 2.0 Ingo Lütkebohle Christophe Bedard diff --git a/tracetools_launch/package.xml b/tracetools_launch/package.xml index de54b13..8b0fdbb 100644 --- a/tracetools_launch/package.xml +++ b/tracetools_launch/package.xml @@ -5,7 +5,7 @@ 0.2.8 Launch integration for tracing. Christophe Bedard - Ingo Lütkebohle + Ingo Luetkebohle Apache 2.0 Christophe Bedard diff --git a/tracetools_launch/setup.py b/tracetools_launch/setup.py index 7318bc9..4f0e028 100644 --- a/tracetools_launch/setup.py +++ b/tracetools_launch/setup.py @@ -16,7 +16,7 @@ setup( install_requires=['setuptools'], maintainer=( 'Christophe Bedard, ' - 'Ingo Lütkebohle' + 'Ingo Luetkebohle' ), maintainer_email=( 'bedard.christophe@gmail.com, ' diff --git a/tracetools_read/package.xml b/tracetools_read/package.xml index 148e10d..76e4179 100644 --- a/tracetools_read/package.xml +++ b/tracetools_read/package.xml @@ -5,7 +5,7 @@ 0.2.8 Tools for reading traces. Christophe Bedard - Ingo Lütkebohle + Ingo Luetkebohle Apache 2.0 Christophe Bedard diff --git a/tracetools_read/setup.py b/tracetools_read/setup.py index edbec6a..0976dfe 100644 --- a/tracetools_read/setup.py +++ b/tracetools_read/setup.py @@ -13,7 +13,7 @@ setup( install_requires=['setuptools'], maintainer=( 'Christophe Bedard, ' - 'Ingo Lütkebohle' + 'Ingo Luetkebohle' ), maintainer_email=( 'bedard.christophe@gmail.com, ' diff --git a/tracetools_test/package.xml b/tracetools_test/package.xml index 06add59..facb90f 100644 --- a/tracetools_test/package.xml +++ b/tracetools_test/package.xml @@ -5,7 +5,7 @@ 0.2.8 Testing utilities and tests for the tracetools package. Christophe Bedard - Ingo Lütkebohle + Ingo Luetkebohle Apache 2.0 Christophe Bedard diff --git a/tracetools_trace/package.xml b/tracetools_trace/package.xml index cea353c..e972407 100644 --- a/tracetools_trace/package.xml +++ b/tracetools_trace/package.xml @@ -5,7 +5,7 @@ 0.2.8 Tools for setting up tracing sessions. Christophe Bedard - Ingo Lütkebohle + Ingo Luetkebohle Apache 2.0 Christophe Bedard diff --git a/tracetools_trace/setup.py b/tracetools_trace/setup.py index d37b3e5..919b9ae 100644 --- a/tracetools_trace/setup.py +++ b/tracetools_trace/setup.py @@ -13,7 +13,7 @@ setup( install_requires=['setuptools'], maintainer=( 'Christophe Bedard, ' - 'Ingo Lütkebohle' + 'Ingo Luetkebohle' ), maintainer_email=( 'bedard.christophe@gmail.com, '