
set VERSION=1.2006.4.12

tlbimp rotate90.ax /out:rotate90.dll /asmversion:%VERSION%
tlbimp bufferaccess.ax /out:bufferaccess.dll /asmversion:%VERSION%

aximp MVSmartControl.ocx /out:AxMVSmartControl.dll /source 
..\FileMerger.exe  ..\toolbox.txt AxMVSmartControl.cs 15 AxMVSmartControl-good.cs
aximp MVVideoSourceControl.ocx /out:AxMVVideoSourceControl.dll /source
..\FileMerger.exe  ..\toolbox.txt AxMVVideoSourceControl.cs 15 AxMVVideoSourceControl-good.cs


del *.pdb
csc /t:library /r:MVSmartControl.dll /out:AxMVSmartControl.dll AxMVSmartControl-good.cs
del *.pdb
csc /t:library /r:MVVideoSourceControl.dll /out:AxMVVideoSourceControl.dll AxMVVideoSourceControl-good.cs
..\ILMerge.exe rotate90.dll bufferaccess.dll MVSmartControl.dll AxMVSmartControl.dll AxMVVideoSourceControl.dll MVVideoSourceControl.dll /out:MontiVisionRotate.dll /ver:%VERSION% 
del stdole.dll 
dle rotate90.dll 
del bufferaccess.dll 
del MVSmartControl.dll 
del AxMVSmartControl.dll 
del AxMVVideoSourceControl.dll 
del MVVideoSourceControl.dll 
del *.pdb
del *.cs

set VERSION=
