]> OCCT Git - occt-wok.git/commitdiff
take account JAVA Compiler path for Jini UD.
authorcas <cas@opencascade.com>
Tue, 13 Nov 2001 18:01:20 +0000 (18:01 +0000)
committercas <cas@opencascade.com>
Tue, 13 Nov 2001 18:01:20 +0000 (18:01 +0000)
src/WOKBuilderDef/CMPLRS.edl
src/WOKBuilderDef/JAVA.edl

index 1f610e205aec9931285a8578f2716ab57c38abc0..62e46acb0c2a05ea7e2d0a5281d2f7b935abb692 100755 (executable)
     @set %DebugMode = "False";
  @endif;
 
+
+--- for JAVA : 
+ @set %CMPLRS_CXX_JAVA = "" ;
+ @ifdefined ( %UnitType ) then
+    @if (%UnitType == "jini") then
+       @uses "JAVA.edl" ;
+       @string %CMPLRS_CXX_JAVA = %CXX_JAVA ;
+    @endif;
+ @endif;
+
  @if ( %Station == "wnt" ) then
 
     --WARNING : For WNT, it is necessary to have $set symbol_name=%symbol_value%
                                                 %CMPLRS_CXX_Options ,
                                                 %CMPLRS_CXX_ModeOpt , %CMPLRS_CXX_DBMSOpt ,
                                                %CMPLRS_CXX_INCLUDE ,
+                                               %CMPLRS_CXX_JAVA ,
                                                %CMPLRS_CXX_WOKDirectives ,
                                                 %IncDirectives ,
                                                 %DBDirectives ,
     $CMPLRS_CXX_ModeOpt       = %CMPLRS_CXX_ModeOpt
     $CMPLRS_CXX_DBMSOpt       = %CMPLRS_CXX_DBMSOpt
     $CMPLRS_CXX_INCLUDE       = %CMPLRS_CXX_INCLUDE
+    $CMPLRS_CXX_JAVA          = %CMPLRS_CXX_JAVA
     $CMPLRS_CXX_WOKDirectives = %CMPLRS_CXX_WOKDirectives
     $Dynamic include directives are :
     $%IncDirectives
                                                 %CMPLRS_CXX_ModeOpt , 
                                                %CMPLRS_CXX_DBMSOpt ,
                                                %CMPLRS_CXX_INCLUDE ,
+                                               %CMPLRS_CXX_JAVA ,
                                                %CMPLRS_CXX_WOKDirectives ,
                                                 %IncDirectives ,
                                                 %DBDirectives ,
                                                 %OutputDir ,
                                                 %TmpFile , %Entity ) is
      $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
+     $%CMPLRS_CXX_COMPILER %CMPLRS_CXX_SysOptions %CMPLRS_CXX_Options %CMPLRS_CXX_INCLUDE %CMPLRS_CXX_JAVA %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
       $  if ( -e %OutputDir/%BaseName.d ) then
     $CMPLRS_CXX_ModeOpt       = %CMPLRS_CXX_ModeOpt
     $CMPLRS_CXX_DBMSOpt       = %CMPLRS_CXX_DBMSOpt
     $CMPLRS_CXX_INCLUDE       = %CMPLRS_CXX_INCLUDE
+    $CMPLRS_CXX_JAVA          = %CMPLRS_CXX_JAVA
     $CMPLRS_CXX_WOKDirectives = %CMPLRS_CXX_WOKDirectives
     $Dynamic include directives are :
     $%IncDirectives
                                                 %CMPLRS_CXX_ModeOpt , 
                                                 %CMPLRS_CXX_DBMSOpt ,
                                                %CMPLRS_CXX_INCLUDE ,
-                                               %CMPLRS_CXX_WOKDirectives ,
+                                               %CMPLRS_CXX_JAVA ,
+                                               %CMPLRS_CXX_WOKDirectives ,
                                                 %IncDirectives ,
                                                 %DBDirectives ,
                                                 %Source,
                                                %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  >& %TmpFile
+     $%CMPLRS_CXX_COMPILER %CMPLRS_CXX_SysOptions %CMPLRS_CXX_Options         %CMPLRS_CXX_INCLUDE  %CMPLRS_CXX_JAVA  %CMPLRS_CXX_DBMSOpt  %CMPLRS_CXX_ModeOpt %IncDirectives %DBDirectives %CMPLRS_CXX_WOKDirectives -c %Source  -o %OutputDir/%BaseName.o  >& %TmpFile
      $set stat = $status
-     $echo '$CXX_COMPILER %CMPLRS_CXX_SysOptions %CMPLRS_CXX_Options $INCDIRS %CMPLRS_CXX_INCLUDE  %CMPLRS_CXX_DBMSOpt %CMPLRS_CXX_ModeOpt -c $SOURCE -o $OBJECT' > %OutputDir/../%Entity/.adm/cxx.compile
+     $echo '$CXX_COMPILER %CMPLRS_CXX_SysOptions %CMPLRS_CXX_Options $INCDIRS %CMPLRS_CXX_INCLUDE %CMPLRS_CXX_JAVA  %CMPLRS_CXX_DBMSOpt %CMPLRS_CXX_ModeOpt -c $SOURCE -o $OBJECT' > %OutputDir/../%Entity/.adm/cxx.compile
      $if ( $stat == 0 ) then
      $  sed -e 's/     //g' -e '/Compilation failed/d' -e '/:/d' -e 's%/\./%/%g'  -e 's%//%/%g' %TmpFile \^
      $| grep -v 'detected.$' | sort -u  > %OutputDir/%BaseName.m
                                                 %CMPLRS_CXX_ModeOpt , 
                                                 %CMPLRS_CXX_DBMSOpt ,
                                                %CMPLRS_CXX_INCLUDE ,
+                                               %CMPLRS_CXX_JAVA ,
                                                %CMPLRS_CXX_WOKDirectives ,
                                                 %IncDirectives ,
                                                 %DBDirectives ,
     $CMPLRS_CXX_ModeOpt       = %CMPLRS_CXX_ModeOpt
     $CMPLRS_CXX_DBMSOpt       = %CMPLRS_CXX_DBMSOpt
     $CMPLRS_CXX_INCLUDE       = %CMPLRS_CXX_INCLUDE
+    $CMPLRS_CXX_JAVA          = %CMPLRS_CXX_JAVA
     $CMPLRS_CXX_WOKDirectives = %CMPLRS_CXX_WOKDirectives
     $Dynamic include directives are :
     $%IncDirectives
                                 %CMPLRS_CXX_SysOptions, 
                                 %CMPLRS_CXX_Options, 
                                 %CMPLRS_CXX_ModeOpt,
-                                 %CMPLRS_CXX_DBMSOpt ,
+                                %CMPLRS_CXX_JAVA ,     
                                 %IncDirectives, 
                                 %PDBName, 
                                 %Source,
                                 %BaseName, 
                                 %OutputDir, 
-                                %CMPLRS_ExportBehaviour  ) is
+                                %CMPLRS_ExportBehaviour
+            ) is
   $%CMPLRS_CXX_COMPILER %CMPLRS_CXX_SysOptions %CMPLRS_CXX_Options %CMPLRS_ExportBehaviour\^
-  $  %IncDirectives %CMPLRS_CXX_ModeOpt  %CMPLRS_CXX_DBMSOpt  \^
+  $  %IncDirectives %CMPLRS_CXX_ModeOpt %CMPLRS_CXX_JAVA \^
   $ -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\^
   @end;
 
   @template CMPLRS_C_OptLine (%CMPLRS_C_COMPILER ,
-                              %CMPLRS_C_SysOptions ,
-                              %CMPLRS_C_Options ,
-                              %CMPLRS_C_ModeOpt ,
-                              %IncDirectives ,
-                              %CMPLRS_Unit_C_Options ,
-                              %CMPLRS_C_WOKDirectives ,
-                              %CMPLRS_ExportBehaviour ,
-                              %Entity ) is
+                                            %CMPLRS_C_SysOptions ,
+                                            %CMPLRS_C_Options ,
+                                            %CMPLRS_C_ModeOpt ,
+                                            %IncDirectives ,
+                                            %CMPLRS_Unit_C_Options ,
+                                            %CMPLRS_C_WOKDirectives ,
+                                            %CMPLRS_ExportBehaviour ,
+                                            %Entity ) is
   $Following parameters make up C compilation command in this order:
   $CMPLRS_C_COMPILER      = %CMPLRS_C_COMPILER 
   $CMPLRS_C_SysOptions    = %CMPLRS_C_SysOptions
                                                 %CMPLRS_CXX_ModeOpt , 
                                                 %CMPLRS_CXX_DBMSOpt ,
                                                %CMPLRS_CXX_INCLUDE ,
-                                               %CMPLRS_CXX_WOKDirectives ,
+                                               %CMPLRS_CXX_JAVA ,      
+                                               %CMPLRS_CXX_WOKDirectives ,
                                                 %IncDirectives ,
                                                 %DBDirectives ,
                                                 %Entity ) is
     $CMPLRS_CXX_ModeOpt       = %CMPLRS_CXX_ModeOpt
     $CMPLRS_CXX_DBMSOpt       = %CMPLRS_CXX_DBMSOpt
     $CMPLRS_CXX_INCLUDE       = %CMPLRS_CXX_INCLUDE
+    $CMPLRS_CXX_JAVA          = %CMPLRS_CXX_JAVA
     $CMPLRS_CXX_WOKDirectives = %CMPLRS_CXX_WOKDirectives
     $Dynamic include directives are :
     $%IncDirectives
                                                 %CMPLRS_CXX_ModeOpt , 
                                                 %CMPLRS_CXX_DBMSOpt ,
                                                %CMPLRS_CXX_INCLUDE ,
-                                               %CMPLRS_CXX_WOKDirectives ,
+                                               %CMPLRS_CXX_JAVA ,      
+                                               %CMPLRS_CXX_WOKDirectives ,
                                                 %IncDirectives ,
                                                 %DBDirectives ,
                                                 %Source,
                                                %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 %TmpFile -c %Source  -o %OutputDir/%BaseName.o  
+     $%CMPLRS_CXX_COMPILER %CMPLRS_CXX_SysOptions %CMPLRS_CXX_Options %CMPLRS_CXX_INCLUDE %CMPLRS_CXX_JAVA %CMPLRS_CXX_DBMSOpt  %CMPLRS_CXX_ModeOpt %IncDirectives %DBDirectives %CMPLRS_CXX_WOKDirectives %TmpFile -c %Source  -o %OutputDir/%BaseName.o  
      $set stat = $status
      $echo '$CXX_COMPILER %CMPLRS_CXX_SysOptions %CMPLRS_CXX_Options $INCDIRS %CMPLRS_CXX_INCLUDE  %CMPLRS_CXX_DBMSOpt %CMPLRS_CXX_ModeOpt -c $SOURCE -o $OBJECT' > %OutputDir/../%Entity/.adm/cxx.compile
      $if ( $stat == 0 ) then
      $ if ( -e %TmpFile ) then
-     $  sed  -e '1d' -e 's%/./%/%g' %TmpFile | grep -v '^#'|  tr ' ' '\012' | sort -u > %OutputDir/%BaseName.m
+     $  cat %TmpFile  | tr ' ' '\012' | sed  -e '1d' -e 's%/./%/%g' | grep -v '^#'| sort -u > %OutputDir/%BaseName.m
      $ else
      $  touch %OutputDir/%BaseName.m
      $ endif
                                                 %CMPLRS_CXX_Options ,
                                                 %CMPLRS_CXX_ModeOpt , %CMPLRS_CXX_DBMSOpt ,
                                                %CSF_CXX_INCLUDE ,
-                                               %CMPLRS_CXX_WOKDirectives ,
+                                               %CMPLRS_CXX_JAVA ,      
+                                               %CMPLRS_CXX_WOKDirectives ,
                                                 %IncDirectives ,
                                                 %DBDirectives ,
                                                 %Source,
                                                %BaseName,
                                                 %OutputDir ,
                                                 %TmpFile ) is
-     $%CSF_CXX_COMPILER %CMPLRS_CXX_SysOptions %CMPLRS_CXX_Options %CSF_CXX_INCLUDE  %CMPLRS_CXX_DBMSOpt  %CMPLRS_CXX_ModeOpt %IncDirectives %DBDirectives %CMPLRS_CXX_WOKDirectives -c %Source  -o %OutputDir/%BaseName.o  >& %TmpFile
+     $%CSF_CXX_COMPILER %CMPLRS_CXX_SysOptions %CMPLRS_CXX_Options %CSF_CXX_INCLUDE %CMPLRS_CXX_JAVA %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
      $ /opt/aCC/bin/aCC -I/opt/aCC/include -I/opt/aCC/include/iostream %IncDirectives -E %CMPLRS_CXX_Options %CMPLRS_CXX_DBMSOpt %Source | egrep -e '^#' | awk '{print $3}' \
                                                 %CMPLRS_CXX_Options ,
                                                 %CMPLRS_CXX_ModeOpt , %CMPLRS_CXX_DBMSOpt ,
                                                %CSF_CXX_INCLUDE ,
-                                               %CMPLRS_CXX_WOKDirectives ,
+                                               %CMPLRS_CXX_JAVA ,      
+                                               %CMPLRS_CXX_WOKDirectives ,
                                                 %IncDirectives ,
                                                 %DBDirectives ,
                                                 %Source,
                                                %BaseName,
                                                 %OutputDir ,
                                                 %TmpFile ) is
-     $%CSF_CXX_COMPILER %CMPLRS_CXX_SysOptions %CMPLRS_CXX_Options %CSF_CXX_INCLUDE %CMPLRS_CXX_DBMSOpt  %CMPLRS_CXX_ModeOpt %IncDirectives %DBDirectives %CMPLRS_CXX_WOKDirectives -c %Source  -o %OutputDir/%BaseName.o  >& %TmpFile
+     $%CSF_CXX_COMPILER %CMPLRS_CXX_SysOptions %CMPLRS_CXX_Options %CSF_CXX_INCLUDE %CMPLRS_CXX_JAVA %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
      $ sed -e 's/ //g' -e '/:/d' %TmpFile | sort -u > %OutputDir/%BaseName.m
index 4c77b4ce3b1ec825891c19a1cf0ddd1e503bd1e1..babe6759a3f83c551795888ba3ab4f525a0cff29 100755 (executable)
  @set %JAVA_HeaderOptions = "";
 
  @template JAVA_Compiler (
+           %CSF_JavaHome,
             %JAVA_Command, %JAVA_Options, %IncludeDir, %Source, %OutDir
            ) is
- $%JAVA_Command %JAVA_Options -classpath %IncludeDir -d %OutDir %Source\^
+ $%CSF_JavaHome/bin/%JAVA_Command %JAVA_Options -classpath %IncludeDir -d %OutDir %Source\^
  @end;
 
  @template JAVA_Header (
+            %CSF_JavaHome,
             %JAVA_HeaderCommand, %JAVA_HeaderOptions, %IncludeDir, %Class, %OutFile
            ) is
- $%JAVA_HeaderCommand %JAVA_HeaderOptions -classpath %IncludeDir -o %OutFile %Class\^
+ $%CSF_JavaHome/bin/%JAVA_HeaderCommand %JAVA_HeaderOptions -classpath %IncludeDir -o %OutFile %Class\^
  @end;
 @endif;
+
+@string %CXX_JAVA = " -I" %CSF_JavaHome "/include ";
+
+@if ( %Station == "sun" ) then
+    @string %CXX_JAVA += " -I" %CSF_JavaHome "/include/solaris ";
+@endif;
+
+@if ( %Station == "lin" ) then
+    @string %CXX_JAVA += " -I" %CSF_JavaHome "/include/linux ";
+@endif;
+
+@if ( %Station == "sil" ) then
+    @string %CXX_JAVA += " -I" %CSF_JavaHome "/include/irix ";
+@endif;
+
+@if ( %Station == "hp" ) then
+    @string %CXX_JAVA += " -I" %CSF_JavaHome "/include/hpux ";
+@endif;
+
+@if ( %Station == "aix" ) then
+    @string %CXX_JAVA += "" ;
+@endif;
+
+