You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
718 B
23 lines
718 B
9 years ago
|
@echo off
|
||
|
call set-java-path.bat
|
||
|
set JAVA_INCLUDE=%JAVA_DIR%\include
|
||
|
set SWIG=..\..\..\p\swig\swig.exe
|
||
|
set PACKAGE_NAME=com.herumi.mcl
|
||
|
set PACKAGE_DIR=%PACKAGE_NAME:.=\%
|
||
8 years ago
|
if /i "%1"=="" (
|
||
|
set NAME=elgamal
|
||
|
) else (
|
||
|
set NAME=%1
|
||
|
)
|
||
9 years ago
|
|
||
|
echo [[run swig]]
|
||
|
mkdir %PACKAGE_DIR%
|
||
8 years ago
|
%SWIG% -java -package %PACKAGE_NAME% -outdir %PACKAGE_DIR% -c++ -Wall %NAME%.i
|
||
9 years ago
|
echo [[make dll]]
|
||
8 years ago
|
cl /MT /DNOMINMAX /LD /Ox /DNDEBUG /EHsc %NAME%_wrap.cxx ../src/fp.cpp -DMCL_NO_AUTOLINK -I%JAVA_INCLUDE% -I%JAVA_INCLUDE%\win32 -I../include -I../../cybozulib/include -I../../cybozulib_ext/include -I../../xbyak /link /LIBPATH:../../cybozulib_ext/lib /OUT:../bin/mcl_%NAME%.dll
|
||
9 years ago
|
|
||
8 years ago
|
call run-%NAME%.bat
|
||
9 years ago
|
|
||
|
echo [[make jar]]
|
||
8 years ago
|
%JAVA_DIR%\bin\jar cvf mcl.jar com
|