0023097: MFC Samples do not compile after redesigning the TKOpenGl driver
[occt.git] / samples / java / build.csh
1 #!/bin/csh -f
2
3 setenv STATION `uname -s`                                                                                                                                   
4 if (${STATION} == "IRIX64") setenv STATION IRIX
5
6 setenv SAMPLE_ROOT `pwd`
7
8 cd $STATION
9
10 if ( ! -d obj ) then
11     mkdir obj
12 endif
13
14 if ( ! -d classes ) then
15     mkdir classes
16 endif
17 if ( !($?JAVAHOME) ) then
18     echo -n "JAVAHOME not setted . Please define it : "
19     set res = $<
20     setenv JAVAHOME  ${res}
21 else
22     setenv JDK ${JAVAHOME}
23 endif
24
25 ${JAVAHOME}/bin/javac -d classes ${CASROOT}/src/jcas/*.java ${SAMPLE_ROOT}/java/CASCADESamplesJni/*.java ${SAMPLE_ROOT}/java/SampleGeometryJni/*.java ${SAMPLE_ROOT}/java/SamplesTopologyJni/*.java ${SAMPLE_ROOT}/java/SampleViewer3DJni/*.java ${SAMPLE_ROOT}/java/SampleAISBasicJni/*.java ${SAMPLE_ROOT}/java/SampleAISDisplayModeJni/*.java ${SAMPLE_ROOT}/java/SampleAISSelectJni/*.java ${SAMPLE_ROOT}/java/SampleDisplayAnimationJni/*.java ${SAMPLE_ROOT}/java/SampleImportExportJni/*.java ${SAMPLE_ROOT}/java/SampleHLRJni/*.java ${SAMPLE_ROOT}/java/util/*.java ${SAMPLE_ROOT}/java/util/x11/*.java ${SAMPLE_ROOT}/java/*.java
26
27 ${JAVAHOME}/bin/jar -cf CASCADESamples.jar -C classes/ .
28
29 rm -R classes