[Spreadsheet] remove Python.h and Xerces

This commit is contained in:
Uwe
2022-03-20 20:44:17 +01:00
parent b037d8e240
commit 66e8a2bef3
6 changed files with 60 additions and 71 deletions

View File

@@ -11,9 +11,6 @@
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <Python.h>
#endif
#include <CXX/Extensions.hxx>
#include <CXX/Objects.hxx>
@@ -23,6 +20,7 @@
#include <Base/PyObjectBase.h>
#include "Sheet.h"
namespace Spreadsheet {
class Module : public Py::ExtensionModule<Module>
{

View File

@@ -1,59 +1,58 @@
if(WIN32)
add_definitions(-DFCAppSpreadsheet)
endif(WIN32)
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${PYTHON_INCLUDE_DIRS}
${Boost_INCLUDE_DIRS}
${ZLIB_INCLUDE_DIR}
${XercesC_INCLUDE_DIRS}
)
set(Spreadsheet_LIBS
FreeCADApp
)
set(Spreadsheet_SRCS
Cell.cpp
Cell.h
DisplayUnit.h
PropertySheet.cpp
PropertySheet.h
PropertySheetPy.xml
PropertySheetPyImp.cpp
PropertyColumnWidths.cpp
PropertyColumnWidths.h
PropertyColumnWidthsPy.xml
PropertyColumnWidthsPyImp.cpp
PropertyRowHeights.cpp
PropertyRowHeights.h
PropertyRowHeightsPy.xml
PropertyRowHeightsPyImp.cpp
PreCompiled.cpp
PreCompiled.h
Sheet.cpp
Sheet.h
SheetPy.xml
SheetPyImp.cpp
SheetObserver.cpp
SheetObserver.h
Utils.cpp
Utils.h
AppSpreadsheet.cpp
)
generate_from_xml(SheetPy)
generate_from_xml(PropertySheetPy)
generate_from_xml(PropertyColumnWidthsPy)
generate_from_xml(PropertyRowHeightsPy)
add_library(Spreadsheet SHARED ${Spreadsheet_SRCS})
target_link_libraries(Spreadsheet ${Spreadsheet_LIBS})
SET_BIN_DIR(Spreadsheet Spreadsheet /Mod/Spreadsheet)
SET_PYTHON_PREFIX_SUFFIX(Spreadsheet)
INSTALL(TARGETS Spreadsheet DESTINATION ${CMAKE_INSTALL_LIBDIR})
if(WIN32)
add_definitions(-DFCAppSpreadsheet)
endif(WIN32)
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${PYTHON_INCLUDE_DIRS}
${Boost_INCLUDE_DIRS}
${ZLIB_INCLUDE_DIR}
)
set(Spreadsheet_LIBS
FreeCADApp
)
set(Spreadsheet_SRCS
Cell.cpp
Cell.h
DisplayUnit.h
PropertySheet.cpp
PropertySheet.h
PropertySheetPy.xml
PropertySheetPyImp.cpp
PropertyColumnWidths.cpp
PropertyColumnWidths.h
PropertyColumnWidthsPy.xml
PropertyColumnWidthsPyImp.cpp
PropertyRowHeights.cpp
PropertyRowHeights.h
PropertyRowHeightsPy.xml
PropertyRowHeightsPyImp.cpp
PreCompiled.cpp
PreCompiled.h
Sheet.cpp
Sheet.h
SheetPy.xml
SheetPyImp.cpp
SheetObserver.cpp
SheetObserver.h
Utils.cpp
Utils.h
AppSpreadsheet.cpp
)
generate_from_xml(SheetPy)
generate_from_xml(PropertySheetPy)
generate_from_xml(PropertyColumnWidthsPy)
generate_from_xml(PropertyRowHeightsPy)
add_library(Spreadsheet SHARED ${Spreadsheet_SRCS})
target_link_libraries(Spreadsheet ${Spreadsheet_LIBS})
SET_BIN_DIR(Spreadsheet Spreadsheet /Mod/Spreadsheet)
SET_PYTHON_PREFIX_SUFFIX(Spreadsheet)
INSTALL(TARGETS Spreadsheet DESTINATION ${CMAKE_INSTALL_LIBDIR})

View File

@@ -45,9 +45,6 @@
#ifdef _PreComp_
// Python
#include <Python.h>
// standard
#include <iostream>
#include <assert.h>

View File

@@ -21,10 +21,8 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <Python.h>
# include <QIcon>
# include <QImage>
# include <QFileInfo>
@@ -51,6 +49,7 @@
#include "ViewProviderSpreadsheet.h"
#include "SpreadsheetView.h"
// use a different name to CreateCommand()
void CreateSpreadsheetCommands(void);

View File

@@ -5,7 +5,6 @@ include_directories(
${COIN3D_INCLUDE_DIRS}
${ZLIB_INCLUDE_DIR}
${PYTHON_INCLUDE_DIRS}
${XercesC_INCLUDE_DIRS}
)
generate_from_xml(ViewProviderSpreadsheetPy)

View File

@@ -47,9 +47,6 @@
#ifdef _PreComp_
// Python
#include <Python.h>
// standard
#include <iostream>
#include <assert.h>