-
Notifications
You must be signed in to change notification settings - Fork 342
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor precompiled headers and improve Windows compatibility. Extend TKernel, TKMath and TKBRep pch with more usage headers. Implement PCH for TKDEIGES, TKDESTEP, TKMesh, and TKXSBase.
- Loading branch information
Showing
17 changed files
with
123 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,19 @@ | ||
#ifndef TKBRep_HXX | ||
#define TKBRep_HXX | ||
|
||
// Windows-specific headers (for MSVC) | ||
#ifdef _WIN32 | ||
#ifndef NOMINMAX | ||
#define NOMINMAX | ||
#endif | ||
#include <windows.h> // For Windows API functions like WideCharToMultiByte | ||
#include <tchar.h> // For Unicode/MBCS mappings | ||
#ifdef GetObject | ||
#undef GetObject | ||
#endif | ||
#endif | ||
|
||
#include <TopoDS_Shape.hxx> | ||
#include <TopoDS_Solid.hxx> | ||
#include <TopoDS_Shell.hxx> | ||
#include <TopoDS_Face.hxx> | ||
#include <TopoDS_Wire.hxx> | ||
#include <TopoDS_Edge.hxx> | ||
#include <TopoDS_Vertex.hxx> | ||
#include <TopoDS_Builder.hxx> | ||
#include <TopoDS_CompSolid.hxx> | ||
#include <TopoDS_Compound.hxx> | ||
#include <TopoDS_Builder.hxx> | ||
#include <TopoDS_Edge.hxx> | ||
#include <TopoDS_Face.hxx> | ||
#include <TopoDS_Iterator.hxx> | ||
#include <TopoDS_Shape.hxx> | ||
#include <TopoDS_Shell.hxx> | ||
#include <TopoDS_Solid.hxx> | ||
#include <TopoDS_Vertex.hxx> | ||
#include <TopoDS_Wire.hxx> | ||
|
||
#include <BRep_Builder.hxx> | ||
#include <BRep_Tool.hxx> | ||
|
||
#include <BRepTools.hxx> | ||
|
||
#endif // TKBRep_HXX |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
project(TKDEIGES) | ||
|
||
OCCT_INCLUDE_CMAKE_FILE (adm/cmake/occt_toolkit) | ||
|
||
# Add the precompiled header | ||
ADD_PRECOMPILED_HEADER(TKDEIGES "${CMAKE_CURRENT_SOURCE_DIR}/TKDEIGES_pch.hxx" TRUE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#ifndef TKDEIGES_PCH_H | ||
#define TKDEIGES_PCH_H | ||
|
||
#include <IGESData_HArray1OfIGESEntity.hxx> | ||
#include <IGESData_IGESEntity.hxx> | ||
#include <IGESData_IGESReaderData.hxx> | ||
#include <IGESData_ParamReader.hxx> | ||
|
||
#endif // TKDEIGES_PCH_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#ifndef TKDESTEP_PCH_H | ||
#define TKDESTEP_PCH_H | ||
|
||
#include <StepData_StepReaderData.hxx> | ||
#include <StepData_StepWriter.hxx> | ||
#include <StepGeom_GeometricRepresentationItem.hxx> | ||
#include <StepKinematics_KinematicPair.hxx> | ||
#include <StepRepr_Representation.hxx> | ||
#include <StepRepr_RepresentationItem.hxx> | ||
|
||
#endif // TKDESTEP_PCH_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
project(TKMesh) | ||
|
||
OCCT_INCLUDE_CMAKE_FILE (adm/cmake/occt_toolkit) | ||
|
||
# Add the precompiled header | ||
ADD_PRECOMPILED_HEADER(TKMesh "${CMAKE_CURRENT_SOURCE_DIR}/TKMesh_pch.hxx" TRUE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#ifndef TKMESH_PCH_H | ||
#define TKMESH_PCH_H | ||
|
||
#include <IMeshData_Types.hxx> | ||
|
||
#endif // TKMESH_PCH_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
project(TKV3d) | ||
|
||
OCCT_INCLUDE_CMAKE_FILE (adm/cmake/occt_toolkit) | ||
|
||
# Add the precompiled header | ||
ADD_PRECOMPILED_HEADER(TKV3d "${CMAKE_CURRENT_SOURCE_DIR}/TKV3d_pch.hxx" TRUE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#ifndef TKTKV3d_PCH_H | ||
#define TKTKV3d_PCH_H | ||
|
||
#include <AIS_InteractiveObject.hxx> | ||
#include <PrsMgr_PresentableObject.hxx> | ||
#include <SelectMgr_EntityOwner.hxx> | ||
#include <SelectMgr_SelectableObject.hxx> | ||
|
||
#endif // TKTKV3d_PCH_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
project(TKXSBase) | ||
|
||
OCCT_INCLUDE_CMAKE_FILE (adm/cmake/occt_toolkit) | ||
|
||
# Add the precompiled header | ||
ADD_PRECOMPILED_HEADER(TKXSBase "${CMAKE_CURRENT_SOURCE_DIR}/TKXSBase_pch.hxx" TRUE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#ifndef TKXSBASE_PCH_H | ||
#define TKXSBASE_PCH_H | ||
|
||
#include <Interface_Check.hxx> | ||
#include <Interface_CheckIterator.hxx> | ||
#include <Interface_EntityIterator.hxx> | ||
#include <Interface_FileReaderData.hxx> | ||
#include <Interface_Graph.hxx> | ||
|
||
#endif // TKXSBASE_PCH_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters