Skip to content

Commit 516f05c

Browse files
committed
Fix conflicts.
Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
1 parent ae21735 commit 516f05c

9 files changed

Lines changed: 179 additions & 2006 deletions

fastdds_python_examples/RPCExample/generated_code/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,13 @@ find_package(fastdds 3 REQUIRED)
4141

4242
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
4343

44+
if(NOT WIN32)
45+
# Default values for shared library suffix in MacOS
46+
if(${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
47+
set(CMAKE_SHARED_LIBRARY_SUFFIX ".so")
48+
endif()
49+
endif()
50+
4451
#Create library for C++ types
4552
add_library(${PROJECT_NAME} SHARED
4653
calculatorTypeObjectSupport.cxx

fastdds_python_examples/RPCExample/generated_code/calculator.i

Lines changed: 8 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@
2929

3030
// If using windows in debug, it would try to use python_d, which would not be found.
3131
%begin %{
32+
/*
33+
* From: https://github.com/swig/swig/issues/2638
34+
* When a module uses a type in a module that is defined in a different module,
35+
* a false positive memory leak is detected.
36+
* The following line silences this warning.
37+
*/
38+
#define SWIG_PYTHON_SILENT_MEMLEAK
3239
#ifdef _MSC_VER
3340
#define SWIG_PYTHON_INTERPRETER_NO_DEBUG
3441
#endif
@@ -74,6 +81,7 @@
7481

7582
%import(module="fastdds") "fastdds/dds/rpc/exceptions/RpcException.hpp"
7683
%import(module="fastdds") "fastdds/dds/rpc/exceptions/RpcOperationError.hpp"
84+
%import(module="fastdds") "fastdds/dds/rpc/interfaces/RpcServer.hpp"
7785

7886
%exception {
7987
try
@@ -164,39 +172,7 @@ namespace swig {
164172

165173

166174

167-
<<<<<<< HEAD
168-
%shared_ptr(calculator_base::BasicCalculator);
169-
%shared_ptr(calculator_base::BasicCalculatorServer);
170-
%extend calculator_base::BasicCalculatorServer
171-
{
172-
void run()
173-
{
174-
Py_BEGIN_ALLOW_THREADS
175-
self->run();
176-
Py_END_ALLOW_THREADS
177-
}
178-
}
179-
180-
%shared_ptr(calculator_base::BasicCalculatorServer_IServerImplementation);
181-
%shared_ptr(calculator_base::BasicCalculatorServerImplementation);
182-
%feature("director") calculator_base::BasicCalculatorServerImplementation;
183-
184-
185-
186-
=======
187-
>>>>>>> e143c3b (Remove `@feed` operations from example (#256))
188175
%shared_ptr(Calculator);
189-
%shared_ptr(CalculatorServer);
190-
%extend CalculatorServer
191-
{
192-
void run()
193-
{
194-
Py_BEGIN_ALLOW_THREADS
195-
self->run();
196-
Py_END_ALLOW_THREADS
197-
}
198-
}
199-
200176
%shared_ptr(CalculatorServer_IServerImplementation);
201177
%shared_ptr(CalculatorServerImplementation);
202178
%feature("director") CalculatorServerImplementation;

0 commit comments

Comments
 (0)