From: dbv Date: Thu, 21 Feb 2013 11:43:12 +0000 (+0300) Subject: 0023784: Fixed project file generation X-Git-Tag: V6_7_1~67 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=f7604bbbef00506d2475b5ec1e3df0eb77b2371a;p=occt-wok.git 0023784: Fixed project file generation --- diff --git a/src/WOKTclLib/osutils.tcl b/src/WOKTclLib/osutils.tcl index c5a0e18..8e382c9 100755 --- a/src/WOKTclLib/osutils.tcl +++ b/src/WOKTclLib/osutils.tcl @@ -2139,13 +2139,23 @@ proc osutils:cbpx { theOutDir theToolKit } { if {[wokparam -t %$element] == 0} { continue } + set isFrameworkNext 0 foreach fl [split [wokparam -v %$element] \{\ \}] { if {[string first "-libpath" $fl] != "-1"} { # this is library search path, not the library name continue + } elseif {[string first "-framework" $fl] != "-1"} { + set isFrameworkNext 1 + continue } + set felem [file tail $fl] - if {[lsearch $aUsedToolKits $felem] == "-1"} { + if {$isFrameworkNext == 1} { + if {[lsearch $aFrameworks $felem] == "-1"} { + lappend aFrameworks "${felem}" + } + set isFrameworkNext 0 + } elseif {[lsearch $aUsedToolKits $felem] == "-1"} { if {$felem != "\{\}" & $felem != "lib"} { if {[lsearch -nocase [osutils:optinal_libs] $felem] == -1} { lappend aUsedToolKits [string trimleft "${felem}" "-l"]