Skip to content

Commit

Permalink
Use dirent from extern and remove copies of the file
Browse files Browse the repository at this point in the history
CC-Issue #384
  • Loading branch information
drdanz committed Feb 18, 2018
1 parent 3b841f2 commit f3b7e53
Show file tree
Hide file tree
Showing 18 changed files with 32 additions and 706 deletions.
5 changes: 5 additions & 0 deletions extern/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,8 @@ set(RPLIDAR_SDK_ROOT "${CMAKE_CURRENT_SOURCE_DIR}/rplidar/sdk" PARENT_SCOPE)

# diff_match_patch
set(diff_match_patch_INCLUDE_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/diff_match_patch" PARENT_SCOPE)

# dirent (for MSVC)
if(MSVC)
set(dirent_INCLUDE_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/dirent/dirent/include" PARENT_SCOPE)
endif()
5 changes: 3 additions & 2 deletions src/libYARP_manager/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ if(CREATE_LIB_MANAGER)
include/yarp/manager/xmltemploader.h
include/yarp/manager/yarpbroker.h
include/yarp/manager/yarpdevbroker.h
include/yarp/manager/ymm-dir.h
include/yarp/manager/ymm-types.h)

set(YARP_manager_IMPL_HDRS include/yarp/manager/impl/textparser.h)
Expand Down Expand Up @@ -87,7 +86,9 @@ if(CREATE_LIB_MANAGER)

include_directories(${YARP_TREE_INCLUDE_DIRS})
include_directories(SYSTEM ${TinyXML_INCLUDE_DIRS})

if(MSVC)
include_directories(SYSTEM ${dirent_INCLUDE_DIRS})
endif()

if(CREATE_LIB_MATH)
add_definitions( -DWITH_YARPMATH )
Expand Down
316 changes: 0 additions & 316 deletions src/libYARP_manager/include/yarp/manager/ymm-dir.h

This file was deleted.

2 changes: 1 addition & 1 deletion src/libYARP_manager/src/xmlapploader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#include <yarp/manager/xmlapploader.h>
#include <yarp/manager/utility.h>
#include <yarp/manager/ymm-dir.h>
#include <dirent.h>
#include <tinyxml.h>
#include <yarp/os/Value.h>
#ifdef WITH_GEOMETRY
Expand Down
2 changes: 1 addition & 1 deletion src/libYARP_manager/src/xmlappsaver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#include <yarp/manager/xmlappsaver.h>
#include <yarp/manager/utility.h>
#include <yarp/manager/ymm-dir.h>
#include <dirent.h>

#include <algorithm>
#include <cctype>
Expand Down
2 changes: 1 addition & 1 deletion src/libYARP_manager/src/xmlclusterloader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#include <yarp/manager/xmlclusterloader.h>
#include <yarp/manager/utility.h>
#include <yarp/manager/ymm-dir.h>
#include <dirent.h>
#include <tinyxml.h>
#include <yarp/os/Value.h>

Expand Down
2 changes: 1 addition & 1 deletion src/libYARP_manager/src/xmlmodloader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#include <yarp/manager/xmlmodloader.h>
#include <yarp/manager/utility.h>
#include <yarp/manager/ymm-dir.h>
#include <dirent.h>
#include <yarp/manager/physicresource.h>
#include <yarp/manager/logicresource.h>
#include <yarp/manager/primresource.h>
Expand Down
2 changes: 1 addition & 1 deletion src/libYARP_manager/src/xmlresloader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#include <yarp/manager/xmlresloader.h>
#include <yarp/manager/utility.h>
#include <yarp/manager/ymm-dir.h>
#include <dirent.h>
#include <yarp/manager/physicresource.h>
#include <yarp/manager/logicresource.h>

Expand Down
2 changes: 1 addition & 1 deletion src/libYARP_manager/src/xmltemploader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#include <yarp/manager/xmltemploader.h>
#include <yarp/manager/utility.h>
#include <yarp/manager/ymm-dir.h>
#include <dirent.h>

#include <algorithm>
#include <cctype>
Expand Down
Loading

0 comments on commit f3b7e53

Please sign in to comment.