mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0026467: Configuration, genproj.tcl - restore generation of Code::Blocks and XCode project files
Restore XCode generator. Add missing dependencies to EXTERNLIB. genproj.tcl - remove OS:mkdir() - duplicate of wokUtils:FILES:mkdir(). genproj.tcl - use osutils:usedOsLibs() for Code::Blocks. src/OS - remove unused :LinksoWith() and :CompileWith(). adm/CMPLRS - remove unused CSF_ entities. Remove config.h related code. Add executable flag to codeblocks.sh and draw.sh scripts. Setup ARCH variable using $tcl_platform(pointerSize). wokdep:SearchLib() - use $tcl_platform(os) instead of $tcl_platform(platform) for checking Linux-specific library paths. wokdep:SearchFreeType() - fix misprint in ft2build.h header file name. wokdep:SaveCustom() - export SHORTCUT_HEADERS to "custom.sh" as well, not only to "custom.bat".
This commit is contained in:
@@ -53,65 +53,7 @@ proc ApplicationFramework:alias { } {
|
||||
proc ApplicationFramework:depends { } {
|
||||
return [list Visualization]
|
||||
}
|
||||
;#
|
||||
;# Pre-requis pour la compilation ( -I ... )
|
||||
;# Returns a list of directory that should be used in -I directives
|
||||
;# while compiling c or c++ files.
|
||||
;#
|
||||
proc ApplicationFramework:CompileWith { } {
|
||||
|
||||
|
||||
set l {}
|
||||
switch -- [OS:os] {
|
||||
HP-UX {
|
||||
}
|
||||
Linux {
|
||||
lappend l "-I[lindex [wokparam -v %CSF_JavaHome] 0]/include"
|
||||
lappend l "-I[lindex [wokparam -v %CSF_JavaHome] 0]/include/linux"
|
||||
lappend l "[lindex [wokparam -v %CSF_TCL_HOME] 0]/include"
|
||||
lappend l "[lindex [lindex [wokparam -v %STLPortInclude] 0] 0]"
|
||||
}
|
||||
SunOS {
|
||||
lappend l "/usr/openwin/include"
|
||||
lappend l "/usr/dt/include"
|
||||
lappend l "[lindex [wokparam -v %CSF_CXX_INCLUDE] 0]"
|
||||
lappend l "-I[lindex [wokparam -v %CSF_JavaHome] 0]/include"
|
||||
lappend l "-I[lindex [wokparam -v %CSF_JavaHome] 0]/include/solaris"
|
||||
lappend l "[lindex [wokparam -v %CSF_TCL_HOME] 0]/include"
|
||||
}
|
||||
|
||||
IRIX {
|
||||
lappend l "/usr/include/CC"
|
||||
}
|
||||
|
||||
}
|
||||
return $l
|
||||
}
|
||||
;#
|
||||
;# Pre-requis pour la compilation ( -L ... )
|
||||
;# Returns a list of directory that should be used in -L directives
|
||||
;# while creating shareable.
|
||||
;#
|
||||
proc ApplicationFramework:LinksoWith { } {
|
||||
|
||||
|
||||
set l {}
|
||||
switch -- [OS:os] {
|
||||
HP-UX {
|
||||
}
|
||||
Linux {
|
||||
lappend l /usr/X11R6/lib
|
||||
}
|
||||
SunOS {
|
||||
lappend l "-L[wokparam -v %CSF_TCL_HOME]/lib -R[wokparam -v %CSF_TCL_HOME]/lib -ltcl"
|
||||
lappend l "-L[wokparam -v %CSF_TCL_HOME]/lib -R[wokparam -v %CSF_TCL_HOME]/lib -ltk"
|
||||
}
|
||||
IRIX {
|
||||
lappend l /usr/lib32
|
||||
}
|
||||
}
|
||||
return $l
|
||||
}
|
||||
;#
|
||||
;# Returns a list of exported features.
|
||||
;# source : Source files
|
||||
|
@@ -53,60 +53,7 @@ proc DataExchange:alias { } {
|
||||
proc DataExchange:depends { } {
|
||||
return [list ApplicationFramework]
|
||||
}
|
||||
;#
|
||||
;# Liste des includes utilises qui ne sont pas ceux des Wb.
|
||||
;#
|
||||
proc DataExchange:CompileWith { } {
|
||||
|
||||
set l {}
|
||||
switch -- [OS:os] {
|
||||
HP-UX {
|
||||
}
|
||||
|
||||
Linux {
|
||||
lappend l "-I[lindex [wokparam -v %CSF_JavaHome] 0]/include"
|
||||
lappend l "-I[lindex [wokparam -v %CSF_JavaHome] 0]/include/linux"
|
||||
lappend l "[lindex [wokparam -v %CSF_TCL_HOME] 0]/include"
|
||||
lappend l "[lindex [lindex [wokparam -v %STLPortInclude] 0] 0]"
|
||||
}
|
||||
SunOS {
|
||||
lappend l "/usr/openwin/include"
|
||||
lappend l "/usr/dt/include"
|
||||
lappend l "[lindex [wokparam -v %CSF_CXX_INCLUDE] 0]"
|
||||
lappend l "-I[lindex [wokparam -v %CSF_JavaHome] 0]/include"
|
||||
lappend l "-I[lindex [wokparam -v %CSF_JavaHome] 0]/include/solaris"
|
||||
lappend l "[lindex [wokparam -v %CSF_TCL_HOME] 0]/include"
|
||||
}
|
||||
|
||||
IRIX {
|
||||
lappend l "/usr/include/CC"
|
||||
}
|
||||
}
|
||||
return $l
|
||||
}
|
||||
;#
|
||||
;# Pre-requis pour la compilation ( -L ... )
|
||||
;# Returns a list of directory that should be used in -L directives
|
||||
;# while creating shareable.
|
||||
;#
|
||||
proc DataExchange:LinksoWith { } {
|
||||
|
||||
set l {}
|
||||
switch -- [OS:os] {
|
||||
HP-UX {
|
||||
}
|
||||
Linux {
|
||||
}
|
||||
SunOS {
|
||||
lappend l "-L[wokparam -v %CSF_TCL_HOME]/lib -R[wokparam -v %CSF_TCL_HOME]/lib -ltcl"
|
||||
lappend l "-L[wokparam -v %CSF_TCL_HOME]/lib -R[wokparam -v %CSF_TCL_HOME]/lib -ltk"
|
||||
}
|
||||
IRIX {
|
||||
lappend l "/usr/lib32"
|
||||
}
|
||||
}
|
||||
return $l
|
||||
}
|
||||
;#
|
||||
;# Returns a list of exported features.
|
||||
;# source : Source files
|
||||
|
@@ -56,69 +56,6 @@ proc Draw:acdepends { } {
|
||||
return [list TCLTK]
|
||||
}
|
||||
|
||||
;#
|
||||
;# Pre-requis pour la compilation ( -I ... )
|
||||
;# Returns a list of directory that should be used in -I directives
|
||||
;# while compiling c or c++ files.
|
||||
;#
|
||||
proc Draw:CompileWith {} {
|
||||
|
||||
set l {}
|
||||
switch -- [OS:os] {
|
||||
HP-UX {
|
||||
}
|
||||
Linux {
|
||||
lappend l "-I[lindex [wokparam -v %CSF_JavaHome] 0]/include"
|
||||
lappend l "-I[lindex [wokparam -v %CSF_JavaHome] 0]/include/linux"
|
||||
lappend l "[lindex [wokparam -v %CSF_TCL_HOME] 0]/include"
|
||||
lappend l "[lindex [lindex [wokparam -v %STLPortInclude] 0] 0]"
|
||||
}
|
||||
SunOS {
|
||||
lappend l "/usr/openwin/include"
|
||||
lappend l "/usr/dt/include"
|
||||
lappend l [lindex [wokparam -v %CSF_CXX_INCLUDE] 0]
|
||||
lappend l "-I[lindex [wokparam -v %CSF_JavaHome] 0]/include"
|
||||
lappend l "-I[lindex [wokparam -v %CSF_JavaHome] 0]/include/solaris"
|
||||
lappend l "[lindex [wokparam -v %CSF_TCL_HOME] 0]/include"
|
||||
}
|
||||
IRIX {
|
||||
lappend l /usr/include/CC
|
||||
lappend l /usr/tcltk/include/itcl
|
||||
lappend l /opt/Orbix_2.2/include
|
||||
}
|
||||
|
||||
}
|
||||
return $l
|
||||
}
|
||||
;#
|
||||
;# Pre-requis pour la compilation ( -L ... )
|
||||
;# Returns a list of directory that should be used in -L directives
|
||||
;# while creating shareable.
|
||||
;#
|
||||
proc Draw:LinksoWith {} {
|
||||
|
||||
set l {}
|
||||
switch -- [OS:os] {
|
||||
HP-UX {
|
||||
}
|
||||
Linux {
|
||||
lappend l -L/usr/X11R6/lib
|
||||
lappend l "-L[wokparam -v %CSF_TCL_HOME]/lib"
|
||||
lappend l "-L[wokparam -v %STLPortHome]/lib"
|
||||
}
|
||||
SunOS {
|
||||
lappend l /usr/openwin/lib
|
||||
lappend l "[wokparam -v %CSF_TCL_HOME]/lib"
|
||||
lappend l /opt/DEV5_1/SUNWspro/SC4.2/include/CC
|
||||
}
|
||||
IRIX {
|
||||
lappend l /usr/lib32
|
||||
lappend l /usr/tcltk.64/lib/itcl
|
||||
}
|
||||
|
||||
}
|
||||
return $l
|
||||
}
|
||||
;#
|
||||
;# Returns a list of exported features.
|
||||
;# source : Source files
|
||||
|
@@ -49,58 +49,7 @@ proc FoundationClasses:alias { } {
|
||||
proc FoundationClasses:depends { } {
|
||||
return {}
|
||||
}
|
||||
;#
|
||||
;# Liste des includes utilises qui ne sont pas ceux des Wb.
|
||||
;#
|
||||
proc FoundationClasses:CompileWith { } {
|
||||
|
||||
set l {}
|
||||
switch -- [OS:os] {
|
||||
HP-UX {
|
||||
}
|
||||
Linux {
|
||||
lappend l "-I[lindex [wokparam -v %CSF_JavaHome] 0]/include"
|
||||
lappend l "-I[lindex [wokparam -v %CSF_JavaHome] 0]/inclide/linux"
|
||||
lappend l "[lindex [wokparam -v %CSF_TCL_HOME] 0]/include"
|
||||
lappend l "[lindex [lindex [wokparam -v %STLPortInclude] 0] 0]"
|
||||
}
|
||||
SunOS {
|
||||
lappend l "/usr/openwin/include"
|
||||
lappend l "/usr/dt/include"
|
||||
lappend l "[lindex [wokparam -v %CSF_CXX_INCLUDE] 0]"
|
||||
lappend l "-I[lindex [wokparam -v %CSF_JavaHome] 0]/include"
|
||||
lappend l "-I[lindex [wokparam -v %CSF_JavaHome] 0]/inclide/solaris"
|
||||
lappend l "[lindex [wokparam -v %CSF_TCL_HOME] 0]/include"
|
||||
}
|
||||
IRIX {
|
||||
lappend l "/usr/include/CC"
|
||||
}
|
||||
|
||||
}
|
||||
return $l
|
||||
}
|
||||
;#
|
||||
;# Pre-requis pour la compilation ( -L ... )
|
||||
;# Returns a list of directory that should be used in -L directives
|
||||
;# while creating shareable.
|
||||
;#
|
||||
proc FoundationClasses:LinksoWith { } {
|
||||
|
||||
set l {}
|
||||
switch -- [OS:os] {
|
||||
HP-UX {
|
||||
}
|
||||
Linux {
|
||||
}
|
||||
SunOS {
|
||||
}
|
||||
IRIX {
|
||||
lappend l /usr/lib32
|
||||
}
|
||||
|
||||
}
|
||||
return $l
|
||||
}
|
||||
;#
|
||||
;# Returns a list of exported features.
|
||||
;# source : Source files
|
||||
|
@@ -47,63 +47,7 @@ proc ModelingAlgorithms:alias { } {
|
||||
proc ModelingAlgorithms:depends { } {
|
||||
return [list ModelingData]
|
||||
}
|
||||
;#
|
||||
;# Pre-requis pour la compilation ( -I ... )
|
||||
;# Returns a list of directory that should be used in -I directives
|
||||
;# while compiling c or c++ files.
|
||||
;#
|
||||
proc ModelingAlgorithms:CompileWith { } {
|
||||
|
||||
set l {}
|
||||
switch -- [OS:os] {
|
||||
HP-UX {
|
||||
}
|
||||
Linux {
|
||||
lappend l "-I[lindex [wokparam -v %CSF_JavaHome] 0]/include"
|
||||
lappend l "-I[lindex [wokparam -v %CSF_JavaHome] 0]/include/solaris"
|
||||
lappend l "[lindex [wokparam -v %CSF_TCL_HOME] 0]/include"
|
||||
lappend l "[lindex [lindex [wokparam -v %STLPortInclude] 0] 0]"
|
||||
}
|
||||
SunOS {
|
||||
lappend l "/usr/openwin/include"
|
||||
lappend l "/usr/dt/include"
|
||||
lappend l "[lindex [wokparam -v %CSF_CXX_INCLUDE] 0]"
|
||||
lappend l "-I[lindex [wokparam -v %CSF_JavaHome] 0]/include"
|
||||
lappend l "-I[lindex [wokparam -v %CSF_JavaHome] 0]/include/solaris"
|
||||
lappend l "[lindex [wokparam -v %CSF_TCL_HOME] 0]/include"
|
||||
}
|
||||
IRIX {
|
||||
lappend l "/usr/include/CC"
|
||||
}
|
||||
|
||||
}
|
||||
return $l
|
||||
}
|
||||
;#
|
||||
;# Pre-requis pour la compilation ( -L ... )
|
||||
;# Returns a list of directory that should be used in -L directives
|
||||
;# while creating shareable.
|
||||
;#
|
||||
proc ModelingAlgorithms:LinksoWith { } {
|
||||
|
||||
set l {}
|
||||
switch -- [OS:os] {
|
||||
HP-UX {
|
||||
}
|
||||
Linux {
|
||||
}
|
||||
SunOS {
|
||||
lappend l "-L[wokparam -v %CSF_TCL_HOME]/lib -R[wokparam -v %CSF_TCL_HOME]/lib -ltcl"
|
||||
lappend l "-L[wokparam -v %CSF_TCL_HOME]/lib -R[wokparam -v %CSF_TCL_HOME]/lib -ltk"
|
||||
lappend l /usr/openwin/lib
|
||||
}
|
||||
IRIX {
|
||||
lappend l /usr/lib32
|
||||
}
|
||||
|
||||
}
|
||||
return $l
|
||||
}
|
||||
;#
|
||||
;# Returns a list of exported features.
|
||||
;# source : Source files
|
||||
|
@@ -39,62 +39,7 @@ proc ModelingData:alias { } {
|
||||
proc ModelingData:depends { } {
|
||||
return [list FoundationClasses]
|
||||
}
|
||||
;#
|
||||
;# Pre-requis pour la compilation ( -I ... )
|
||||
;# Returns a list of directory that should be used in -I directives
|
||||
;# while compiling c or c++ files.
|
||||
;#
|
||||
proc ModelingData:CompileWith { } {
|
||||
|
||||
set l {}
|
||||
switch -- [OS:os] {
|
||||
HP-UX {
|
||||
}
|
||||
Linux {
|
||||
lappend l "-I[lindex [wokparam -v %CSF_JavaHome] 0]/include"
|
||||
lappend l "-I[lindex [wokparam -v %CSF_JavaHome] 0]/include/linux"
|
||||
lappend l "[lindex [wokparam -v %CSF_TCL_HOME] 0]/include"
|
||||
lappend l "[lindex [lindex [wokparam -v %STLPortInclude] 0] 0]"
|
||||
}
|
||||
SunOS {
|
||||
lappend l "/usr/openwin/include"
|
||||
lappend l "/usr/dt/include"
|
||||
lappend l "[lindex [wokparam -v %CSF_CXX_INCLUDE] 0]"
|
||||
lappend l "-I[lindex [wokparam -v %CSF_JavaHome] 0]/include"
|
||||
lappend l "-I[lindex [wokparam -v %CSF_JavaHome] 0]/include/solaris"
|
||||
lappend l "[lindex [wokparam -v %CSF_TCL_HOME] 0]/include"
|
||||
}
|
||||
IRIX {
|
||||
lappend l "/usr/include/CC"
|
||||
}
|
||||
|
||||
}
|
||||
return $l
|
||||
}
|
||||
;#
|
||||
;# Pre-requis pour la compilation ( -L ... )
|
||||
;# Returns a list of directory that should be used in -L directives
|
||||
;# while creating shareable.
|
||||
;#
|
||||
proc ModelingData:LinksoWith { } {
|
||||
|
||||
set l {}
|
||||
switch -- [OS:os] {
|
||||
HP-UX {
|
||||
}
|
||||
Linux {
|
||||
}
|
||||
SunOS {
|
||||
lappend l "-L[wokparam -v %CSF_TCL_HOME]/lib -R[wokparam -v %CSF_TCL_HOME]/lib -ltcl"
|
||||
lappend l "-L[wokparam -v %CSF_TCL_HOME]/lib -R[wokparam -v %CSF_TCL_HOME]/lib -ltcl"
|
||||
}
|
||||
IRIX {
|
||||
lappend l /usr/lib32
|
||||
}
|
||||
|
||||
}
|
||||
return $l
|
||||
}
|
||||
;#
|
||||
;# Returns a list of exported features.
|
||||
;# source : Source files
|
||||
|
@@ -67,65 +67,6 @@ proc Visualization:acdepends { } {
|
||||
return $aList
|
||||
}
|
||||
|
||||
;#
|
||||
;# Pre-requis pour la compilation ( -I ... )
|
||||
;# Returns a list of directory that should be used in -I directives
|
||||
;# while compiling c or c++ files.
|
||||
;#
|
||||
proc Visualization:CompileWith {} {
|
||||
|
||||
set l {}
|
||||
switch -- [OS:os] {
|
||||
HP-UX {
|
||||
}
|
||||
Linux {
|
||||
lappend l "-I[lindex [wokparam -v %CSF_JavaHome] 0]/include"
|
||||
lappend l "-I[lindex [wokparam -v %CSF_JavaHome] 0]/include/linux"
|
||||
lappend l "[lindex [wokparam -v %CSF_TCL_HOME] 0]/include"
|
||||
lappend l "[lindex [lindex [wokparam -v %STLPortInclude] 0] 0]"
|
||||
}
|
||||
SunOS {
|
||||
lappend l "\$OPENWINHOME/include"
|
||||
lappend l "/usr/openwin/include/X11"
|
||||
lappend l "/usr/dt/include"
|
||||
lappend l "[lindex [wokparam -v %CSF_CXX_INCLUDE] 0]"
|
||||
lappend l "-I[lindex [wokparam -v %CSF_JavaHome] 0]/include"
|
||||
lappend l "-I[lindex [wokparam -v %CSF_JavaHome] 0]/include/solaris"
|
||||
lappend l "[lindex [wokparam -v %CSF_TCL_HOME] 0]/include"
|
||||
}
|
||||
IRIX {
|
||||
lappend l /usr/include/CC
|
||||
}
|
||||
|
||||
}
|
||||
return $l
|
||||
}
|
||||
;#
|
||||
;# Pre-requis pour la compilation ( -L ... )
|
||||
;# Returns a list of directory that should be used in -L directives
|
||||
;# while creating shareable.
|
||||
;#
|
||||
proc Visualization:LinksoWith { } {
|
||||
|
||||
set l {}
|
||||
switch -- [OS:os] {
|
||||
HP-UX {
|
||||
}
|
||||
Linux {
|
||||
lappend l /usr/X11R6/lib
|
||||
}
|
||||
SunOS {
|
||||
lappend l "-L[wokparam -v %CSF_TCL_HOME]/lib -R[wokparam -v %CSF_TCL_HOME]/lib -ltcl"
|
||||
lappend l "-L[wokparam -v %CSF_TCL_HOME]/lib -R[wokparam -v %CSF_TCL_HOME]/lib -ltk"
|
||||
lappend l /usr/openwin/lib
|
||||
}
|
||||
IRIX {
|
||||
lappend l /usr/lib32
|
||||
}
|
||||
|
||||
}
|
||||
return $l
|
||||
}
|
||||
;#
|
||||
;# Returns a list of exported features.
|
||||
;# source : Source files
|
||||
|
Reference in New Issue
Block a user