App: Optimize includes to reduce compile time

This commit is contained in:
wmayer
2022-03-07 15:53:58 +01:00
parent 5926060281
commit 4977e55e51
21 changed files with 38 additions and 19 deletions

View File

@@ -30,6 +30,9 @@
#include <boost/algorithm/string/predicate.hpp>
#include "ComplexGeoData.h"
#include <Base/BoundBox.h>
#include <Base/Placement.h>
#include <Base/Rotation.h>
using namespace Data;

View File

@@ -24,18 +24,23 @@
#ifndef _AppComplexGeoData_h_
#define _AppComplexGeoData_h_
#include <Base/BoundBox.h>
#include <Base/Handle.h>
#include <Base/Matrix.h>
#include <Base/Persistence.h>
#include <Base/Placement.h>
#include <Base/Rotation.h>
#ifdef __GNUC__
# include <stdint.h>
#endif
namespace Base
{
class Placement;
class Rotation;
template <class _Precision> class BoundBox3;
typedef BoundBox3<double> BoundBox3d;
}
namespace Data
{

View File

@@ -59,6 +59,7 @@ recompute path. Also, it enables more complicated dependencies beyond trees.
#ifndef _PreComp_
# include <bitset>
# include <stack>
# include <boost/filesystem.hpp>
#endif

View File

@@ -28,7 +28,6 @@
#include "PropertyStandard.h"
#include <map>
#include <stack>
#include <vector>
namespace Base {

View File

@@ -23,13 +23,18 @@
#include "PreCompiled.h"
#ifndef _PreComp_
#include <stack>
#endif
#include <App/DocumentObjectPy.h>
#include <Base/Console.h>
#include <Base/Matrix.h>
#include <Base/Tools.h>
#include <Base/Writer.h>
#include "Application.h"
#include "ComplexGeoData.h"
#include "Document.h"
#include "DocumentObject.h"
#include "DocumentObjectExtension.h"

View File

@@ -29,12 +29,16 @@
#include <App/PropertyExpressionEngine.h>
#include <App/PropertyLinks.h>
#include <App/PropertyStandard.h>
#include <Base/Matrix.h>
#include <Base/SmartPtrPy.h>
#include <bitset>
#include <unordered_map>
namespace Base
{
class Matrix4D;
}
namespace App
{
class Document;

View File

@@ -32,13 +32,12 @@
#include <App/Range.h>
#include <Base/Exception.h>
#include <Base/BaseClass.h>
#include <Base/Quantity.h>
#if defined(__clang__)
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Woverloaded-virtual"
#endif
namespace Base
{
class Quantity;
}
namespace App {
@@ -224,8 +223,4 @@ public:
}
#if defined(__clang__)
# pragma clang diagnostic pop
#endif
#endif // EXPRESSION_H

View File

@@ -26,6 +26,7 @@
#define EXPRESSION_PARSER_H
#include "Expression.h"
#include <Base/Quantity.h>
namespace App {

View File

@@ -25,8 +25,6 @@
#ifndef APP_FEATURECUSTOM_H
#define APP_FEATURECUSTOM_H
#include <App/DocumentObject.h>
namespace App
{

View File

@@ -27,6 +27,7 @@
#include "GeoFeature.h"
#include "GeoFeatureGroupExtension.h"
#include "ComplexGeoData.h"
using namespace App;

View File

@@ -25,6 +25,7 @@
#ifndef APP_GeoFeatureGroup_H
#define APP_GeoFeatureGroup_H
#include "DocumentObject.h"
#include "GroupExtension.h"
#include "PropertyGeo.h"

View File

@@ -24,7 +24,6 @@
#ifndef _AppPlacement_h_
#define _AppPlacement_h_
#include <Base/Placement.h>
#include "FeaturePython.h"
namespace App

View File

@@ -30,8 +30,6 @@
#include <Base/Unit.h>
#include <Base/Vector3D.h>
#include "Property.h"
#include "ComplexGeoData.h"
#include "PropertyLinks.h"
#include <FCGlobal.h>

View File

@@ -28,6 +28,7 @@
#endif
#include <App/Application.h>
#include <App/ComplexGeoData.h>
#include <App/DocumentObject.h>
#include <App/Link.h>
#include <Base/Exception.h>

View File

@@ -33,6 +33,7 @@
#endif
#include <App/AutoTransaction.h>
#include <App/ComplexGeoData.h>
#include <App/DocumentObject.h>
#include <App/DocumentObjectGroup.h>
#include <App/Transactions.h>

View File

@@ -29,6 +29,7 @@
#include <QSignalMapper>
#endif
#include <App/ComplexGeoData.h>
#include <App/Document.h>
#include <App/GeoFeature.h>
#include <Base/Console.h>

View File

@@ -33,6 +33,7 @@
# include <QVBoxLayout>
#endif
#include <App/ComplexGeoData.h>
#include <App/Document.h>
#include <App/GeoFeature.h>

View File

@@ -194,9 +194,11 @@
#include <boost/algorithm/string/predicate.hpp>
#include <Base/BoundBox.h>
#include <Base/Builder3D.h>
#include <Base/FileInfo.h>
#include <Base/Exception.h>
#include <Base/Placement.h>
#include <Base/Tools.h>
#include <Base/Console.h>
#include <App/Material.h>

View File

@@ -25,6 +25,7 @@
#define PART_TOPOSHAPE_H
#include <iosfwd>
#include <list>
#include <TopoDS_Compound.hxx>
#include <TopoDS_Wire.hxx>
#include <TopTools_ListOfShape.hxx>

View File

@@ -32,6 +32,7 @@
#include <Base/Reader.h>
#include <Base/Writer.h>
#include <App/ComplexGeoData.h>
#include <App/PropertyStandard.h>
#include <App/PropertyGeo.h>
#include <Mod/Points/PointsGlobal.h>

View File

@@ -44,6 +44,7 @@
#include <Base/Converter.h>
#include <Base/CoordinateSystem.h>
#include <App/Application.h>
#include <App/ComplexGeoData.h>
#include <App/Document.h>
#include <App/Placement.h>
#include <Mod/Mesh/App/Core/Approximation.h>