PCH for Sketcher/PartDesign
This commit is contained in:
committed by
abdullahtahiriyo
parent
a733dc6ddd
commit
e80af8b4f2
@@ -143,6 +143,11 @@ SET(PartDesign_SRCS
|
||||
add_library(PartDesign SHARED ${PartDesign_SRCS})
|
||||
target_link_libraries(PartDesign ${PartDesign_LIBS})
|
||||
|
||||
if(FREECAD_USE_PCH)
|
||||
add_definitions(-D_PreComp_)
|
||||
GET_MSVC_PRECOMPILED_SOURCE("PreCompiled.cpp" PartDesign_CPP_SRCS ${PartDesign_SRCS})
|
||||
ADD_MSVC_PRECOMPILED_HEADER(PartDesign PreCompiled.h PreCompiled.cpp PartDesign_CPP_SRCS)
|
||||
endif(FREECAD_USE_PCH)
|
||||
|
||||
SET_BIN_DIR(PartDesign _PartDesign /Mod/PartDesign)
|
||||
SET_PYTHON_PREFIX_SUFFIX(PartDesign)
|
||||
|
||||
@@ -33,8 +33,8 @@
|
||||
# define MeshExport __declspec(dllimport)
|
||||
#else // for Linux
|
||||
# define PartDesignExport
|
||||
# define PartExport
|
||||
# define MeshExport
|
||||
# define PartExport
|
||||
# define MeshExport
|
||||
#endif
|
||||
|
||||
#ifdef _MSC_VER
|
||||
@@ -60,6 +60,24 @@
|
||||
// OpenCasCade =====================================================================================
|
||||
#include <Mod/Part/App/OpenCascadeAll.h>
|
||||
|
||||
// Apart from the Part OpenCascadeAll, I need:
|
||||
# include <GProp_GProps.hxx>
|
||||
# include <BRepGProp.hxx>
|
||||
# include <BRepProj_Projection.hxx>
|
||||
# include <BRepFeat_MakePrism.hxx>
|
||||
# include <BRepBuilderAPI_MakeSolid.hxx>
|
||||
# include <BRepBuilderAPI_Sewing.hxx>
|
||||
# include <BRepClass3d_SolidClassifier.hxx>
|
||||
# include <ShapeAnalysis_FreeBounds.hxx>
|
||||
# include <BRepOffsetAPI_ThruSections.hxx>
|
||||
# include <BRepAlgo.hxx>
|
||||
# include <ShapeFix_Shape.hxx>
|
||||
# include <ShapeFix_ShapeTolerance.hxx>
|
||||
# include <BRepFilletAPI_MakeChamfer.hxx>
|
||||
# include <BRepOffsetAPI_DraftAngle.hxx>
|
||||
# include <GeomAPI_IntSS.hxx>
|
||||
|
||||
|
||||
#include <Python.h>
|
||||
|
||||
#endif // _PreComp_
|
||||
|
||||
@@ -112,9 +112,23 @@ SET(Sketcher_SRCS
|
||||
${Datatypes_SRCS}
|
||||
)
|
||||
|
||||
SET(Sketcher_PCH_SRCS
|
||||
${Features_SRCS}
|
||||
${SketchModule_SRCS}
|
||||
${Python_SRCS}
|
||||
${Properties_SRCS}
|
||||
${Datatypes_SRCS}
|
||||
)
|
||||
|
||||
add_library(Sketcher SHARED ${Sketcher_SRCS})
|
||||
target_link_libraries(Sketcher ${Sketcher_LIBS})
|
||||
|
||||
if(FREECAD_USE_PCH)
|
||||
add_definitions(-D_PreComp_)
|
||||
GET_MSVC_PRECOMPILED_SOURCE("PreCompiled.cpp" Sketcher_CPP_SRCS ${Sketcher_PCH_SRCS})
|
||||
ADD_MSVC_PRECOMPILED_HEADER(Sketcher PreCompiled.h PreCompiled.cpp Sketcher_CPP_SRCS)
|
||||
endif(FREECAD_USE_PCH)
|
||||
|
||||
|
||||
SET_BIN_DIR(Sketcher Sketcher /Mod/Sketcher)
|
||||
SET_PYTHON_PREFIX_SUFFIX(Sketcher)
|
||||
|
||||
@@ -53,6 +53,11 @@
|
||||
#include <bitset>
|
||||
|
||||
#include <Mod/Part/App/OpenCascadeAll.h>
|
||||
// Other needed opencascade
|
||||
# include <ShapeFix_Wire.hxx>
|
||||
# include <BRepOffsetAPI_NormalProjection.hxx>
|
||||
# include <GeomConvert_BSplineCurveKnotSplitting.hxx>
|
||||
|
||||
#include <Python.h>
|
||||
|
||||
#elif defined(FC_OS_WIN32)
|
||||
|
||||
Reference in New Issue
Block a user