Skip to content

Commit

Permalink
Updated build scripts to match the structural changes that have been …
Browse files Browse the repository at this point in the history
…done to native components
  • Loading branch information
tourettes committed Mar 20, 2013
1 parent e6c8c3a commit 35635e2
Show file tree
Hide file tree
Showing 20 changed files with 164 additions and 169 deletions.
3 changes: 0 additions & 3 deletions Build/BuildInit.bat
Expand Up @@ -15,7 +15,6 @@ set progpath=%ProgramFiles%
if not "%ProgramFiles(x86)%".=="". set progpath=%ProgramFiles(x86)%

REM Select Visual Studio version
set vsver=10.0

REM set other MP related paths
set GIT_ROOT=..
Expand Down Expand Up @@ -43,7 +42,5 @@ echo. >> %log%

echo. >> %log%
echo Using following environment variables: >> %log%
echo DSHOW_BASE = %DSHOW_BASE% >> %log%
echo DXSDK_DIR = %DXSDK_DIR% >> %log%
echo WINDOWS_SDK = %WINDOWS_SDK% >> %log%
echo. >> %log%
6 changes: 5 additions & 1 deletion Build/MSBUILD_Rebuild_All_MediaPortal_Debug.bat
Expand Up @@ -10,9 +10,13 @@ echo Writing GIT revision assemblies...
rem %DeployVersionGIT% /git="%GIT_ROOT%" /path="%MediaPortal%" >> %log%
%DeployVersionGIT% /git="%GIT_ROOT%" /path="%CommonMPTV%" >> %log%

echo.
echo Building native components...
call VS_Rebuild_Debug_DirectShowFilters.bat

echo.
echo Building MediaPortal...
"%WINDIR%\Microsoft.NET\Framework\v3.5\MSBUILD.exe" /target:Rebuild /property:Configuration=%BUILD_TYPE%;Platform=x86 "%MediaPortal%\MediaPortal.sln" >> %log%
"%WINDIR%\Microsoft.NET\Framework\v4.0.30319\MSBUILD.exe" /tv:3.5 /p:TargetFrameworkVersion=v3.5 /target:Rebuild /property:Configuration=%BUILD_TYPE%;Platform=x86 "%MediaPortal%\MediaPortal.sln" >> %log%

echo.
echo Reverting assemblies...
Expand Down
10 changes: 7 additions & 3 deletions Build/MSBUILD_Rebuild_All_MediaPortal_Release.bat
Expand Up @@ -10,9 +10,13 @@ echo Writing GIT revision assemblies...
rem %DeployVersionGIT% /git="%GIT_ROOT%" /path="%MediaPortal%" >> %log%
%DeployVersionGIT% /git="%GIT_ROOT%" /path="%CommonMPTV%" >> %log%

echo.
echo Building native components...
call VS_Rebuild_Release_DirectShowFilters.bat

echo.
echo Building MediaPortal...
"%WINDIR%\Microsoft.NET\Framework\v3.5\MSBUILD.exe" /target:Rebuild /property:Configuration=%BUILD_TYPE%;Platform=x86 "%MediaPortal%\MediaPortal.sln" >> %log%
"%WINDIR%\Microsoft.NET\Framework\v4.0.30319\MSBUILD.exe" /tv:3.5 /p:TargetFrameworkVersion=v3.5 /target:Rebuild /property:Configuration=%BUILD_TYPE%;Platform=x86 "%MediaPortal%\MediaPortal.sln" >> %log%

echo.
echo Reverting assemblies...
Expand Down Expand Up @@ -44,10 +48,10 @@ rem %DeployVersionGIT% /git="%GIT_ROOT%" /path="%TVLibrary%" >> %log%

echo.
echo Building TV Server...
"%WINDIR%\Microsoft.NET\Framework\v3.5\MSBUILD.exe" /target:Rebuild /property:Configuration=%BUILD_TYPE%;Platform=x86 "%TVLibrary%\TvLibrary.sln" >> %log%
"%WINDIR%\Microsoft.NET\Framework\v4.0.30319\MSBUILD.exe" /tv:3.5 /p:TargetFrameworkVersion=v3.5 /target:Rebuild /property:Configuration=%BUILD_TYPE%;Platform=x86 "%TVLibrary%\TvLibrary.sln" >> %log%
echo.
echo Building TV Client plugin...
"%WINDIR%\Microsoft.NET\Framework\v3.5\MSBUILD.exe" /target:Rebuild /property:Configuration=%BUILD_TYPE%;Platform=x86 "%TVLibrary%\TvPlugin\TvPlugin.sln" >> %log%
"%WINDIR%\Microsoft.NET\Framework\v4.0.30319\MSBUILD.exe" /tv:3.5 /p:TargetFrameworkVersion=v3.5 /target:Rebuild /property:Configuration=%BUILD_TYPE%;Platform=x86 "%TVLibrary%\TvPlugin\TvPlugin.sln" >> %log%

echo.
echo Reverting assemblies...
Expand Down
2 changes: 1 addition & 1 deletion Build/MSBUILD_Rebuild_Release_MediaPortal.bat
Expand Up @@ -12,7 +12,7 @@ rem %DeployVersionGIT% /git="%GIT_ROOT%" /path="%MediaPortal%" >> %log%

echo.
echo Building MediaPortal...
"%WINDIR%\Microsoft.NET\Framework\v3.5\MSBUILD.exe" /target:Rebuild /property:Configuration=%BUILD_TYPE%;Platform=x86 "%MediaPortal%\MediaPortal.sln" >> %log%
"%WINDIR%\Microsoft.NET\Framework\v4.0.30319\MSBUILD.exe" /tv:3.5 /p:TargetFrameworkVersion=v3.5 /target:Rebuild /property:Configuration=%BUILD_TYPE%;Platform=x86 "%MediaPortal%\MediaPortal.sln" >> %log%

echo.
echo Reverting assemblies...
Expand Down
4 changes: 2 additions & 2 deletions Build/MSBUILD_Rebuild_Release_TVServer_Client.bat
Expand Up @@ -12,10 +12,10 @@ rem %DeployVersionGIT% /git="%GIT_ROOT%" /path="%TVLibrary%" >> %log%

echo.
echo Building TV Server...
"%WINDIR%\Microsoft.NET\Framework\v3.5\MSBUILD.exe" /target:Rebuild /property:Configuration=%BUILD_TYPE%;Platform=x86 "%TVLibrary%\TvLibrary.sln" >> %log%
"%WINDIR%\Microsoft.NET\Framework\v4.0.30319\MSBUILD.exe" /tv:3.5 /p:TargetFrameworkVersion=v3.5 /target:Rebuild /property:Configuration=%BUILD_TYPE%;Platform=x86 "%TVLibrary%\TvLibrary.sln" >> %log%
echo.
echo Building TV Client plugin...
"%WINDIR%\Microsoft.NET\Framework\v3.5\MSBUILD.exe" /target:Rebuild /property:Configuration=%BUILD_TYPE%;Platform=x86 "%TVLibrary%\TvPlugin\TvPlugin.sln" >> %log%
"%WINDIR%\Microsoft.NET\Framework\v4.0.30319\MSBUILD.exe" /tv:3.5 /p:TargetFrameworkVersion=v3.5 /target:Rebuild /property:Configuration=%BUILD_TYPE%;Platform=x86 "%TVLibrary%\TvPlugin\TvPlugin.sln" >> %log%

echo.
echo Reverting assemblies...
Expand Down
3 changes: 3 additions & 0 deletions Build/VS_Build_Debug_DirectShowFilters.bat
@@ -0,0 +1,3 @@
@echo off

call "VS_build_DirectShowFilters.bat" debug build
3 changes: 3 additions & 0 deletions Build/VS_Build_Release_DirectShowFilters.bat
@@ -0,0 +1,3 @@
@echo off

call "VS_build_DirectShowFilters.bat" release build
3 changes: 0 additions & 3 deletions Build/VS_Rebuild_Debug_AudioRenderer.bat

This file was deleted.

3 changes: 0 additions & 3 deletions Build/VS_Rebuild_Debug_Corecpp.bat

This file was deleted.

2 changes: 1 addition & 1 deletion Build/VS_Rebuild_Debug_DirectShowFilters.bat
@@ -1,3 +1,3 @@
@echo off

call "VS_Rebuild_Release_DirectShowFilters.bat" Debug
call "VS_build_DirectShowFilters.bat" debug rebuild
3 changes: 0 additions & 3 deletions Build/VS_Rebuild_Debug_MPC_HC_subs.bat

This file was deleted.

3 changes: 0 additions & 3 deletions Build/VS_Rebuild_Debug_Win7RefreshRateHelper.bat

This file was deleted.

10 changes: 0 additions & 10 deletions Build/VS_Rebuild_Release_AudioRenderer.bat

This file was deleted.

10 changes: 0 additions & 10 deletions Build/VS_Rebuild_Release_Corecpp.bat

This file was deleted.

11 changes: 2 additions & 9 deletions Build/VS_Rebuild_Release_DirectShowFilters.bat
@@ -1,10 +1,3 @@
@ECHO OFF
@echo off

rem build init
set project=DirectShowFilters
call BuildInit.bat %1

rem build
echo.
echo Building %project%
"%progpath%\Microsoft Visual Studio %vsver%\Common7\IDE\devenv.com" "..\DirectShowFilters\Filters.sln" /Rebuild "%BUILD_TYPE%" >> %log%
call "VS_build_DirectShowFilters.bat" release rebuild
10 changes: 0 additions & 10 deletions Build/VS_Rebuild_Release_MPC_HC_subs.bat

This file was deleted.

10 changes: 0 additions & 10 deletions Build/VS_Rebuild_Release_Win7RefreshRateHelper.bat

This file was deleted.

42 changes: 42 additions & 0 deletions Build/VS_build_DirectShowFilters.bat
@@ -0,0 +1,42 @@
@ECHO OFF
REM check parameters

if /I not %1==debug if /I not %1==rebuild if /I not %1==release if /I not %1==build goto ERROR_IN_PARAMETERS
if /I not %2==debug if /I not %2==rebuild if /I not %2==release if /I not %2==build goto ERROR_IN_PARAMETERS

set BUILD_TYPE=Release
set BUILD_MODE=build

if %1==debug set BUILD_TYPE=Debug
if %2==debug set BUILD_TYPE=Debug

if %1==rebuild set BUILD_MODE=rebuild
if %2==rebuild set BUILD_MODE=rebuild

if not [%3]==[] set PRJ=/project %3

REM build init
set project=DirectShowFilters
call BuildInit.bat %BUILD_TYPE%

REM build
echo.
echo Building %project%

if not [%3]==[] goto BUILD_PRJ
goto BUILD rem full build

:BUILD_PRJ
"%WINDIR%\Microsoft.NET\Framework\v4.0.30319\MSBUILD.exe" /target:%BUILD_MODE% /property:Configuration=%BUILD_TYPE% "..\DirectShowFilters\Filters.sln" %PRJ% >> %log%
goto DONE

:BUILD
"%WINDIR%\Microsoft.NET\Framework\v4.0.30319\MSBUILD.exe" /target:%BUILD_MODE% /property:Configuration=%BUILD_TYPE% "..\DirectShowFilters\Filters.sln" >> %log%
goto DONE

:ERROR_IN_PARAMETERS
echo.
echo "Error in given parameters. Valid options [build|rebuild] [release|debug] and optional [project name]. For example to rebuild release mode binaries use 'rebuild release' or to build only TsReader in debug mode 'build debug TsReader'"
echo.

:DONE
9 changes: 5 additions & 4 deletions Tools/InstallationScripts/include-MP-PreBuild.nsh
Expand Up @@ -41,12 +41,13 @@
!endif

!ifdef BUILD_MediaPortal
!system '"$%WINDIR%\Microsoft.NET\Framework\v3.5\MSBUILD.exe" /target:Rebuild /property:Configuration=Release;Platform=x86 "${git_MP}\MediaPortal.sln"' = 0
!system '"$%WINDIR%\Microsoft.NET\Framework\v4.0.30319\MSBUILD.exe" /target:rebuild /property:Configuration=Release ${git_DirectShowFilters}\Filters.sln' = 0
!system '"$%WINDIR%\Microsoft.NET\Framework\v4.0.30319\MSBUILD.exe" /tv:3.5 /p:TargetFrameworkVersion=v3.5 /target:Rebuild /property:Configuration=Release;Platform=x86 "${git_MP}\MediaPortal.sln"' = 0
!endif

!ifdef BUILD_TVServer
!system '"$%WINDIR%\Microsoft.NET\Framework\v3.5\MSBUILD.exe" /target:Rebuild /property:Configuration=Release;Platform=x86 "${git_TVServer}\TvLibrary.sln"' = 0
!system '"$%WINDIR%\Microsoft.NET\Framework\v3.5\MSBUILD.exe" /target:Rebuild /property:Configuration=Release;Platform=x86 "${git_TVServer}\TvPlugin\TvPlugin.sln"' = 0
!system '"$%WINDIR%\Microsoft.NET\Framework\v4.0.30319\MSBUILD.exe" /tv:3.5 /p:TargetFrameworkVersion=v3.5 /target:Rebuild /property:Configuration=Release;Platform=x86 "${git_TVServer}\TvLibrary.sln"' = 0
!system '"$%WINDIR%\Microsoft.NET\Framework\v4.0.30319\MSBUILD.exe" /tv:3.5 /p:TargetFrameworkVersion=v3.5 /target:Rebuild /property:Configuration=Release;Platform=x86 "${git_TVServer}\TvPlugin\TvPlugin.sln"' = 0
!endif

!if ${VER_BUILD} != 0
Expand All @@ -56,7 +57,7 @@
!endif

!ifdef BUILD_DeployTool
!system '"$%WINDIR%\Microsoft.NET\Framework\v3.5\MSBUILD.exe" /p:ALToolPath="${ALToolPath}" /target:Rebuild /property:Configuration=Release;Platform=x86 "${git_DeployTool}\MediaPortal.DeployTool.sln"' = 0
!system '"$%WINDIR%\Microsoft.NET\Framework\v4.0.30319\MSBUILD.exe" /tv:3.5 /p:TargetFrameworkVersion=v3.5 /p:ALToolPath="${ALToolPath}" /target:Rebuild /property:Configuration=Release;Platform=x86 "${git_DeployTool}\MediaPortal.DeployTool.sln"' = 0
!endif

!ifdef BUILD_Installer
Expand Down

0 comments on commit 35635e2

Please sign in to comment.