shithub: openh264

Download patch

ref: 3b01ce3f827b329ebd6be09243b1cdeddf9bdcbf
parent: 473f2e3d422ae80756cd32ee5a43e3671c07b28e
parent: e5439b4533a50c31a218a5ea810bf91f297c5806
author: sijchen <[email protected]>
date: Tue Apr 21 04:51:37 EDT 2015

Merge pull request #1903 from mstorsjo/fix-msvc-autobuild

Fix an error in the msvc autobuild script, output into the correct outdir used by the project files

--- a/build/AutoBuildForWPAndWindows.bat
+++ b/build/AutoBuildForWPAndWindows.bat
@@ -383,9 +383,18 @@
   set vConfiguration=%1
   set vBuildOption=%2
   cd %RootDir%
-  set FullDestDir=%BinDir%\%vArcType%-%vConfiguration%-ASM-%vASMFlag%
+  if "%vArcType%"=="arm" (
+    set vBinDirName=ARM
+  ) else if "%vArcType%"=="i386" (
+    set vBinDirName=Win32
+  ) else (
+    set vBinDirName=x64
+  )
+  set ArchDestDir=%BinDir%\%vBinDirName%
+  set FullDestDir=%BinDir%\%vBinDirName%\%vConfiguration%
   echo copying dll files to destination folder...
   echo FullDestDir is %FullDestDir%
+  if not exist %ArchDestDir% md %ArchDestDir%
   if exist %FullDestDir% (
     rd /s /q %FullDestDir%
   )
@@ -393,12 +402,11 @@
 
   echo current dir is:
   cd
-  set DestDir=bin/%vArcType%-%vConfiguration%-ASM-%vASMFlag%
+  set DestDir=bin/%vBinDirName%/%vConfiguration%
   echo DestDir is %DestDir%
   if "%vOSType%"=="msvc-wp" (
      set aFileList=%DllFile% %LibFile% %PDBFile% %UTDllFile%
-  )
-  else (
+  ) else (
      set aFileList=%DllFile% %LibFile% %PDBFile% %UTBinFile% %EncBinFile% %DecBinFile%
   )
   for %%k in (%aFileList%) do (