* 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
20 lines
410 B
Batchfile
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
|