-
Notifications
You must be signed in to change notification settings - Fork 54
Expand file tree
/
Copy pathswig.bat
More file actions
30 lines (19 loc) · 832 Bytes
/
swig.bat
File metadata and controls
30 lines (19 loc) · 832 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
cd /D "%~dp0"
rmdir .\com /S /Q
mkdir .\com
mkdir .\com\docxfactory
del *.jar /F /Q
del *.h /F /Q
del *.cxx /F /Q
copy ..\include\DocxFactory\WordProcessingCompiler\dfwc.h . /Y
copy ..\include\DocxFactory\WordProcessingMerger\dfw.h . /Y
"C:\Program Files (x86)\swig\swig.exe" -c++ -java -package com.docxfactory -outdir com\docxfactory WordProcessingCompiler.i
"C:\Program Files (x86)\swig\swig.exe" -c++ -java -package com.docxfactory -outdir com\docxfactory WordProcessingMerger.i
cscript.exe ".\insert_safe_exceptions.js" ".\WordProcessingCompiler_wrap.cxx"
cscript.exe ".\insert_safe_exceptions.js" ".\WordProcessingMerger_wrap.cxx"
set path=C:\jdk1.5.0_22\bin;%path%
set classpath=.\com\docxfactory;%classpath%
javac.exe ".\com\docxfactory\*"
jar cf docxfactory.jar .\com\docxfactory
rmdir .\com /S /Q
del *.h /F /Q