0023097: MFC Samples do not compile after redesigning the TKOpenGl driver
[occt.git] / samples / java / build.bat
CommitLineData
cf236913 1@ECHO OFF
2
3call %~dp0..\..\ros\env_build.bat vc8 win32
4
5IF NOT EXIST win32 mkdir win32
6cd win32
7IF NOT EXIST vc8 mkdir vc8
8cd vc8
9
10SET ROOT=%CASROOT%\..
11SET SAMPLEHOME=%ROOT%\samples\java
12
13IF NOT EXIST obj mkdir obj
14IF NOT EXIST classes mkdir classes
15
16del CASCADESamples.jar
17
18%JAVAHOME%\bin\javac -d classes %CASROOT%\src\jcas\*.java %SAMPLEHOME%\java\CASCADESamplesJni\*.java %SAMPLEHOME%\java\SampleGeometryJni\*.java %SAMPLEHOME%\java\SamplesTopologyJni\*.java %SAMPLEHOME%\java\SampleViewer3DJni\*.java %SAMPLEHOME%\java\SampleAISBasicJni\*.java %SAMPLEHOME%\java\SampleAISDisplayModeJni\*.java %SAMPLEHOME%\java\SampleAISSelectJni\*.java %SAMPLEHOME%\java\SampleDisplayAnimationJni\*.java %SAMPLEHOME%\java\SampleImportExportJni\*.java %SAMPLEHOME%\java\SampleHLRJni\*.java %SAMPLEHOME%\java\util\*.java %SAMPLEHOME%\java\*.java
19
20
21cd classes
22%JAVAHOME%\bin\jar -cf CASCADESamples.jar -C . jcas\*.class CASCADESamplesJni\*.class SampleGeometryJni\*.class SamplesTopologyJni\*.class SampleViewer3DJni\*.class SampleAISBasicJni\*.class SampleAISDisplayModeJni\*.class SampleAISSelectJni\*.class SampleDisplayAnimationJni\*.class SampleImportExportJni\*.class SampleHLRJni\*.class util\*.class *.class
23copy CASCADESamples.jar %SAMPLEHOME%\win32
24
25cd ..
26del /q /s /f classes\*
27rmdir /q /s classes
28
29cd ..