2012-09-30 20:04:45 +04:00
|
|
|
:: run this from a command prompt
|
|
|
|
@echo off
|
|
|
|
|
|
|
|
SET PACKAGE_NAME=libffi-3.0.11
|
|
|
|
|
|
|
|
set LIBFFI_SRC=%cd%
|
|
|
|
set LIBFFI_DEST=%cd%-x86
|
|
|
|
echo.Press return when ready to install!
|
|
|
|
pause
|
|
|
|
|
|
|
|
rmdir /q /s %LIBFFI_DEST%
|
|
|
|
mkdir %LIBFFI_DEST%
|
|
|
|
mkdir %LIBFFI_DEST%\bin
|
|
|
|
mkdir %LIBFFI_DEST%\include
|
|
|
|
mkdir %LIBFFI_DEST%\lib
|
2012-10-03 18:31:24 +04:00
|
|
|
mkdir %LIBFFI_DEST%\share
|
|
|
|
mkdir %LIBFFI_DEST%\share\doc
|
|
|
|
mkdir %LIBFFI_DEST%\share\doc\libffi
|
2012-09-30 20:04:45 +04:00
|
|
|
set OUTDIR=i686-pc-mingw32
|
|
|
|
copy %OUTDIR%\include\ffi.h %LIBFFI_DEST%\include
|
|
|
|
copy %OUTDIR%\include\ffitarget.h %LIBFFI_DEST%\include
|
|
|
|
copy %OUTDIR%\.libs\libffi_convenience.lib %LIBFFI_DEST%\lib\libffi.lib
|
|
|
|
copy %OUTDIR%\.libs\libffi-6.dll %LIBFFI_DEST%\bin
|
2012-10-03 18:31:24 +04:00
|
|
|
copy LICENSE %LIBFFI_DEST%\share\doc\libffi\COPYING
|
2012-09-30 20:04:45 +04:00
|
|
|
|
|
|
|
cd %LIBFFI_DEST%
|
|
|
|
set PATH=%PATH%;%ProgramFiles%\7-zip
|
|
|
|
del ..\%PACKAGE_NAME%-x86.7z
|
|
|
|
7z a ..\%PACKAGE_NAME%-x86.7z *
|
|
|
|
cd %LIBFFI_SRC%
|
|
|
|
rmdir /q /s %LIBFFI_DEST%
|
|
|
|
rmdir /q /s %OUTDIR%
|
|
|
|
|
|
|
|
echo.Finished!
|
|
|
|
pause
|