diff --git a/Modules/Wrappers/SWIG/src/otbApplication.i b/Modules/Wrappers/SWIG/src/otbApplication.i index 9dbab67cd2125913487c7bf515449e1ade425fbf..449ca4cd8eb2b3aeea946217a72c47d996b49f11 100644 --- a/Modules/Wrappers/SWIG/src/otbApplication.i +++ b/Modules/Wrappers/SWIG/src/otbApplication.i @@ -224,8 +224,9 @@ public: int Execute(); int ExecuteAndWriteOutput(); +#if SWIGPYTHON Logger* GetLogger(); - +#endif unsigned long itk::Object::AddObserver(const EventObject & event, Command * command); diff --git a/Modules/Wrappers/SWIG/src/otbWrapperSWIGIncludes.h b/Modules/Wrappers/SWIG/src/otbWrapperSWIGIncludes.h index bd694359e6afadf9f9bd02e2bfc71cd8ae980352..57dc59267ac4fe4d99fa54e1f26dbc5db4adaf88 100644 --- a/Modules/Wrappers/SWIG/src/otbWrapperSWIGIncludes.h +++ b/Modules/Wrappers/SWIG/src/otbWrapperSWIGIncludes.h @@ -26,10 +26,6 @@ #include "otbWrapperDocExampleStructure.h" #include "otbWrapperMetaDataHelper.h" -#include "otbPythonLogOutput.h" -#include "otbLogger.h" -#include "otbProgressReporterManager.h" - typedef otb::Wrapper::Application Application; typedef otb::Wrapper::Application::Pointer Application_Pointer; typedef otb::Wrapper::ApplicationRegistry Registry; @@ -43,6 +39,11 @@ typedef otb::Wrapper::ComplexInputImageParameter ComplexInputImageParame typedef otb::Wrapper::ImageBaseType ImageBaseType; +#if defined(SWIGPYTHON) +#include "otbPythonLogOutput.h" +#include "otbLogger.h" +#include "otbProgressReporterManager.h" + typedef otb::Logger Logger; typedef otb::Logger::Pointer Logger_Pointer; typedef otb::LogOutputCallback LogOutputCallback; @@ -50,5 +51,6 @@ typedef otb::PythonLogOutput PythonLogOutput; typedef otb::PythonLogOutput::Pointer PythonLogOutput_Pointer; typedef otb::ProgressReporterManager ProgressReporterManager; typedef otb::ProgressReporterManager::Pointer ProgressReporterManager_Pointer; +#endif #endif