+
+ if { "$::PRJFMT" == "pro" } {
+ set aCasVer [wokdep:DetectCasVersion]
+ set aCustomFilePath "./adm/qmake/custom.auto.pri"
+ set aFile [open $aCustomFilePath "w"]
+ puts $aFile "# $aGenInfo"
+
+ puts $aFile ""
+ puts $aFile "VERSION=$aCasVer"
+ puts $aFile "PRODUCTS_PATH=\"$::PRODUCTS_PATH\""
+
+ puts $aFile ""
+ puts $aFile "# Optional 3rd-parties switches"
+ foreach anEnvIter $::THE_ENV_VARIABLES {
+ set aName ${anEnvIter}
+ set aValue [set ::${anEnvIter}]
+ if { "$aValue" == "true" } {
+ puts $aFile "CONFIG += ${aName}"
+ } else {
+ #puts $aFile "CONFIG -= ${aName}"
+ }
+ }
+
+ puts $aFile ""
+ puts $aFile "# Additional headers search paths"
+ foreach anIncPath $::CSF_OPT_INC {
+ puts $aFile "INCLUDEPATH += \"${anIncPath}\""
+ }
+
+ puts $aFile ""
+ puts $aFile "# Additional libraries search paths"
+ foreach aLibPath [set ::CSF_OPT_LIB$::ARCH] {
+ puts $aFile "LIBS += -L\"${aLibPath}\""
+ }
+
+ if { "$::tcl_platform(platform)" == "windows" } {
+ puts $aFile ""
+ puts $aFile "# Additional DLLs search paths"
+ foreach aDllPath [set ::CSF_OPT_BIN$::ARCH] {
+ puts $aFile "LIBS += -L\"${aDllPath}\""
+ }
+ }
+
+ puts $aFile ""
+ close $aFile
+ puts "Configuration saved to file '$aCustomFilePath'"
+ }