awips2/nativeLib/rary.meteorological/windows/project/meteolib.bat
Bryan Kowal 83ba57dcd1 Issue #243 - it is now possible to build meteolib on Windows; meteolib, jep, and gridslice are now all built using MSBuild when built from the command line.
Former-commit-id: 7b5b643d18 [formerly 2fabaff1d9] [formerly 38eb4bd2b6] [formerly 521756e57e [formerly 38eb4bd2b6 [formerly 1dd23c4dea214938fe9660f303458c5f08efdc01]]]
Former-commit-id: 521756e57e
Former-commit-id: 66ae2354057f0c9b76ece5f6ef014f53d118b46b [formerly 1c023403e2]
Former-commit-id: 134b8f2915
2012-02-15 10:31:58 -06:00

46 lines
1.2 KiB
Batchfile

@echo OFF
REM This script will compile a Windows version of the meteolib library.
REM In order to compile the meteolib library, you will need to have
REM MinGW installed and the AWIPS II Runtime Environment.
REM
REM This script should work on both a 32-bit and a 64-bit Windows 7
REM installation.
SET CONTAINING_DIR=%~dp0
pushd . > NUL 2>&1
cd %CONTAINING_DIR%
mingw32-make -f Makefile
IF ERRORLEVEL 1 (
echo ERROR: the meteolib compile has failed.
PAUSE && EXIT 1
)
popd > NUL 2>&1
IF NOT EXIST "%CONTAINING_DIR%..\build" (
MKDIR "%CONTAINING_DIR%..\build"
)
REM Move the build artifacts to the build directory.
MOVE /Y "%CONTAINING_DIR%meteoLib.dll" ^
"%CONTAINING_DIR%..\build"
REM Cleanup the remaining non-essential build artifacts.
IF EXIST "%CONTAINING_DIR%\Meteolibrary_JNI.o" (
echo Y | DEL "%CONTAINING_DIR%\Meteolibrary_JNI.o"
)
IF EXIST "%CONTAINING_DIR%\Meteolibrary_JNI.c" (
echo Y | DEL "%CONTAINING_DIR%\Meteolibrary_JNI.c"
)
IF EXIST "%CONTAINING_DIR%\meteoLib.h" (
echo Y | DEL "%CONTAINING_DIR%\meteoLib.h"
)
IF EXIST "%CONTAINING_DIR%\meteoLib_Java" (
RMDIR /S /Q "%CONTAINING_DIR%\meteoLib_Java"
)
echo.
echo.
echo The meteolib compile was successful.
PAUSE