rem
rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
rem All rights reserved.
rem This component and the accompanying materials are made available
rem under the terms of "Eclipse Public License v1.0"
rem which accompanies this distribution, and is available
rem at the URL "http://www.eclipse.org/legal/epl-v10.html".
rem
rem Initial Contributors:
rem Nokia Corporation - initial contribution.
rem
rem Contributors:
rem
rem Description: GStreamer SisStub
rem
@echo off
echo ----------------------------
echo Configuring for RnD SIS
echo ----------------------------
echo Start of configure time:
time /t
:CREATE_DIR
echo.
echo - create Sis folder (created only if needed)
mkdir ..\..\SIS
:COPY_DLL
echo.
echo - Copy dlls [udeb]:
copy %EPOCROOT%epoc32\release\armv5\udeb\libgstadder.dll .
copy %EPOCROOT%epoc32\release\armv5\udeb\libgstaudio.dll .
copy %EPOCROOT%epoc32\release\armv5\udeb\libgstbase.dll .
copy %EPOCROOT%epoc32\release\armv5\udeb\libgstcdda.dll .
copy %EPOCROOT%epoc32\release\armv5\udeb\libgstcontroller.dll .
copy %EPOCROOT%epoc32\release\armv5\udeb\libgstdataprotocol.dll .
copy %EPOCROOT%epoc32\release\armv5\udeb\libgstdevsoundext.dll .
copy %EPOCROOT%epoc32\release\armv5\udeb\libgstfft.dll .
copy %EPOCROOT%epoc32\release\armv5\udeb\libgstgdp.dll .
copy %EPOCROOT%epoc32\release\armv5\udeb\libgstinterfaces.dll .
copy %EPOCROOT%epoc32\release\armv5\udeb\libgstnet.dll .
copy %EPOCROOT%epoc32\release\armv5\udeb\libgstnetbuffer.dll .
copy %EPOCROOT%epoc32\release\armv5\udeb\libgstpbutils.dll .
copy %EPOCROOT%epoc32\release\armv5\udeb\libgstreamer.dll .
copy %EPOCROOT%epoc32\release\armv5\udeb\libgstriff.dll .
copy %EPOCROOT%epoc32\release\armv5\udeb\libgstsubparse.dll .
copy %EPOCROOT%epoc32\release\armv5\udeb\libgsttag.dll .
copy %EPOCROOT%epoc32\release\armv5\udeb\libgsttcp.dll .
copy %EPOCROOT%epoc32\release\armv5\udeb\libgstaudiorate.dll .
copy %EPOCROOT%epoc32\release\armv5\udeb\libgstaudioresample.dll .
copy %EPOCROOT%epoc32\release\armv5\udeb\libgstaudiotestsrc.dll .
copy %EPOCROOT%epoc32\release\armv5\udeb\libgstcoreelements.dll .
copy %EPOCROOT%epoc32\release\armv5\udeb\libgstcoreindexers.dll .
copy %EPOCROOT%epoc32\release\armv5\udeb\libgstdecodebin.dll .
copy %EPOCROOT%epoc32\release\armv5\udeb\libgstdecodebin2.dll .
copy %EPOCROOT%epoc32\release\armv5\udeb\libgstdevsoundsink.dll .
copy %EPOCROOT%epoc32\release\armv5\udeb\libgstdevsoundsrc.dll .
copy %EPOCROOT%epoc32\release\armv5\udeb\libgstplaybin.dll .
copy %EPOCROOT%epoc32\release\armv5\udeb\libgsttypefindfunctions.dll .
copy %EPOCROOT%epoc32\release\armv5\udeb\libgstwavparse.dll .
copy %EPOCROOT%epoc32\release\armv5\udeb\libgstwavenc.dll .
copy %EPOCROOT%epoc32\release\armv5\udeb\libgstaudioconvert.dll .
copy %EPOCROOT%epoc32\release\armv5\udeb\libgstqueue2.dll .
copy %EPOCROOT%epoc32\release\armv5\udeb\libgstapp.dll .
copy %EPOCROOT%epoc32\release\armv5\udeb\libgstautodetect.dll .
if errorlevel == 1 goto END_ERROR
:CALL_ELFTRAIN
echo - Updating Version No [10.1] (calling elftran)
call elftran.exe -version 10.1 libgstadder.dll
call elftran.exe -version 10.1 libgstaudio.dll
call elftran.exe -version 10.1 libgstbase.dll
call elftran.exe -version 10.1 libgstcdda.dll
call elftran.exe -version 10.1 libgstcontroller.dll
call elftran.exe -version 10.1 libgstdataprotocol.dll
call elftran.exe -version 10.1 libgstdevsoundext.dll
call elftran.exe -version 10.1 libgstfft.dll
call elftran.exe -version 10.1 libgstgdp.dll
call elftran.exe -version 10.1 libgstinterfaces.dll
call elftran.exe -version 10.1 libgstnet.dll
call elftran.exe -version 10.1 libgstnetbuffer.dll
call elftran.exe -version 10.1 libgstpbutils.dll
call elftran.exe -version 10.1 libgstreamer.dll
call elftran.exe -version 10.1 libgstriff.dll
call elftran.exe -version 10.1 libgstsubparse.dll
call elftran.exe -version 10.1 libgsttag.dll
call elftran.exe -version 10.1 libgsttcp.dll
call elftran.exe -version 10.1 libgstaudiorate.dll
call elftran.exe -version 10.1 libgstaudioresample.dll
call elftran.exe -version 10.1 libgstaudiotestsrc.dll
call elftran.exe -version 10.1 libgstcoreelements.dll
call elftran.exe -version 10.1 libgstcoreindexers.dll
call elftran.exe -version 10.1 libgstdecodebin.dll
call elftran.exe -version 10.1 libgstdecodebin2.dll
call elftran.exe -version 10.1 libgstdevsoundsink.dll
call elftran.exe -version 10.1 libgstdevsoundsrc.dll
call elftran.exe -version 10.1 libgstplaybin.dll
call elftran.exe -version 10.1 libgsttypefindfunctions.dll
call elftran.exe -version 10.1 libgstwavparse.dll
call elftran.exe -version 10.1 libgstwavenc.dll
call elftran.exe -version 10.1 libgstaudioconvert.dll
call elftran.exe -version 10.1 libgstqueue2.dll
call elftran.exe -version 10.1 libgstapp.dll
call elftran.exe -version 10.1 libgstautodetect.dll
:MAKESIS
makesis ..\..\SIS\gstreamer.pkg ..\..\SIS\gstreamer.sis
signsis ..\..\SIS\gstreamer.sis ..\..\SIS\gstreamer.sisx RD.crt RD.key
if errorlevel == 1 goto END_ERROR
:DELETE_DLL
echo.
echo - remove the copied dlls from current folder
del libgstadder.dll
del libgstaudio.dll
del libgstbase.dll
del libgstcdda.dll
del libgstcontroller.dll
del libgstdataprotocol.dll
del libgstdevsoundext.dll
del libgstfft.dll
del libgstgdp.dll
del libgstinterfaces.dll
del libgstnet.dll
del libgstnetbuffer.dll
del libgstpbutils.dll
del libgstreamer.dll
del libgstriff.dll
del libgstsubparse.dll
del libgsttag.dll
del libgsttcp.dll
del libgstaudiorate.dll
del libgstaudioresample.dll
del libgstaudiotestsrc.dll
del libgstcoreelements.dll
del libgstcoreindexers.dll
del libgstdecodebin.dll
del libgstdecodebin2.dll
del libgstdevsoundsink.dll
del libgstdevsoundsrc.dll
del libgstplaybin.dll
del libgsttypefindfunctions.dll
del libgstwavparse.dll
del libgstwavenc.dll
del libgstaudioconvert.dll
del libgstqueue2.dll
del libgstapp.dll
del libgstautodetect.dll
goto END
:END_ERROR
echo.
echo Sis creation failed.
goto FINAL_END
:END
echo.
echo Sis file created succesfully
echo ============================
:FINAL_END
echo End of configure time is:
time /t