build: Fixed Visual Studio project file generator missing some files
authorSteve Holme <steve_holme@hotmail.com>
Thu, 1 May 2014 22:14:59 +0000 (23:14 +0100)
committerSteve Holme <steve_holme@hotmail.com>
Thu, 1 May 2014 22:23:50 +0000 (23:23 +0100)
As of commit 6cdd88f22c the Visual Studio project file generator would
skip the first and last file from each group of files.

projects/generate.bat

index fed472e..8a0368c 100644 (file)
@@ -126,6 +126,8 @@ rem
     set "TABS=      "
   )
 
+  call :extension %3 ext
+
   if "%1" == "dsp" (
     echo # Begin Source File>> %4
     echo.>> %4
@@ -141,8 +143,6 @@ rem
     echo %TABS%^>>> %4
     echo %TABS%^</File^>>> %4
   ) else if "%1" == "vcxproj" (
-    call :extension %3 ext
-
     if "%ext%" == "c" (
       echo %SPACES%^<ClCompile Include=^"..\..\..\..\%2\%~3^" /^>>> %4
     ) else if "%ext%" == "h" (