DiscussionsIssue archiveOCCT:Configuration

Archived issue #0024786

Move functionality of WOK command wgenproj to OCCT tool genproj

Open CASCADEOCCT:Configurationclosed12 public notes

Search issues

Description

Currently generation of OCCT project files is provided by command wgenproj available in WOK environment.
In the view of forthcoming elimination of WOK, it is necessary to move this functionality to a separate tool available in OCCT (adm/genproj.tcl).

Steps to reproduce

genproj.bat

Public activity

12 archived notes

Participants are labeled by their role within this record.

01Commenter 2
Branch [archived branch] has been updated by Participant.

[revision removed]
02Commenter 2
Branch [archived branch] has been created by Participant.

[revision removed]


Detailed log of new commits:

Author: ski
Date: Wed Jul 9 13:37:07 2014 +0400

    0024786: Move functionality of WOK command wgenproj to OCCT tool genproj
    
    Script genproj.tcl was created.
    Generation of VC projects is available.

Author: abv
Date: Sat Jul 4 07:20:02 2015 +0300

    0024816: Tool for upgrading OCCT and dependent code
    
    A new script adm/upgrade.tcl defines a Tcl procedure occt_upgrade, to be used for upgrading code of OCCT and applications for changes introduced by OCCT 7.0.
    Details on upgrade procedure are put in dox/dev_guides/upgrade/upgrade.md.
03Commenter 3
I have rebased the patch on CR0-IR-OCCT7-alpha3, removing CMake generation, restoring inc as include directory, and updating project templates to their actual state (from WOK repo).

The remaining point is to add a step before projects generation that would populate folder inc (in build directory) by shortcut header files directing to corresponding header in src, for instance:

/inc/gp.hxx:

#include "../src/gp/gp.hxx"

This generation should:
- process all hxx, lxx, and gxx files in the modules being built
- use relative path (as above) if build directory is CASROOT, absolute path otherwise
- check if the file already exists with the correct content, and update only if content is different
- detect and remove obsolete shortcut headers
04Commenter 2
Branch [archived branch] has been updated by Participant.

[revision removed]


Detailed log of new commits:

Author: ibs
Date: Tue Jul 7 11:27:42 2015 +0300

    0024786: Move functionality of WOK command wgenproj to OCCT tool genproj
    
    wokconfgui is being called if custom.bat does not exist

Author: ibs
Date: Mon Jul 6 14:10:08 2015 +0300

    0024786: Move functionality of WOK command wgenproj to OCCT tool genproj
    
    genproj creates short-cut files of required include header files in $casroot/inc

05Commenter 2
Branch [archived branch] has been updated forcibly by Participant.

[revision removed]
06Commenter 2
Branch [archived branch] has been updated by Participant.

[revision removed]


Detailed log of new commits:

Author: unknown
Date: Wed Jul 8 10:46:17 2015 +0300

    [TCL] short-cut headers contains header include with relative path

07Commenter 7
I think that adding hint about including tcl binaries into PATH variable will be useful. Without it hard to understand reason of failure.
08Commenter 8
Considered as completed (except of last remark) and integrated to master
09Commenter 2
Branch [archived branch] has been deleted by Participant.

[revision removed]
10Commenter 2
Branch [archived branch] has been deleted by Participant.

[revision removed]
11Commenter 2
Branch [archived branch] has been deleted by Commenter 3.

[revision removed]
12Commenter 12
Alexander, for this your remark:

> I think that adding hint about including tcl binaries into PATH variable will be useful. Without it hard to understand reason of failure.

this should be improved in #0024816 (error should be reported if Tcl is not present in PATH), you can check this after that fix is integrated (hopefully, this Friday)

Related records