]> OCCT Git - occt-wok.git/commitdiff
0024709: Avoid generation of separate header files for Handle classes
authorkgv <kgv@opencascade.com>
Mon, 31 Mar 2014 08:57:44 +0000 (12:57 +0400)
committerabv <abv@opencascade.com>
Sat, 20 Jun 2015 06:27:42 +0000 (09:27 +0300)
CPPExt - do not generate and do not include Handle_Class.hxx files
when environment variable $CSF_HANDLEHXX is set to 0.

src/CPPExt/CPPExt.cxx
src/CPPExt/CPPExt_Define.hxx
src/CPPExt/CPPExt_Template.edl
src/CPPExt/CPPExt_Transient.cxx
src/WOKsite/wok_env.bat
src/WOKsite/wok_env.sh
src/WOKsite/wok_tclshrc.tcl

index 5b464516b0cd9ed0c764f3f5c0303ef816ebf222..2b3684cf55ecc739d5ad6de6abf123c7c3845c5a 100755 (executable)
@@ -9,6 +9,12 @@
 #include <WOKTools_Messages.hxx>
 #include <MS_ParamWithValue.hxx>
 #include <MS_HArray1OfParam.hxx>
+#include <OSD_Environment.hxx>
+
+namespace
+{
+  static OSD_Environment THE_HANDLEHXX ("CSF_HANDLEHXX");
+}
 
 // Standard Extractor API : list the EDL files used by this program
 //
@@ -915,56 +921,60 @@ void CPP_ClassTypeMgt(const Handle(MS_MetaSchema)& ,
   api->Apply(var,"TypeMgt");
 }
 
+Standard_Boolean CPP_HaveHandleHeaders()
+{
+  return THE_HANDLEHXX.Value() != "0";
+}
 
 // Standard extractor API : launch the extraction of C++ files
 //                          from the type <aName>
 // 
-void CPP_Extract(const Handle(MS_MetaSchema)& aMeta,
-                const Handle(TCollection_HAsciiString)& aName,
-                const Handle(TColStd_HSequenceOfHAsciiString)& edlsfullpath,
-                const Handle(TCollection_HAsciiString)& outdir,
-                const Handle(TColStd_HSequenceOfHAsciiString)& outfile,
-                const Standard_CString DBMS)
+void CPP_Extract (const Handle(MS_MetaSchema)&                   theMeta,
+                  const Handle(TCollection_HAsciiString)&        theName,
+                  const Handle(TColStd_HSequenceOfHAsciiString)& theEdlsFullPath,
+                  const Handle(TCollection_HAsciiString)&        theOutDir,
+                  const Handle(TColStd_HSequenceOfHAsciiString)& theOutFile,
+                  const Standard_CString                         theDBMS)
 {
-  Handle(MS_Type)     srcType;
-  Handle(MS_Package)  srcPackage;
-  
-
-  // before begining, we look if the entity has something to extract...
-  //
-  if (aMeta->IsDefined(aName)) {
-    srcType   = aMeta->GetType(aName); 
+  // look if the entity has something to extract...
+  Handle(MS_Type)    aSrcType;
+  Handle(MS_Package) aSrcPackage;
+  if (theMeta->IsDefined (theName))
+  {
+    aSrcType = theMeta->GetType (theName);
   }
-  else if (aMeta->IsPackage(aName)) {
-    srcPackage = aMeta->GetPackage(aName);
+  else if (theMeta->IsPackage (theName))
+  {
+    aSrcPackage = theMeta->GetPackage (theName);
   }
-  else {
-    ErrorMsg() << "CPPExt" << aName->ToCString() << " not defined..." << endm;
+  else
+  {
+    ErrorMsg() << "CPPExt" << theName->ToCString() << " not defined..." << endm;
     Standard_NoSuchObject::Raise();
   }
-  
-  // ... and we load the templates
-  //
-  Handle(EDL_API)     api;
 
   // Package Extraction
-  //
-  if (!srcPackage.IsNull()) {
-    if (srcPackage->Methods()->Length() > 0) {
-      api = CPP_LoadTemplate(edlsfullpath,outdir,DBMS);
-      CPP_Package(aMeta,api,srcPackage,outfile);
-    }
-    else {
+  if (!aSrcPackage.IsNull())
+  {
+    if (aSrcPackage->Methods()->Length() < 1)
+    {
       return;
     }
+
+    Handle(EDL_API) anApi = CPP_LoadTemplate (theEdlsFullPath, theOutDir, theDBMS);
+    CPP_Package (theMeta, anApi, aSrcPackage, theOutFile);
+    return;
   }
+
   // Extraction of Classes
-  //
-  else if (srcType->IsKind(STANDARD_TYPE(MS_StdClass)) && !srcType->IsKind(STANDARD_TYPE(MS_GenClass)) && !srcType->IsKind(STANDARD_TYPE(MS_InstClass))) {
-    Handle(MS_StdClass) aClass = *((Handle(MS_StdClass)*)&srcType);
-    
-    if (aClass->Incomplete()) {
-      ErrorMsg() << "CPPExt" << aName->ToCString() << " not complete..." << endm;
+  if (aSrcType->IsKind (STANDARD_TYPE(MS_StdClass))
+  && !aSrcType->IsKind (STANDARD_TYPE(MS_GenClass))
+  && !aSrcType->IsKind (STANDARD_TYPE(MS_InstClass)))
+  {
+    Handle(MS_StdClass) aClass = *((Handle(MS_StdClass)*)&aSrcType);
+    if (aClass->Incomplete())
+    {
+      ErrorMsg() << "CPPExt" << theName->ToCString() << " not complete..." << endm;
       Standard_NoSuchObject::Raise();
     }
 
@@ -974,12 +984,10 @@ void CPP_Extract(const Handle(MS_MetaSchema)& aMeta,
       return;
     }
 
-    api = CPP_LoadTemplate(edlsfullpath,outdir,DBMS);
-
-    // Transient classes
-    //
+    Handle(EDL_API) anApi = CPP_LoadTemplate (theEdlsFullPath, theOutDir, theDBMS);
+    const Standard_Boolean haveHandleHeaders = CPP_HaveHandleHeaders();
     if (aClass->IsTransient()
-    && !aName->IsSameString (MS::GetTransientRootName()))
+    && !theName->IsSameString (MS::GetTransientRootName()))
     {
       if (aClass->GetInheritsNames()->Length() == 0)
       {
@@ -987,27 +995,27 @@ void CPP_Extract(const Handle(MS_MetaSchema)& aMeta,
         Standard_NoSuchObject::Raise();
       }
 
-      Handle(TCollection_HAsciiString) aHandleFile = new TCollection_HAsciiString(outdir);
-      aHandleFile->AssignCat("Handle_");
-      aHandleFile->AssignCat(aName);
-      aHandleFile->AssignCat(".hxx");
-
-      outfile->Append(aHandleFile);
-      CPP_TransientHandle(api,aName,aClass->GetInheritsNames()->Value(1),aHandleFile);
+      if (haveHandleHeaders)
+      {
+        Handle(TCollection_HAsciiString) aHandleFile = new TCollection_HAsciiString (theOutDir);
+        aHandleFile->AssignCat ("Handle_");
+        aHandleFile->AssignCat (theName);
+        aHandleFile->AssignCat (".hxx");
+        theOutFile->Append (aHandleFile);
+        CPP_TransientHandle (anApi, theName, aClass->GetInheritsNames()->Value (1), aHandleFile);
+      }
 
-      if (aClass->IsKind(STANDARD_TYPE(MS_Error)))
+      if (aClass->IsKind (STANDARD_TYPE(MS_Error)))
       {
-        CPP_ExceptionClass(aMeta,api,aClass,outfile);
+        CPP_ExceptionClass (theMeta, anApi, aClass, theOutFile);
       }
       else
       {
-        CPP_TransientClass(aMeta,api,aClass,outfile);
+        CPP_TransientClass (theMeta, anApi, aClass, theOutFile);
       }
     }
-    // Persistent classes
-    //
     else if (aClass->IsPersistent()
-         && !aName->IsSameString(MS::GetPersistentRootName()))
+         && !theName->IsSameString (MS::GetPersistentRootName()))
     {
       if (aClass->GetInheritsNames()->Length() == 0)
       {
@@ -1015,76 +1023,76 @@ void CPP_Extract(const Handle(MS_MetaSchema)& aMeta,
         Standard_NoSuchObject::Raise();
       }
 
-      Handle(TCollection_HAsciiString) aHandleFile = new TCollection_HAsciiString(outdir);
-      
-      aHandleFile->AssignCat("Handle_");
-      aHandleFile->AssignCat(aName);
-      aHandleFile->AssignCat(".hxx");
-
-      outfile->Append(aHandleFile);
+      Handle(TCollection_HAsciiString) aHandleFile;
+      if (haveHandleHeaders)
+      {
+        aHandleFile = new TCollection_HAsciiString (theOutDir);
+        aHandleFile->AssignCat ("Handle_");
+        aHandleFile->AssignCat (theName);
+        aHandleFile->AssignCat (".hxx");
+        theOutFile->Append (aHandleFile);
+      }
 
-      if (!strcmp(api->GetVariableValue("%CPPEXTDBMS")->ToCString(),"OBJY"))
+      if (!strcmp (anApi->GetVariableValue ("%CPPEXTDBMS")->ToCString(), "OBJY"))
       {
-        CPP_PersistentHandleOBJY(api,aName,aClass->GetInheritsNames()->Value(1),aHandleFile);
-        CPP_PersistentClassOBJY(aMeta,api,aClass,outfile);
+        if (haveHandleHeaders)
+        {
+          CPP_PersistentHandleOBJY (anApi, theName, aClass->GetInheritsNames()->Value (1), aHandleFile);
+        }
+        CPP_PersistentClassOBJY (theMeta, anApi, aClass, theOutFile);
       }
-      else if (!strcmp(api->GetVariableValue("%CPPEXTDBMS")->ToCString(),"MEM"))
+      else if (!strcmp (anApi->GetVariableValue ("%CPPEXTDBMS")->ToCString(), "MEM"))
       {
       }
-      else if (!strcmp(api->GetVariableValue("%CPPEXTDBMS")->ToCString(),"OBJS"))
+      else if (!strcmp (anApi->GetVariableValue ("%CPPEXTDBMS")->ToCString(), "OBJS"))
       {
-        CPP_PersistentHandleOBJS(api,aName,aClass->GetInheritsNames()->Value(1),aHandleFile);
-        CPP_PersistentClassOBJS(aMeta,api,aClass,outfile);
+        if (haveHandleHeaders)
+        {
+          CPP_PersistentHandleOBJS (anApi, theName, aClass->GetInheritsNames()->Value (1), aHandleFile);
+        }
+        CPP_PersistentClassOBJS (theMeta, anApi, aClass, theOutFile);
       }
-      else if (!strcmp(api->GetVariableValue("%CPPEXTDBMS")->ToCString(),"OO2"))
+      else if (!strcmp (anApi->GetVariableValue ("%CPPEXTDBMS")->ToCString(), "OO2"))
       {
       }
-      else if (!strcmp(api->GetVariableValue("%CPPEXTDBMS")->ToCString(),"CSFDB"))
+      else if (!strcmp (anApi->GetVariableValue ("%CPPEXTDBMS")->ToCString(), "CSFDB"))
       {
-        CPP_PersistentHandleCSFDB(api,aName,aClass->GetInheritsNames()->Value(1),aHandleFile);
-        CPP_PersistentClassCSFDB(aMeta,api,aClass,outfile);
+        if (haveHandleHeaders)
+        {
+          CPP_PersistentHandleCSFDB (anApi, theName, aClass->GetInheritsNames()->Value (1), aHandleFile);
+        }
+        CPP_PersistentClassCSFDB (theMeta, anApi, aClass, theOutFile);
       }
     }
-    // Storable classes
-    //
     else if (aClass->IsStorable())
     {
-      CPP_StorableClass(aMeta,api,aClass,outfile);
-    } 
-    // MPV classes
-    //
+      CPP_StorableClass (theMeta, anApi, aClass, theOutFile);
+    }
     else
     {
-      CPP_MPVClass(aMeta,api,aClass,outfile);
+      CPP_MPVClass (theMeta, anApi, aClass, theOutFile);
     }
   }
-  // Enumerations
-  //
-  else if (srcType->IsKind(STANDARD_TYPE(MS_Enum)))
+  else if (aSrcType->IsKind (STANDARD_TYPE(MS_Enum)))
   {
-    Handle(MS_Enum) anEnum = *((Handle(MS_Enum)*)&srcType);
-  
-    api = CPP_LoadTemplate(edlsfullpath,outdir,DBMS);
-    CPP_Enum(aMeta,api,anEnum,outfile);
+    Handle(MS_Enum) anEnum = *((Handle(MS_Enum)*)&aSrcType);
+    Handle(EDL_API) anApi  = CPP_LoadTemplate (theEdlsFullPath, theOutDir, theDBMS);
+    CPP_Enum (theMeta, anApi, anEnum, theOutFile);
   }
-  // Aliases
-  //
-  else if (srcType->IsKind(STANDARD_TYPE(MS_Alias)))
+  else if (aSrcType->IsKind (STANDARD_TYPE(MS_Alias)))
   {
-    Handle(MS_Alias) anAlias = *((Handle(MS_Alias)*)&srcType);
-
-    api = CPP_LoadTemplate(edlsfullpath,outdir,DBMS);
-    CPP_Alias(aMeta,api,anAlias,outfile);
+    Handle(MS_Alias) anAlias = *((Handle(MS_Alias)*)&aSrcType);
+    Handle(EDL_API)  anApi   = CPP_LoadTemplate (theEdlsFullPath, theOutDir, theDBMS);
+    CPP_Alias (theMeta, anApi, anAlias, theOutFile);
   }
-  else if (srcType->IsKind(STANDARD_TYPE(MS_Pointer)))
+  else if (aSrcType->IsKind (STANDARD_TYPE(MS_Pointer)))
   {
-    Handle(MS_Pointer) aPointer = *((Handle(MS_Pointer)*)&srcType);
-
-    api = CPP_LoadTemplate(edlsfullpath,outdir,DBMS);
-    CPP_Pointer(aMeta,api,aPointer,outfile);
+    Handle(MS_Pointer) aPointer = *((Handle(MS_Pointer)*)&aSrcType);
+    Handle(EDL_API)    anApi    = CPP_LoadTemplate (theEdlsFullPath, theOutDir, theDBMS);
+    CPP_Pointer (theMeta, anApi, aPointer, theOutFile);
   }
 }
-                
+
 Handle(TCollection_HAsciiString) CPP_WithoutHandleSuffix (const Handle(TCollection_HAsciiString)& theName)
 {
   const Standard_Integer aSuffLen = Standard_Integer(sizeof("Handle_") - 1);
index b91c2c8c1858bb8f4f0bc783cefa9a6edbaa560d..0646b0244a6fb9577142b38ce95a5df8cf5cb80a 100755 (executable)
@@ -103,4 +103,7 @@ void CPP_ClassTypeMgt(const Handle(MS_MetaSchema)& aMeta,
 //! Auxiliary function to remove Handle_ suffix
 Handle(TCollection_HAsciiString) CPP_WithoutHandleSuffix (const Handle(TCollection_HAsciiString)& theName);
 
+//! Read $CSF_HANDLEHXX variable
+Standard_Boolean CPP_HaveHandleHeaders();
+
 #endif
index c7c58ecb1e6d2c64017dbb7ff2692c45fa1cf18a..911b9a30774088ad461c0ff7847d1ddbb9886e79 100755 (executable)
@@ -11,7 +11,7 @@
 @template HandleTransient (%HTName,%HTInherits) is
 $// This file is generated by WOK (CPPExt).
 $// Please do not edit this file; modify original file instead.
-$// The copyright and license terms as defined for the original file apply to 
+$// The copyright and license terms as defined for the original file apply to
 $// this header file considered to be the "object code" form of the original source.
 $
 $#ifndef _Handle_%HTName_HeaderFile
@@ -35,6 +35,67 @@ $#endif // _Handle_%HTName_HeaderFile
 -- extraction of a transient class
 -- ===============================
 
+@template TransientInstClass_HandleHxx (%ClassComment,
+                                        %Class,
+                                        %TICIncludes,
+                                        %Inherits,
+                                        %TICPublicmets,
+                                        %TICPublicfriends,
+                                        %TICProtectedmets,
+                                        %TICProtectedfields,
+                                        %TICPrivatemets,
+                                        %TICPrivatefields,
+                                        %TICPrivatefriends,
+                                        %TICDefines,
+                                        %TICInlineIncludes,
+                                        %TICUndefines,
+                                        %TICSuppMethod) is
+$// This file is generated by WOK (CPPExt).
+$// Please do not edit this file; modify original file instead.
+$// The copyright and license terms as defined for the original file apply to
+$// this header file considered to be the "object code" form of the original source.
+$
+$#ifndef _%Class_HeaderFile
+$#define _%Class_HeaderFile
+$
+$#include <Standard.hxx>
+$#include <Standard_DefineHandle.hxx>
+$#include <Handle_%Class.hxx>
+$
+$%TICIncludes
+$
+$%ClassComment
+$class %Class : public %Inherits
+${
+$
+$public:
+$
+$%TICPublicmets
+$%TICPublicfriends
+$
+$  DEFINE_STANDARD_RTTI(%Class)
+$
+$protected:
+$
+$%TICProtectedmets
+$%TICProtectedfields
+$
+$private:
+$
+$%TICPrivatemets
+$%TICPrivatefields
+$%TICPrivatefriends
+$};
+$
+$%TICDefines
+$%TICInlineIncludes
+$%TICUndefines
+$
+$%TICSuppMethod
+$
+$#endif // _%Class_HeaderFile
+@end;
+
 @template TransientInstClass (%ClassComment,
                               %Class,
                               %TICIncludes,
@@ -52,7 +113,7 @@ $#endif // _Handle_%HTName_HeaderFile
                               %TICSuppMethod) is
 $// This file is generated by WOK (CPPExt).
 $// Please do not edit this file; modify original file instead.
-$// The copyright and license terms as defined for the original file apply to 
+$// The copyright and license terms as defined for the original file apply to
 $// this header file considered to be the "object code" form of the original source.
 $
 $#ifndef _%Class_HeaderFile
@@ -60,10 +121,13 @@ $#define _%Class_HeaderFile
 $
 $#include <Standard.hxx>
 $#include <Standard_DefineHandle.hxx>
-$#include <Handle_%Class.hxx>
 $
 $%TICIncludes
 $
+$class Handle(%Inherits);
+$class %Class;
+$DEFINE_STANDARD_HANDLE(%Class, %Inherits)
+$
 $%ClassComment
 $class %Class : public %Inherits
 ${
@@ -80,7 +144,7 @@ $
 $%TICProtectedmets
 $%TICProtectedfields
 $
-$private: 
+$private:
 $
 $%TICPrivatemets
 $%TICPrivatefields
@@ -99,7 +163,7 @@ $#endif // _%Class_HeaderFile
 @template TransientIxx (%Class,%Suffix,%Supplement,%TypeMgt,%Methods) is
 $// This file is generated by WOK (CPPExt).
 $// Please do not edit this file; modify original file instead.
-$// The copyright and license terms as defined for the original file apply to 
+$// The copyright and license terms as defined for the original file apply to
 $// this header file considered to be the "object code" form of the original source.
 $
 $#include <%Class.%Suffix>
@@ -134,7 +198,7 @@ $%Methods
                     %TICSuppMethod) is
 $// This file is generated by WOK (CPPExt).
 $// Please do not edit this file; modify original file instead.
-$// The copyright and license terms as defined for the original file apply to 
+$// The copyright and license terms as defined for the original file apply to
 $// this header file considered to be the "object code" form of the original source.
 $
 $#ifndef _%Class_HeaderFile
@@ -183,7 +247,7 @@ $#endif // _%Class_HeaderFile
 @template MPVIxx (%Class,%Suffix,%Supplement,%Methods) is
 $// This file is generated by WOK (CPPExt).
 $// Please do not edit this file; modify original file instead.
-$// The copyright and license terms as defined for the original file apply to 
+$// The copyright and license terms as defined for the original file apply to
 $// this header file considered to be the "object code" form of the original source.
 $
 $#include <%Class.%Suffix>
@@ -214,7 +278,7 @@ $%Methods
                         %TICSuppMethod) is
 $// This file is generated by WOK (CPPExt).
 $// Please do not edit this file; modify original file instead.
-$// The copyright and license terms as defined for the original file apply to 
+$// The copyright and license terms as defined for the original file apply to
 $// this header file considered to be the "object code" form of the original source.
 $
 $#ifndef _%Class_HeaderFile
@@ -244,7 +308,7 @@ $
 $%TICProtectedmets
 $%TICProtectedfields
 $
-$private: 
+$private:
 $
 $%TICPrivatemets
 $%TICPrivatefields
@@ -263,7 +327,7 @@ $#endif // _%Class_HeaderFile
 @template StorableIxx(%Class,%Suffix,%Supplement,%Methods) is
 $// This file is generated by WOK (CPPExt).
 $// Please do not edit this file; modify original file instead.
-$// The copyright and license terms as defined for the original file apply to 
+$// The copyright and license terms as defined for the original file apply to
 $// this header file considered to be the "object code" form of the original source.
 $
 $#include <%Class.%Suffix>
@@ -282,7 +346,7 @@ $%Methods
 @template EnumHXX(%EnumComment,%Class,%Values) is
 $// This file is generated by WOK (CPPExt).
 $// Please do not edit this file; modify original file instead.
-$// The copyright and license terms as defined for the original file apply to 
+$// The copyright and license terms as defined for the original file apply to
 $// this header file considered to be the "object code" form of the original source.
 $
 $#ifndef _%Class_HeaderFile
@@ -309,7 +373,7 @@ $
 @template AliasHXX(%Class,%Inherits, %HandleTypedef) is
 $// This file is generated by WOK (CPPExt).
 $// Please do not edit this file; modify original file instead.
-$// The copyright and license terms as defined for the original file apply to 
+$// The copyright and license terms as defined for the original file apply to
 $// this header file considered to be the "object code" form of the original source.
 $
 $#ifndef _%Class_HeaderFile
@@ -332,7 +396,7 @@ $#endif // _%Class_HeaderFile
 @template PointerHXX(%Class,%Inherits) is
 $// This file is generated by WOK (CPPExt).
 $// Please do not edit this file; modify original file instead.
-$// The copyright and license terms as defined for the original file apply to 
+$// The copyright and license terms as defined for the original file apply to
 $// this header file considered to be the "object code" form of the original source.
 $
 $#ifndef _%Class_HeaderFile
@@ -350,7 +414,7 @@ $#endif // _%Class_HeaderFile
 @template ExceptionHXX(%Class,%Inherits) is
 $// This file is generated by WOK (CPPExt).
 $// Please do not edit this file; modify original file instead.
-$// The copyright and license terms as defined for the original file apply to 
+$// The copyright and license terms as defined for the original file apply to
 $// this header file considered to be the "object code" form of the original source.
 $
 $#ifndef _%Class_HeaderFile
@@ -361,7 +425,9 @@ $#include <Standard_DefineHandle.hxx>
 $#include <Standard_DefineException.hxx>
 $#include <Standard_SStream.hxx>
 $#include <%Inherits.hxx>
-$#include <Handle_%Class.hxx>
+$
+$class %Class;
+$DEFINE_STANDARD_HANDLE(%Class, %Inherits)
 $
 $#if !defined No_Exception && !defined No_%Class
 $  #define %Class_Raise_if(CONDITION, MESSAGE) \
index c0ff2dd7a0956897b9d007e4b6b00d3f053656ef..531617df05c5514424f905b63b8491b56986a23b 100755 (executable)
@@ -378,7 +378,10 @@ void CPP_TransientClass(const Handle(MS_MetaSchema)& aMeta,
         continue;
       }
 
-      ///aName = CPP_WithoutHandleSuffix (aName);
+      if (!CPP_HaveHandleHeaders())
+      {
+        aName = CPP_WithoutHandleSuffix (aName);
+      }
       api->AddVariable (VIClass, aName->ToCString());
       api->Apply (VTICIncludes, "Include");
       publics->AssignCat (api->GetVariableValue (VTICIncludes));
@@ -394,7 +397,7 @@ void CPP_TransientClass(const Handle(MS_MetaSchema)& aMeta,
 
     api->AddVariable(VTICIncludes,publics->ToCString());
 
-    api->Apply(VoutClass,"TransientInstClass");
+    api->Apply (VoutClass, CPP_HaveHandleHeaders() ? "TransientInstClass_HandleHxx" : "TransientInstClass");
     
     // we write the .hxx of this class
     //
index 84beac70c9864d14315a5b27f0bebe06fd00390d..dc8a77f3fc52abe2e698ea733b0e8efa1b077fd5 100644 (file)
@@ -20,6 +20,7 @@ set "HAVE_FREEIMAGE=false"
 set "HAVE_GL2PS=false"
 set "HAVE_VTK=false"
 set "VCVARS="
+set "CSF_HANDLEHXX=1"
 
 rem ----- Set local settings (M$ Visual Studio compilers etc.) -----
 if exist "%~dp0custom.bat" (
index 2bb6468bcc176f5c9b5830c17c923c610acc9a9f..74b05685d996a47d3e6a6f55cb4121dac4e0a929 100644 (file)
@@ -27,6 +27,7 @@ export HAVE_FREEIMAGE="false";
 export HAVE_GL2PS="false";
 export HAVE_VTK="false";
 export PRODUCTS_DEFINES="";
+export CSF_HANDLEHXX="1";
 
 # ----- Set local settings -----
 if [ -e "${aScriptPath}/custom.sh" ]; then
index 587f7946a725230091522f1ef92d8375cdc0b16f..cc36add9e976733a00dc89d1c27315a920340a90 100644 (file)
@@ -146,6 +146,11 @@ if { "$tcl_platform(platform)" == "windows" } {
 if { "$PRODUCTS_PATH" != "" } {
   puts "  3rd-parties root: '$::env(PRODUCTS_PATH)'"
 }
+if { [info exists ::env(CSF_HANDLEHXX)] && "$::env(CSF_HANDLEHXX)" == "0" } {
+  puts "  Generate Handle_XXX.hxx files: OFF"
+} else {
+  puts "  Generate Handle_XXX.hxx files: ON"
+}
 
 set anErrs {}
 if { [wokdep:SearchTclTk anErrs anErrs anErrs anErrs anErrs] == "false" } {