home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 May / Chip_2002-05_cd1.bin / chplus / cpp / 3 / Tools.exe / idetobpr.txt < prev    next >
Text File  |  1998-02-09  |  4KB  |  74 lines

  1. The IDETOBPR utility converts .IDE project files for Borland C++ (versions 4 and 5) into C++Builder .BPR project files. The command-line syntax is
  2.  
  3. idetobpr [-v] filename.ide
  4.  
  5. To create a non-VCL application, use the -v option, which causes the generated .BPR files to specify linkage to non-VCL versions of the RTL, OWL, and BIDS libraries. Because VCL and MFC header files are incompatible, -v is turned on automatically for MFC projects.
  6.  
  7. IDETOBPR generates makefiles according to the following guidelines.
  8.  
  9. A separate .BPR file is generated for each target in the .IDE file. If there are multiple targets in the .IDE file, IDETOBPR generates a .BPG (group) file that calls each .BPR file.
  10.     If the target is not an EXE, DLL, or static LIB, a batch-file target is created and added to the generated .BPG file.
  11.     IDETOBPR looks for a .CPP file with the same name as the .IDE file. It adds the following lines to the .CPP file to enable C++Builder's Project Manager to display dependent nodes in the project. (The .CPP file is backed up prior to modification.)
  12.  
  13. #include <condefs.h>
  14.  
  15. USEUNIT("dependent .CPP filename")
  16. USEUNIT("dependent .CPP filename")
  17. :  // one for eached linked OBJ file
  18.  
  19. USERC("dependent .RC filename")
  20. USERC("dependent .RC filename")
  21. :  // one for each RC file
  22.  
  23. #define WinMain
  24. //for DLL targets, this is changed to '#define DllEntryPoint'
  25.  
  26. If IDETOBPR cannot find a .CPP file with the same name as the .IDE file, it creates one. The generated .CPP file is used only by the C++Builder Project Manager to display dependent project nodes. If there is a .C file with the same name as the .IDE file, it is untouched and is still used to build the target.
  27.     Default project options are not copied to the .BPR file. These options can be added by hand when the project is opened in C++Builder.
  28.     In Include and Library paths, and in defines, references to environment variables are expanded. This is particularly important for the environment variable BCROOT. If BCROOT is not in your environment, the generated makefile may have invalid entries; IDETOBPR issues a warning in this case.
  29.  
  30. Occurrences of $env(BCROOT) or BC5 in Include and Library paths are changed to $(BCB). For OWL and BIDS projects, include\obsolete is appended to the path.
  31.     C++Builder cannot handle options set on individual files. If IDETOBPR finds local option overrides on nodes in the .IDE file, it ignores the local overrides and issues a warning.
  32.     Sourcepools in .IDE files are collapsed.
  33.     Unless you are converting an MFC project or -v is included on the command line, library names are changed as follows.
  34.  
  35. Source    Description    Target
  36.  
  37. owlwf    OWL static    owlwv
  38. owlwfi    OWL dynamic    owlwvi
  39. owlwt    OWL multithreaded static    owlwv
  40. owlwti    OWL multithreaded dynamic    owlwvi
  41. owldwf    OWL static diagnostic    owldwv
  42. owldwfi    OWL dynamic diagnostic    owldwvi
  43. owldwt    OWL multithreaded static diag    owldwv
  44. owldwti    OWL multithreaded dynamic diag    owldwvi
  45. bidsf    BIDS static    bidsv
  46. bidsfi    BIDS dynamic    bidsvi    
  47. bidst    BIDS multithreaded static    bidsv
  48. bidsti    BIDS multithreaded dynamic    bidsvi
  49. bidsdf    BIDS static diagnostic    bidsdv
  50.  
  51. bidsdfi    BIDS dynamic diagnostic    bidsdvi
  52. bidsdt    BIDS multithreaded static diagnostic    bidsdv
  53. bidsdti    BIDS multithreaded dynamic diagnostic    bidsdvi
  54. cw32    RTL static    cp32mt
  55. cw32i    RTL dynamic    cp32mti
  56. cw32mt    RTL multithreaded static    cp32mt
  57. cw32mti    RTL multithreaded dynamic    cp32mti
  58. vcl    VCL static    vcl
  59. vcld    VCL debug    vcl
  60. nafxcw    MFC static    nafxcw
  61. nafxcwd    MFC static diagnostic    nafxcwd
  62. bfcs??    MFC static part of DLL    bfcs42
  63. bfcs??d    MFC static part of DLL diagnostic    bfcs42d
  64.  
  65. bfc??    MFC dynamic    bfc42
  66. bfc??d    MFC dynamic diagnostic    bfc42d
  67. bfco??d    MFC OLE DLL diagnostic    bfco42d
  68. bfcd??d    MFC Database DLL diagnostic    bfcd42d
  69. bfcn??d    MFC Internet DLL diagnostic    bfcn42d
  70.  
  71.  
  72. If -v is included on the command line (or if you are converting an MFC project), only the MFC and VCL library names are updated to the latest versions; _NO_VCL is added to the list of macro defines. For MFC projects, _MSC_VER=1100 is prepended to the list of macro defines.
  73.  
  74. Copyright ⌐ 1998 Borland International.