Skip to content

Commit

Permalink
Make rcl_yaml_param_parser depend on rcutils only.
Browse files Browse the repository at this point in the history
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
  • Loading branch information
hidmic committed Jul 5, 2019
1 parent ad1c4f1 commit 490ef7d
Show file tree
Hide file tree
Showing 5 changed files with 310 additions and 310 deletions.
14 changes: 11 additions & 3 deletions rcl_yaml_param_parser/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ project(rcl_yaml_param_parser)

find_package(ament_cmake_ros REQUIRED)
find_package(rcutils REQUIRED)
find_package(rcl REQUIRED)
find_package(libyaml_vendor REQUIRED)
find_package(yaml REQUIRED)

Expand All @@ -26,9 +25,18 @@ set(rcl_yaml_parser_sources
add_library(
${PROJECT_NAME}
${rcl_yaml_parser_sources})
ament_target_dependencies(${PROJECT_NAME} "yaml" "rcutils" "rcl")
ament_target_dependencies(${PROJECT_NAME} "yaml" "rcutils")

# Set the visibility to hidden by default if possible
if(CMAKE_C_COMPILER_ID STREQUAL "GNU" OR CMAKE_C_COMPILER_ID MATCHES "Clang")
# Set the visibility of symbols to hidden by default for gcc and clang
# (this is already the default on Windows)
set_target_properties(${PROJECT_NAME}
PROPERTIES
COMPILE_FLAGS "-fvisibility=hidden"
)
endif()

rcl_set_symbol_visibility_hidden(${PROJECT_NAME} LANGUAGE "C")
# Causes the visibility macros to use dllexport rather than dllimport,
# which is appropriate when building the dll but not consuming it.
target_compile_definitions(${PROJECT_NAME} PRIVATE "RCL_YAML_PARAM_PARSER_BUILDING_DLL")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ bool rcl_parse_yaml_file(
const char * file_path,
rcl_params_t * params_st);

/// \brief Print the parameter structure to stdout
/// \brief Print the parameter structure to
/// \param[in] params_st points to the populated parameter struct
RCL_YAML_PARAM_PARSER_PUBLIC
void rcl_yaml_node_struct_print(
Expand Down
4 changes: 2 additions & 2 deletions rcl_yaml_param_parser/include/rcl_yaml_param_parser/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#ifndef RCL_YAML_PARAM_PARSER__TYPES_H_
#define RCL_YAML_PARAM_PARSER__TYPES_H_

#include "rcl/allocator.h"
#include "rcutils/allocator.h"
#include "rcutils/types/string_array.h"

/// \typedef rcl_bool_array_t
Expand Down Expand Up @@ -81,7 +81,7 @@ typedef struct rcl_params_s
char ** node_names; ///< List of names of the node
rcl_node_params_t * params; ///< Array of parameters
size_t num_nodes; ///< Number of nodes
rcl_allocator_t allocator; ///< Allocator used
rcutils_allocator_t allocator; ///< Allocator used
} rcl_params_t;

#endif // RCL_YAML_PARAM_PARSER__TYPES_H_
1 change: 0 additions & 1 deletion rcl_yaml_param_parser/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
<depend>libyaml_vendor</depend>
<depend>yaml</depend>
<build_depend>rcutils</build_depend>
<build_depend>rcl</build_depend>

<test_depend>ament_cmake_gtest</test_depend>
<test_depend>ament_lint_common</test_depend>
Expand Down
Loading

0 comments on commit 490ef7d

Please sign in to comment.