]> OCCT Git - occt-wok.git/commitdiff
5082,5083 Some corrections and improvements in WOK Java extractor.cdl,cxx,h,java...
authorcascade <cascade@opencascade.com>
Mon, 9 Feb 2004 11:22:16 +0000 (11:22 +0000)
committercascade <cascade@opencascade.com>
Mon, 9 Feb 2004 11:22:16 +0000 (11:22 +0000)
src/WOKBuilderDef/CMPLRS.edl
src/WOKBuilderDef/LINKSHR.edl

index 857cabbecff309f62c2b077c5bf9b3ed834a8f80..876b108b1a6ecac0fb579f0f1a629b76d86a0c0b 100755 (executable)
                                              %BaseName, 
                                              %OutputDir ,
                                               %TmpFile , %Entity ) is
-     $%CMPLRS_C_COMPILER %CMPLRS_C_SysOptions %CMPLRS_C_Options %CMPLRS_C_ModeOpt %CMPLRS_C_INCLUDE %CMPLRS_CXX_DBMSOpt  %IncDirectives %CMPLRS_Unit_C_Options %CMPLRS_C_WOKDirectives -c %Source -o %OutputDir/%BaseName.o 
-     $cd %OutputDir
-     $%CMPLRS_C_COMPILER %CMPLRS_C_SysOptions %CMPLRS_C_Options %CMPLRS_C_ModeOpt %CMPLRS_C_INCLUDE %CMPLRS_CXX_DBMSOpt  %IncDirectives %CMPLRS_Unit_C_Options %CMPLRS_C_WOKDirectives -c %Source -o %OutputDir/%BaseName.o 
+      $cd %OutputDir &&  $%CMPLRS_C_COMPILER %CMPLRS_C_SysOptions %CMPLRS_C_Options %CMPLRS_C_ModeOpt %CMPLRS_C_INCLUDE %CMPLRS_CXX_DBMSOpt  %IncDirectives %CMPLRS_Unit_C_Options %CMPLRS_C_WOKDirectives -c %Source -o %OutputDir/%BaseName.o 
       $set stat = $status
       $echo '$C_COMPILER  %CMPLRS_C_SysOptions %CMPLRS_C_Options $INCDIRS %CMPLRS_C_ModeOpt %CMPLRS_C_INCLUDE %CMPLRS_CXX_DBMSOpt %CMPLRS_Unit_C_Options %CMPLRS_C_WOKDirectives -c $SOURCE -o $OBJECT' > %OutputDir/../%Entity/.adm/c.compile
       $if ( $stat == 0 ) then
                                                %BaseName,
                                                 %OutputDir ,
                                                 %TmpFile , %Entity ) is
-     $%CMPLRS_CXX_COMPILER %CMPLRS_CXX_SysOptions %CMPLRS_CXX_Options %CMPLRS_CXX_INCLUDE %CMPLRS_CXX_DBMSOpt %CMPLRS_CXX_ModeOpt %IncDirectives %DBDirectives %CMPLRS_CXX_WOKDirectives -c %Source -o %OutputDir/%BaseName.o 
-     $cd %OutputDir 
-     $%CMPLRS_CXX_COMPILER %CMPLRS_CXX_SysOptions %CMPLRS_CXX_Options %CMPLRS_CXX_INCLUDE %CMPLRS_CXX_DBMSOpt %CMPLRS_CXX_ModeOpt %IncDirectives %DBDirectives %CMPLRS_CXX_WOKDirectives -c %Source -o %OutputDir/%BaseName.o  >& %TmpFile
+      $cd %OutputDir && $%CMPLRS_CXX_COMPILER %CMPLRS_CXX_SysOptions %CMPLRS_CXX_Options %CMPLRS_CXX_INCLUDE %CMPLRS_CXX_DBMSOpt %CMPLRS_CXX_ModeOpt %IncDirectives %DBDirectives %CMPLRS_CXX_WOKDirectives -c %Source -o %OutputDir/%BaseName.o  >& %TmpFile
       $set stat = $status
       
       $if ( $stat == 0 ) then
     @end;
 
     @if ( %DebugMode == "True" ) then
-       @set %CMPLRS_CXX_ModeOpt = "-DDEB -D_DEBUG -DCSFDB";
-       @set %CMPLRS_C_ModeOpt   = "-DDEB -D_DEBUG -DCSFDB";
+       @set %CMPLRS_CXX_ModeOpt = "-DDEB -D_DEBUG";
+       @set %CMPLRS_C_ModeOpt   = "-DDEB -D_DEBUG";
        @set %CMPLRS_CXX_SysOptions = "-nologo -MDd -W3 -Gm -GX -Od -Zi";
        @set %CMPLRS_C_SysOptions = "-nologo -MDd -W3 -Gm -GX -Od -Zi";
        @set %CMPLRS_F77_ModeOpt = "-DDEB -D_DEBUG";
     @else
-       @set %CMPLRS_CXX_ModeOpt = "-DNDEBUG -DNo_Exception -DCSFDB";
-       @set %CMPLRS_C_ModeOpt   = "-DNDEBUG -DNo_Exception -DCSFDB";
+       @set %CMPLRS_CXX_ModeOpt = "-DNDEBUG -DNo_Exception";
+       @set %CMPLRS_C_ModeOpt   = "-DNDEBUG -DNo_Exception";
        @set %CMPLRS_CXX_SysOptions = "-nologo -MD -W3 -GX -O2 ";
-       @set %CMPLRS_C_SysOptions = "-nologo -MDd -W3 -GX -O2 ";
+       @set %CMPLRS_C_SysOptions = "-nologo -MD -W3 -GX -O2 ";
        @set %CMPLRS_F77_ModeOpt = "-DNDEBUG -DNo_Exception";
     @endif;
 
              %BaseName, %OutputDir, %CMPLRS_ExportBehaviour
             ) is
   $%CMPLRS_CXX_COMPILER %CMPLRS_CXX_SysOptions %CMPLRS_CXX_Options %CMPLRS_ExportBehaviour\^
-  $  %IncDirectives %CMPLRS_CXX_INCLUDE %CMPLRS_CXX_ModeOpt \^
+  $  %IncDirectives %CMPLRS_CXX_INCLUDE %CMPLRS_CXX_DBMSOpt %CMPLRS_CXX_ModeOpt \^
   $ -Fd%PDBName -c -Tp %Source -Fo%OutputDir%BaseName.obj;
   $set cmplrs_status=%status%;
-  $@acpp.exe -M -m -+ %CMPLRS_CXX_Options -D__cplusplus -D_DLL -D_MT %CMPLRS_ExportBehaviour %IncDirectives\^
+  $@acpp.exe -M -m -+ %CMPLRS_CXX_Options -D__cplusplus -D_DLL -D_MT %CMPLRS_ExportBehaviour  %IncDirectives %CMPLRS_CXX_INCLUDE\^
   $ %Source -o %OutputDir%BaseName.m;
   $set status=%cmplrs_status%;
   @end;
   @end;
 
   @template CMPLRS_C_CmdLine (
-             %CMPLRS_C_COMPILER, %CMPLRS_C_SysOptions, %CMPLRS_C_Options, %CMPLRS_C_ModeOpt, 
+             %CMPLRS_C_COMPILER, %CMPLRS_C_SysOptions, %CMPLRS_C_Options, %CMPLRS_C_ModeOpt, %CMPLRS_CXX_DBMSOpt,
              %IncDirectives, %PDBName, %Source,
              %BaseName, %OutputDir, %CMPLRS_ExportBehaviour
             ) is
   $%CMPLRS_C_COMPILER %CMPLRS_C_SysOptions %CMPLRS_C_Options %CMPLRS_ExportBehaviour\^
-  $  %IncDirectives %CMPLRS_C_ModeOpt \^
+  $  %IncDirectives %CMPLRS_CXX_DBMSOpt %CMPLRS_C_ModeOpt \^
   $ -Fd%PDBName -c -Tc %Source -Fo%OutputDir%BaseName.obj;
   $set cmplrs_status=%status%;
   $@acpp.exe -M -m -+ %CMPLRS_C_Options -D_DLL -D_MT %CMPLRS_ExportBehaviour %IncDirectives\^
index dd1728a1d126a2c89062d37dd5a8d6b92f8859f0..c742c656f22ebb1fb8c745677815f7d279ce8a76 100755 (executable)
    $  -all -objectlist %LD_ObjList -none \
   @end;
 
-  @template LINKSHR_Footer ( %Station, %STLPortLib) is
-    $-lm %STLPortLib;
+  @template LINKSHR_Footer ( %Station ) is
+    $-lm ;
     $ set ld_status=$status
     --$ /usr/bin/rm -f so_locations
     --$ if ( $?LD_LIBRARY_PATH ) then
    $-Wl,-c%LD_ObjList.o \
   @end;
 
-  @template LINKSHR_Footer ( %Station, %STLPortLib ) is
-   $-L/usr/lib/aCC -ldld -L/usr/lib -lM -lstd -lCsup -lstream -lcl -lc -lm %STLPortLib\
+  @template LINKSHR_Footer ( %Station ) is
+   $-L/usr/lib/aCC -ldld -L/usr/lib -lM -lstd -lCsup -lstream -lcl -lc -lm \
    $;
    $ set ld_status=${status}
    --$ if ( $?SHLIB_PATH ) then
    $ -p 0 \
   @end;
 
-  @template LINKSHR_Footer ( %Target, %LibName, %STLPortLib ) is
+  @template LINKSHR_Footer ( %Target, %LibName) is
     $ -e${allLibPath}/lib%LibName.imp \
-    $ -bnoentry %STLPortLib;
+    $ -bnoentry ;
 ---    $ set ld_status=${status}
 --    $ echo "#\!lib%LibName"               > ${allLibPath}/lib%LibName.exp
 --    $ cat ${allLibPath}/lib%LibName.imp  >> ${allLibPath}/lib%LibName.exp