From b451ebc94f49647413881d8ec3806fd699f7a3f9 Mon Sep 17 00:00:00 2001 From: Berke Viktor Date: Sun, 30 Sep 2012 18:04:45 +0200 Subject: Add libffi build scripts and patch for borked mozilla-build script --- win32/deps/libffi/release-x64.bat | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 win32/deps/libffi/release-x64.bat (limited to 'win32/deps/libffi/release-x64.bat') diff --git a/win32/deps/libffi/release-x64.bat b/win32/deps/libffi/release-x64.bat new file mode 100644 index 00000000..2b556375 --- /dev/null +++ b/win32/deps/libffi/release-x64.bat @@ -0,0 +1,32 @@ +:: run this from a command prompt +@echo off + +SET PACKAGE_NAME=libffi-3.0.11 + +set LIBFFI_SRC=%cd% +set LIBFFI_DEST=%cd%-x64 +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 +set OUTDIR=x86_64-w64-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 +copy LICENSE %LIBFFI_DEST%\LICENSE.LIBFFI + +cd %LIBFFI_DEST% +set PATH=%PATH%;%ProgramFiles%\7-zip +del ..\%PACKAGE_NAME%-x64.7z +7z a ..\%PACKAGE_NAME%-x64.7z * +cd %LIBFFI_SRC% +rmdir /q /s %LIBFFI_DEST% +rmdir /q /s %OUTDIR% + +echo.Finished! +pause -- cgit 1.4.1