Part: include header with export macros

This commit is contained in:
wmayer
2022-03-24 21:02:01 +01:00
parent 5bab6fb189
commit 2ef7af2ead
21 changed files with 29 additions and 26 deletions

View File

@@ -24,6 +24,7 @@
#ifndef PART_BREPOFFSETAPI_MAKEOFFSETFIX_H
#define PART_BREPOFFSETAPI_MAKEOFFSETFIX_H
#include <Mod/Part/PartGlobal.h>
#include <BRepOffsetAPI_MakeOffset.hxx>
#include <list>
#include <map>

View File

@@ -24,6 +24,7 @@
#ifndef PART_CROSSSECTION_H
#define PART_CROSSSECTION_H
#include <Mod/Part/PartGlobal.h>
#include <list>
#include <TopTools_IndexedMapOfShape.hxx>

View File

@@ -28,6 +28,7 @@
#include <vector>
#include <gp_Dir.hxx>
#include <TopoDS_Shape.hxx>
#include <Mod/Part/PartGlobal.h>
namespace Part
{

View File

@@ -30,6 +30,7 @@
#include <TopoDS_Wire.hxx>
#include <memory>
#include <Mod/Part/PartGlobal.h>
namespace Part
{

View File

@@ -25,6 +25,7 @@
#define PART_GEOMETRYEXTENSION_H
#include <Base/Persistence.h>
#include <Mod/Part/PartGlobal.h>
#include <memory>
#include <string>

View File

@@ -24,6 +24,7 @@
#ifndef PART_IMPORT_IGES_H
#define PART_IMPORT_IGES_H
#include <Mod/Part/PartGlobal.h>
#include <TopoDS_Shape.hxx>
namespace App {

View File

@@ -27,6 +27,7 @@
#define _ImportStep_h_
#include <TopoDS_Shape.hxx>
#include <Mod/Part/PartGlobal.h>
#include <App/ComplexGeoData.h>
namespace App {

View File

@@ -54,6 +54,7 @@
# include <Standard_TypeMismatch.hxx>
# include <Standard_Underflow.hxx>
#include <Mod/Part/PartGlobal.h>
#include <Base/Console.h>
#include <Base/PyObjectBase.h>
#include <Base/Interpreter.h>

View File

@@ -26,16 +26,7 @@
#include <FCConfig.h>
// Exporting of App classes
#ifdef FC_OS_WIN32
# define PartExport __declspec(dllexport)
#else // for Linux
# define PartExport
#endif
//needed to make autogenerated Py interface source code to compile
#define AttacherExport PartExport
#include <Mod/Part/PartGlobal.h>
// here get the warnings of too long specifiers disabled (needed for VC6)
#ifdef _MSC_VER

View File

@@ -23,6 +23,7 @@
#ifndef PART_PRISM_EXTENSION_H
#define PART_PRISM_EXTENSION_H
#include <Mod/Part/PartGlobal.h>
#include <App/DocumentObjectExtension.h>
#include <App/PropertyUnits.h>
#include <TopoDS_Face.hxx>

View File

@@ -27,6 +27,7 @@
#include <Message_ProgressIndicator.hxx>
#include <Standard_Version.hxx>
#include <Base/Sequencer.h>
#include <Mod/Part/PartGlobal.h>
#include <memory>
namespace Part {

View File

@@ -24,6 +24,7 @@
#ifndef PART_EDGECLUSTER_H
#define PART_EDGECLUSTER_H
#include <Mod/Part/PartGlobal.h>
#include <gp_Pnt.hxx>
#include <TopoDS_Edge.hxx>
#include <vector>

View File

@@ -38,6 +38,7 @@
#include <TopTools_MapOfShape.hxx>
#include <TopTools_ListOfShape.hxx>
#include <BRepBuilderAPI_MakeShape.hxx>
#include <Mod/Part/PartGlobal.h>
namespace ModelRefine

View File

@@ -26,20 +26,7 @@
#include <FCConfig.h>
// Importing of App classes
#ifdef FC_OS_WIN32
# define PartExport __declspec(dllimport)
# define PartGuiExport __declspec(dllexport)
#else // for Linux
# define PartExport
# define PartGuiExport
#endif
#ifdef FC_OS_WIN32
# ifndef NOMINMAX
# define NOMINMAX
# endif
#endif
#include <Mod/Part/PartGlobal.h>
// here get the warnings of too long specifiers disabled (needed for VC6)
#ifdef _MSC_VER
@@ -50,6 +37,9 @@
#endif
#ifdef FC_OS_WIN32
# ifndef NOMINMAX
# define NOMINMAX
# endif
# include <windows.h>
#endif

View File

@@ -34,6 +34,7 @@
#include <vector>
#include <memory>
#include <Gui/SoFCSelectionContext.h>
#include <Mod/Part/PartGlobal.h>
class SoCoordinateElement;
class SoGLCoordinateElement;

View File

@@ -34,6 +34,7 @@
#include <vector>
#include <memory>
#include <Gui/SoFCSelectionContext.h>
#include <Mod/Part/PartGlobal.h>
class SoGLCoordinateElement;
class SoTextureCoordinateBundle;

View File

@@ -34,6 +34,7 @@
#include <vector>
#include <memory>
#include <Gui/SoFCSelectionContext.h>
#include <Mod/Part/PartGlobal.h>
class SoCoordinateElement;
class SoGLCoordinateElement;

View File

@@ -29,6 +29,7 @@
#include <Inventor/nodes/SoSubNode.h>
#include <Inventor/nodes/SoShape.h>
#include <Inventor/elements/SoReplacedElement.h>
#include <Mod/Part/PartGlobal.h>
namespace PartGui {

View File

@@ -26,6 +26,7 @@
#include <App/Extension.h>
#include <Gui/ViewProviderExtensionPython.h>
#include <Mod/Part/PartGlobal.h>
namespace PartGui
{

View File

@@ -25,6 +25,7 @@
#define PART_WORKBENCH_H
#include <Gui/Workbench.h>
#include <Mod/Part/PartGlobal.h>
namespace PartGui {

View File

@@ -29,12 +29,16 @@
// Part
#ifndef PartExport
#ifdef Part_EXPORTS
# define PartExport FREECAD_DECL_EXPORT
# define PartExport FREECAD_DECL_EXPORT
#else
# define PartExport FREECAD_DECL_IMPORT
# define PartExport FREECAD_DECL_IMPORT
#endif
#endif
#ifndef AttacherExport
#define AttacherExport PartExport
#endif
// PartGui
#ifndef PartGuiExport
#ifdef PartGui_EXPORTS