mirror of
https://gitlab.freedesktop.org/dabrain34/GstPipelineStudio.git
synced 2024-12-18 14:06:30 +00:00
windows: install the share folder from gtk/gst
This commit is contained in:
parent
e12fecf971
commit
0148a43946
4 changed files with 9 additions and 5 deletions
|
@ -33,13 +33,15 @@ try
|
||||||
# GST and GTK are installed in this folder by prepare_gstreamer.ps1.
|
# GST and GTK are installed in this folder by prepare_gstreamer.ps1.
|
||||||
# GST and GTK are built by the docker image.
|
# GST and GTK are built by the docker image.
|
||||||
$gstreamerInstallDir="c:\gst-install-clean"
|
$gstreamerInstallDir="c:\gst-install-clean"
|
||||||
$gstreamerBinInstallDir= Join-Path $gstreamerInstallDir -ChildPath "bin/"
|
$gstreamerBinInstallDir= Join-Path $gstreamerInstallDir -ChildPath "bin"
|
||||||
$gstreamerPluginInstallDir= Join-Path $gstreamerInstallDir -ChildPath "lib\gstreamer-1.0"
|
$gstreamerPluginInstallDir= Join-Path $gstreamerInstallDir -ChildPath "lib"
|
||||||
|
$gstreamerShareInstallDir= Join-Path $gstreamerInstallDir -ChildPath "share"
|
||||||
|
|
||||||
& "$heatToolPath" dir "$gstreamerBinInstallDir" -gg -sfrag -template:fragment -out gstreamer-1.0.wxs -cg "_gstreamer" -var var.gstreamerBinInstallDir -dr INSTALLFOLDER
|
& "$heatToolPath" dir "$gstreamerBinInstallDir" -gg -sfrag -template:fragment -out gstreamer-1.0.wxs -cg "_gstreamer" -var var.gstreamerBinInstallDir -dr INSTALLFOLDER
|
||||||
& "$heatToolPath" dir "$gstreamerPluginInstallDir" -gg -sfrag -template:fragment -out gstreamer-plugins-1.0.wxs -cg "_gstreamer_plugins" -var var.gstreamerPluginInstallDir -dr INSTALLFOLDER
|
& "$heatToolPath" dir "$gstreamerPluginInstallDir" -gg -sfrag -template:fragment -out gstreamer-plugins-1.0.wxs -cg "_gstreamer_plugins" -var var.gstreamerPluginInstallDir -dr INSTALLFOLDER
|
||||||
|
& "$heatToolPath" dir "$gstreamerShareInstallDir" -v -ke -gg -sfrag -template:fragment -out gstreamer-share-1.0.wxs -cg "_gstreamer_share" -var var.gstreamerShareInstallDir -dr INSTALLFOLDER
|
||||||
|
|
||||||
$files = "gps gstreamer-1.0 gstreamer-plugins-1.0"
|
$files = "gps gstreamer-1.0 gstreamer-plugins-1.0 gstreamer-share-1.0"
|
||||||
$wxs_files = @()
|
$wxs_files = @()
|
||||||
$obj_files = @()
|
$obj_files = @()
|
||||||
foreach ($f in $files.split(" ")){
|
foreach ($f in $files.split(" ")){
|
||||||
|
@ -51,7 +53,7 @@ try
|
||||||
# compiling wxs file into wixobj
|
# compiling wxs file into wixobj
|
||||||
$msiFileName = "GstPipelineStudio-$GPSVersion.msi"
|
$msiFileName = "GstPipelineStudio-$GPSVersion.msi"
|
||||||
foreach ($f in $wxs_files){
|
foreach ($f in $wxs_files){
|
||||||
& "$candleToolPath" "$f" -dPlatform=x64 -dGPSUpgradeCode="$GPSUpgradeCode" -dGPSVersion="$GPSVersion" -dgstreamerBinInstallDir="$gstreamerBinInstallDir" -dgstreamerPluginInstallDir="$gstreamerPluginInstallDir"
|
& "$candleToolPath" "$f" -dPlatform=x64 -dGPSUpgradeCode="$GPSUpgradeCode" -dGPSVersion="$GPSVersion" -dgstreamerBinInstallDir="$gstreamerBinInstallDir" -dgstreamerPluginInstallDir="$gstreamerPluginInstallDir" -dgstreamerShareInstallDir="$gstreamerShareInstallDir"
|
||||||
if($LASTEXITCODE -ne 0)
|
if($LASTEXITCODE -ne 0)
|
||||||
{
|
{
|
||||||
throw "Compilation of $wxsFileName failed with exit code $LASTEXITCODE"
|
throw "Compilation of $wxsFileName failed with exit code $LASTEXITCODE"
|
||||||
|
|
|
@ -3,6 +3,6 @@ set MYDIR=%~dp0
|
||||||
setlocal
|
setlocal
|
||||||
set PATH=%MYDIR%bin;%PATH%
|
set PATH=%MYDIR%bin;%PATH%
|
||||||
echo %PATH%
|
echo %PATH%
|
||||||
set GST_PLUGIN_PATH=%MYDIR%/gstreamer-1.0
|
set GST_PLUGIN_PATH=%MYDIR%\lib\gstreamer-1.0
|
||||||
echo %GST_PLUGIN_PATH%
|
echo %GST_PLUGIN_PATH%
|
||||||
gst_pipeline_studio.exe
|
gst_pipeline_studio.exe
|
|
@ -59,6 +59,7 @@
|
||||||
<ComponentRef Id="ProductComponent" />
|
<ComponentRef Id="ProductComponent" />
|
||||||
<ComponentGroupRef Id="_gstreamer" />
|
<ComponentGroupRef Id="_gstreamer" />
|
||||||
<ComponentGroupRef Id="_gstreamer_plugins" />
|
<ComponentGroupRef Id="_gstreamer_plugins" />
|
||||||
|
<ComponentGroupRef Id="_gstreamer_share" />
|
||||||
<ComponentRef Id="UninstallShortcut" />
|
<ComponentRef Id="UninstallShortcut" />
|
||||||
</Feature>
|
</Feature>
|
||||||
|
|
||||||
|
|
|
@ -9,3 +9,4 @@ Copy-Item -Path C:\gst-install\bin\*.exe -Destination c:\gst-install-clean\bin\
|
||||||
New-Item c:\gst-install-clean\lib\gstreamer-1.0 -ItemType Directory
|
New-Item c:\gst-install-clean\lib\gstreamer-1.0 -ItemType Directory
|
||||||
Copy-Item -Path C:\gst-install\lib\gstreamer-1.0\*.dll -Destination c:\gst-install-clean\lib\gstreamer-1.0
|
Copy-Item -Path C:\gst-install\lib\gstreamer-1.0\*.dll -Destination c:\gst-install-clean\lib\gstreamer-1.0
|
||||||
|
|
||||||
|
Copy-Item -Path C:\gst-install\share -Destination c:\gst-install-clean\ -Recurse
|
||||||
|
|
Loading…
Reference in a new issue