mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0029684: Configuration: modification of build Inspector tool standalone on occt
- samples/tools/TStandalone is removed, to build Inspector out of OCCT, CMake should use tools/CMakeLists.txt fileName - samples/tools/TInspectorEXE is moved to tools/TInspectorEXE - TInspectorAPI_Version.hxx provides compilation inspector with earlier version of OCCT.
This commit is contained in:
@@ -3,3 +3,4 @@ TInspectorAPI_Communicator.hxx
|
||||
TInspectorAPI_PluginParameters.cxx
|
||||
TInspectorAPI_PluginParameters.hxx
|
||||
TInspectorAPI_PreferencesDataMap.hxx
|
||||
TInspectorAPI_Version.hxx
|
||||
|
@@ -14,6 +14,7 @@
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <inspector/TInspectorAPI_PluginParameters.hxx>
|
||||
#include <inspector/TInspectorAPI_Version.hxx>
|
||||
|
||||
#if OCC_VERSION_HEX <= 0x060901
|
||||
IMPLEMENT_STANDARD_HANDLE (TInspectorAPI_PluginParameters, Standard_Transient)
|
||||
@@ -274,6 +275,7 @@ void TInspectorAPI_PluginParameters::ParametersToShape (const TCollection_AsciiS
|
||||
return;
|
||||
anOrientationStr.Split (anOrientationStr.Length() - 1);
|
||||
|
||||
#if TINSPECTORAPI_VERSION_HEX > 0x070200
|
||||
TopAbs_Orientation anOrientation;
|
||||
if (!TopAbs::ShapeOrientationFromString (anOrientationStr.ToCString(), anOrientation))
|
||||
return;
|
||||
@@ -282,4 +284,7 @@ void TInspectorAPI_PluginParameters::ParametersToShape (const TCollection_AsciiS
|
||||
|
||||
theShape.Location (aLocation);
|
||||
theShape.Orientation (anOrientation);
|
||||
#else
|
||||
(void)theValue; (void)theShape;
|
||||
#endif
|
||||
}
|
||||
|
41
tools/TInspectorAPI/TInspectorAPI_Version.hxx
Normal file
41
tools/TInspectorAPI/TInspectorAPI_Version.hxx
Normal file
@@ -0,0 +1,41 @@
|
||||
// Copyright (c) 2018 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
/*======================================================================
|
||||
//
|
||||
// Purpose: Defines macros identifying current version of Inspector
|
||||
// The version is equal to current OCCT version and used to support compile compatibility
|
||||
// to previous OCCT versions interface.
|
||||
// To compile Inspector with earlier version of OCCT, change version variable here to needed OCCT version.
|
||||
//
|
||||
// TINSPECTORAPI_VERSION_MAJOR : (integer) number identifying major version
|
||||
// TINSPECTORAPI_VERSION_MINOR : (integer) number identifying minor version
|
||||
// TINSPECTORAPI_VERSION_MAINTENANCE : (integer) number identifying maintenance version
|
||||
// TINSPECTORAPI_VERSION_HEX : (hex) complete number as hex, two positions per each of major, minor, and patch number
|
||||
//
|
||||
//======================================================================*/
|
||||
|
||||
#ifndef _TInspectorAPI_Version_HeaderFile
|
||||
#define _TInspectorAPI_Version_HeaderFile
|
||||
|
||||
#include <Standard_Version.hxx>
|
||||
|
||||
// Primary definitions
|
||||
#define TINSPECTORAPI_VERSION_MAJOR OCC_VERSION_MAJOR
|
||||
#define TINSPECTORAPI_VERSION_MINOR OCC_VERSION_MINOR
|
||||
#define TINSPECTORAPI_VERSION_MAINTENANCE 0//OCC_VERSION_MAINTENANCE
|
||||
|
||||
// Derived: complete version as hex (0x0'major'0'minor'0'maintenance')
|
||||
#define TINSPECTORAPI_VERSION_HEX (TINSPECTORAPI_VERSION_MAJOR << 16 | TINSPECTORAPI_VERSION_MINOR << 8 | TINSPECTORAPI_VERSION_MAINTENANCE)
|
||||
|
||||
#endif /* _TInspectorAPI_Version_HeaderFile */
|
Reference in New Issue
Block a user