forked from mean00/avidemux2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-svn-id: svn://svn.berlios.de/avidemux/branches/avidemux_2.6_branch_mean@8004 30592fff-cfd4-0310-bf0e-8235a3c7be26
- Loading branch information
gruntster
committed
Jun 9, 2012
1 parent
45fc866
commit 8028010
Showing
16 changed files
with
425 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
@echo off | ||
|
||
echo MSVC build for Aften | ||
echo ==================== | ||
echo 1. 32-bit build | ||
echo 2. 64-bit build | ||
echo X. Exit | ||
echo. | ||
|
||
choice /c 12x | ||
|
||
if errorlevel 1 ( | ||
set BuildBits=32 | ||
set VcvarFlags=x86 ) | ||
if errorlevel 2 ( | ||
set BuildBits=64 | ||
set VcvarFlags=x86_amd64 ) | ||
if errorlevel 3 goto :eof | ||
|
||
verify >nul | ||
call "../Set Common Environment Variables" | ||
if errorlevel 1 goto end | ||
|
||
set curDir=%CD% | ||
set PATH=%PATH%;%msysdir%\bin;%devDir%\Git\bin | ||
set CFLAGS= | ||
set CXXFLAGS= | ||
set LDFLAGS= | ||
|
||
call "%ProgramFiles(x86)%\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" %VcvarFlags% | ||
echo. | ||
|
||
set sourceFolder=%devDir%/aften-%BuildBits% | ||
rm -r -f %sourceFolder% | ||
if errorlevel 1 goto end | ||
|
||
echo Downloading from git | ||
call git clone git://aften.git.sourceforge.net/gitroot/aften/aften %sourceFolder% | ||
if errorlevel 1 goto end | ||
|
||
cd "%sourceFolder%" | ||
call git checkout 89aee3d496bb2a89f046025402626ee12a12969f | ||
if errorlevel 1 goto end | ||
|
||
mkdir build%BuildBits% | ||
if errorlevel 1 goto end | ||
|
||
cd build%BuildBits% | ||
cmake -G"NMake Makefiles" -DCMAKE_INSTALL_PREFIX=%usrLocalDir% -DSHARED=ON -DCMAKE_C_FLAGS_RELEASE="/MT /O2 /Ob2 /D NDEBUG" .. | ||
if errorlevel 1 goto end | ||
|
||
nmake install | ||
if errorlevel 1 goto end | ||
|
||
copy "%usrLocalDir%\bin\aften.dll" "%admBuildDir%" | ||
|
||
:end | ||
pause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
@echo off | ||
|
||
echo MSVC build for avsproxy | ||
echo ======================= | ||
echo. | ||
|
||
set curDir=%CD% | ||
|
||
call "%ProgramFiles(x86)%\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86 | ||
echo. | ||
|
||
cd ..\..\..\addons\avisynthproxy | ||
if errorlevel 1 goto end | ||
|
||
vcupgrade -overwrite -nologo avsproxy.vcproj | ||
if errorlevel 1 goto end | ||
|
||
echo. | ||
msbuild avsproxy.vcxproj /p:Configuration=Release /t:rebuild | ||
if errorlevel 1 goto end | ||
|
||
set BuildBits=32 | ||
call "%curDir%\..\Set Common Environment Variables" | ||
copy "avsproxy.exe" "%admBuildDir%" | ||
|
||
set BuildBits=64 | ||
call "%curDir%\..\Set Common Environment Variables" | ||
copy "avsproxy.exe" "%admBuildDir%" | ||
|
||
:end | ||
pause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
@echo off | ||
|
||
echo MSYS build for expat | ||
echo ==================== | ||
echo 1. 32-bit build | ||
echo 2. 64-bit build | ||
echo X. Exit | ||
echo. | ||
|
||
choice /c 12x | ||
|
||
if errorlevel 1 set BuildBits=32 | ||
if errorlevel 2 set BuildBits=64 | ||
if errorlevel 3 goto :eof | ||
|
||
verify >nul | ||
call "../Set Common Environment Variables" | ||
if errorlevel 1 goto end | ||
|
||
set version=2.1.0 | ||
set package=expat-%version%.tar.gz | ||
set sourceFolder=expat-%version%-%BuildBits% | ||
set tarFolder=expat-%version% | ||
set curDir=%CD% | ||
set PATH=%PATH%;%msysDir%\bin | ||
|
||
if not exist %package% ( | ||
echo. | ||
echo Downloading | ||
wget http://sourceforge.net/projects/expat/files/expat/%version%/%package%/download | ||
) | ||
|
||
if errorlevel 1 goto end | ||
|
||
echo. | ||
echo Preparing | ||
rm -r -f "%devDir%\%sourceFolder%" | ||
if errorlevel 1 goto end | ||
|
||
mkdir "%devDir%\%sourceFolder%" | ||
if errorlevel 1 goto end | ||
|
||
tar xfz "%package%" -C "%devDir%\\%sourceFolder%" | ||
if errorlevel 1 goto end | ||
cd "%devDir%\%sourceFolder%" | ||
|
||
for /f "delims=" %%a in ('dir /b %tarFolder%') do ( | ||
move "%CD%\%tarFolder%\%%a" "%CD%" | ||
) | ||
|
||
echo. | ||
echo Configuring | ||
|
||
sh ./configure --prefix="%usrLocalDir%" --disable-static | ||
|
||
if errorlevel 1 goto end | ||
echo. | ||
pause | ||
|
||
make CFLAGS="%CFLAGS% -O3" install | ||
if errorlevel 1 goto end | ||
|
||
strip "%usrLocalDir%\bin\libexpat-1.dll" | ||
copy "%usrLocalDir%\bin\libexpat-1.dll" "%admBuildDir%" | ||
|
||
goto end | ||
|
||
:error | ||
echo Error | ||
|
||
:end | ||
pause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.