gendoc.tcl -refman now temporarily sets HAVE_ environment variables for including optional modules.
# Write specific options
if { $docType == "REFMAN" } {
+ # always include optional components
+ set aHaveD3dBack ""
+ set aHaveGlesBack ""
+ set aHaveVtkBack ""
+ if { [info exists ::env(HAVE_D3D)] } { set aHaveD3dBack "$::env(HAVE_D3D)" }
+ if { [info exists ::env(HAVE_GLES2)] } { set aHaveGlesBack "$::env(HAVE_GLES2)" }
+ if { [info exists ::env(HAVE_VTK)] } { set aHaveVtkBack "$::env(HAVE_VTK)" }
+ set ::env(HAVE_D3D) "true"
+ set ::env(HAVE_GLES2) "true"
+ set ::env(HAVE_VTK) "true"
+
# Load lists of modules scripts
if { $productsPath == "" } {
set modules_scripts [glob -nocomplain -type f -directory "[OCCDoc_GetSourceDir $productsPath]/OS/" *.tcl]
puts $doxyFile ""
+ # restore environment variables
+ set ::env(HAVE_D3D) "$aHaveD3dBack"
+ set ::env(HAVE_GLES2) "$aHaveGlesBack"
+ set ::env(HAVE_VTK) "$aHaveVtkBack"
+
} elseif { $docType == "OVERVIEW" } {
# Add common options for generation of Overview and User Guides
if { [info exists ::env(HAVE_GLES2)] && "$::env(HAVE_GLES2)" == "true" } {
lappend aResult "TKOpenGlesTest"
}
- if { "$::tcl_platform(platform)" == "windows" } {
- if { [info exists ::env(HAVE_D3D)] } {
- if { "$::env(HAVE_D3D)" == "true" } {
- lappend aResult "TKD3DHostTest"
- }
- } elseif { [info exists ::env(VCVER)] && "$::env(VCVER)" != "vc8" && "$::env(VCVER)" != "vc9" && "$::env(VCVER)" != "vc10" } {
+
+ if { [info exists ::env(HAVE_D3D)] } {
+ if { "$::env(HAVE_D3D)" == "true" } {
lappend aResult "TKD3DHostTest"
}
}
+
if { [info exists ::env(HAVE_VTK)] && "$::env(HAVE_VTK)" == "true" } {
lappend aResult "TKIVtkDraw"
}
if { [info exists ::env(HAVE_GLES2)] && "$::env(HAVE_GLES2)" == "true" } {
lappend aResult "TKOpenGles"
}
- if { "$::tcl_platform(platform)" == "windows" } {
- if { [info exists ::env(HAVE_D3D)] } {
- if { "$::env(HAVE_D3D)" == "true" } {
- lappend aResult "TKD3DHost"
- }
- } elseif { [info exists ::env(VCVER)] && "$::env(VCVER)" != "vc8" && "$::env(VCVER)" != "vc9" && "$::env(VCVER)" != "vc10" } {
+
+ if { [info exists ::env(HAVE_D3D)] } {
+ if { "$::env(HAVE_D3D)" == "true" } {
lappend aResult "TKD3DHost"
}
}
+
if { [info exists ::env(HAVE_VTK)] && "$::env(HAVE_VTK)" == "true" } {
lappend aResult "TKIVtk"
}