xgboost/jvm-packages/create_jni.bat
Adam Pocock 445029bb82 [jvm-packages] XGBoost4j Windows fixes (#1639)
* Changes for Mingw64 compilation to ensure long is a consistent size.

Mainly impacts the Java API which would not compile, but there may be
silent errors on Windows with large datasets before this patch (as long
is 32-bits when compiled with mingw64 even in 64-bit mode).

* Adding ifdefs to ensure it still compiles on MacOS

* Makefile and create_jni.bat changes for Windows.

* Switching XGDMatrixCreateFromCSREx JNI call to use size_t cast

* Fixing lint error, adding profile switching to jvm-packages build to make create-jni.bat get called, adding myself to Contributors.Md
2016-10-18 08:35:25 -04:00

20 lines
410 B
Batchfile

echo "copy native library"
set libsource=..\lib\libxgboost4j.so
if not exist %libsource% (
goto end
)
set libfolder=src\main\resources\lib
set libpath=%libfolder%\xgboost4j.dll
if not exist %libfolder% (mkdir %libfolder%)
if exist %libpath% (del %libpath%)
copy %libsource% %libpath%
echo complete
exit
:end
echo "source library not found, please build it first by runing mingw32-make jvm"
pause
exit