Skip to content

Commit

Permalink
iox-eclipse-iceoryx#1391 Provide legacy include file for 'unique_ptr'
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Hoinkis <simon.hoinkis@apex.ai>
  • Loading branch information
mossmaurice committed Oct 7, 2022
1 parent 276448e commit decd57a
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 3 deletions.
7 changes: 5 additions & 2 deletions iceoryx_hoofs/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,13 @@ cc_library(
"source/**/*.cpp",
"source/**/*.hpp",
]),
hdrs = glob(["include/**"]) + [
hdrs = glob(["include/**"]) + glob(["legacy/**"]) + [
":iceoryx_hoofs_deployment_hpp",
],
includes = [
"include/",
"legacy/",
],
linkopts = select({
"//iceoryx_platform:linux-clang": [
"-latomic",
Expand All @@ -48,7 +52,6 @@ cc_library(
"//iceoryx_platform:win": [],
"//conditions:default": ["-lacl"],
}),
strip_include_prefix = "include",
visibility = ["//visibility:public"],
deps = ["//iceoryx_platform"],
)
Expand Down
3 changes: 2 additions & 1 deletion iceoryx_hoofs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ iox_add_library(
PRIVATE_LIBS ${ICEORYX_SANITIZER_FLAGS}
PRIVATE_LIBS_LINUX acl atomic ${CODE_COVERAGE_LIBS}
BUILD_INTERFACE ${PROJECT_SOURCE_DIR}/include
${PROJECT_SOURCE_DIR}/legacy/include
${CMAKE_BINARY_DIR}/generated/iceoryx_hoofs/include
INSTALL_INTERFACE include/${PREFIX}
FILES
Expand Down Expand Up @@ -80,7 +81,7 @@ iox_add_library(
source/posix_wrapper/types.cpp
source/posix_wrapper/unnamed_semaphore.cpp
source/posix_wrapper/unix_domain_socket.cpp
source/relocatable_pointer/relative_pointer_data.cpp
source/memory/relative_pointer_data.cpp
source/units/duration.cpp
)

Expand Down
30 changes: 30 additions & 0 deletions iceoryx_hoofs/legacy/include/iceoryx_hoofs/cxx/unique_ptr.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// Copyright (c) 2022 by Apex.AI Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// SPDX-License-Identifier: Apache-2.0

#ifndef IOX_HOOFS_CXX_UNIQUE_PTR_HPP
#define IOX_HOOFS_CXX_UNIQUE_PTR_HPP

#include "iceoryx_hoofs/memory/unique_ptr.hpp"

namespace iox
{
namespace [[deprecated]] cxx
{
using memory::unique_ptr;
}
} // namespace iox

#endif // IOX_HOOFS_CXX_UNIQUE_PTR_HPP

0 comments on commit decd57a

Please sign in to comment.