Hi !
Now I'm able to build almost whole .lua script from .vcxproj files, but I suspect it's incomplete, so haven't yet tried to compile anything - trying to compare what .lua scripts produce versus
original project file.
So noticed following oddities:
1. includedirs ignores filter.
.lua configuration:
filter { "Debug", "platforms:Win32", "files:../bin/winvlc.c" }
flags { "NoPch" }
defines { "WIN32", "_DEBUG", "_WINDOWS", "HAVE_CONFIG_H" }
includedirs { "..", "../include", "../util" }
Original project xml tags:
<ClCompile Include="..\bin\winvlc.c">
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">WIN32;_DEBUG;_WINDOWS;HAVE_CONFIG_H;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">..;../include;../util;</AdditionalIncludeDirectories>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">NotUsing</PrecompiledHeader>
</ClCompile>
Produced project xml tags:
<ClCompile Include="..\bin\winvlc.c">
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">WIN32;_DEBUG;_WINDOWS;HAVE_CONFIG_H;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">NotUsing</PrecompiledHeader>
</ClCompile>
Like you probably notice include directories are missing. Bug ?
2. Precompiled header specification is ignored.
.lua configuration:
filter { "files:../src/modules/bank.c" }
flags { "NoPch" }
filter { "Debug", "platforms:Win32", "files:../src/modules/bank.c" }
defines { "HAVE_DYNAMIC_PLUGINS" }
Original project xml tags:
<ClCompile Include="..\src\modules\bank.c">
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">HAVE_DYNAMIC_PLUGINS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">NotUsing</PrecompiledHeader>
</ClCompile>
Produced project xml tags:
<ClCompile Include="..\src\modules\bank.c">
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">HAVE_DYNAMIC_PLUGINS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
PrecompiledHeader is missing ?
Btw , what I have tested - you cannot apply multiple filters at the time so filter { "Debug" } filter { "platforms:Win32" } resets current filter and starts new filter definition.
Let's start with these ones, I'll try to cherry pick more problems.