0023097: MFC Samples do not compile after redesigning the TKOpenGl driver
[occt.git] / samples / java / REBUILD.COMP
CommitLineData
7fd59977 1#! /bin/csh -f
2
3if ( $#argv > 1 ) then
4
5 setenv CASROOT $argv[1]
6 setenv SAMPLE_ROOT $argv[2]
7
8endif
9
10
11echo " ---------------- "
12echo " Building OpenCASCADE Samples "
13echo " ---------------- "
14echo " "
15echo " "
16
17if (! ($?CASROOT)) then
18 echo -n "Please define CASROOT to the folder containing OpenCascade '"'src'"', '"'drv'"' and '"'inc'"' folders. : "
19 set nogoodpath = 0
20 while ( ${nogoodpath} == 0 )
21 set res = $<
22 if ( ! (-e ${res}/inc/Standard_Real.hxx ) ) then
23 echo -n "${res}/inc/Standard_Real.hxx doesn't exist ; Please try again : "
24 else
25 setenv CASROOT ${res}
26 set nogoodpath = 1
27 endif
28 end
29endif
30
31## Variable for JAVA
32
33if ( !($?JAVAHOME) ) then
34
35 set javanotset = 0
36 while ( ${javanotset} == 0 )
37 echo -n "JAVAHOME not setted . Please define it : "
38 set res = $<
39 if (! (-e ${res}/bin/java)) then
40 echo "java not found in ${res}/bin"
41 else
42 # Now we verify if it is really a JDK 1.3
43 if ( !(-e ${res}/include/jawt.h ) ) then
44 echo " the ${res}/include directory doesn't contains jawt.h"
45 echo " it's seems it is not a JDK 1.3 distribution "
46 echo " Please try again"
47 else
48 setenv JAVAHOME ${res}
49 set javanotset = 1
50 endif
51 endif
52 end
53
54endif
55
56set REBUILDJAR = No
57echo -n "Do you want to rebuild the JAR file [N] : "
58set res = $<
59if ( ${res} != "" ) then
60 if ( ${res} == "Y" ) then
61 set REBUILDJAR = Yes
62 else
63 if ( ${res} == "y" ) then
64 set REBUILDJAR = Yes
65 endif
66 endif
67endif
68
69setenv STATION `uname`
70if (${STATION} == "IRIX64") setenv STATION IRIX
71
72setenv SAMPLE_ROOT `pwd`
73
74foreach pk (ISession ISession2D SampleAISBasicPackage SampleAISDisplayModePackage SampleAISSelectPackage SampleDisplayAnimationPackage SampleGeometryPackage SampleHLRPackage SampleImportExportPackage jcas SampleNativePaint SampleViewer3DPackage SamplesTopologyPackage User)
75 echo " compiling .. $pk "
76 csh -f ${SAMPLE_ROOT}/adm/${STATION}/$pk.comp
77end
78
79foreach tk (TKNativePaint TKSamples TKSamples2 TKjcas)
80echo " "
81echo " "
82echo " "
83echo " linking .. $tk "
84echo " "
85 csh -f ${SAMPLE_ROOT}/adm/${STATION}/$tk.lnk
86end
87
88foreach pk ( SampleAISBasicJni SampleAISDisplayModeJni SampleAISSelectJni SampleDisplayAnimationJni SampleGeometryJni SampleHLRJni SampleImportExportJni SampleViewer3DJni SamplesTopologyJni CASCADESamplesJni )
89echo " "
90echo " compiling .. $pk "
91echo " "
92 csh -fx ${SAMPLE_ROOT}/adm/${STATION}/$pk.comp
93echo " "
94echo " linking .. $pk "
95echo " "
96 csh -f ${SAMPLE_ROOT}/adm/${STATION}/$pk.lnk
97end
98
99if ( ${REBUILDJAR} == "Yes" ) then
100 echo "Building the JAR File "
101# cd java
102 csh -f build.csh
103endif