use .Substring to limit maintenance to major Lua version releases only

This commit is contained in:
nhmall
2020-12-11 22:35:37 -05:00
parent fe874db0b3
commit d008d6c995
2 changed files with 4 additions and 8 deletions

View File

@@ -57,10 +57,8 @@
<ClCompile Include="$(LuaDir)lauxlib.c" />
<ClCompile Include="$(LuaDir)lbaselib.c" />
<ClCompile Include="$(LuaDir)lbitlib.c">
<ExcludedFromBuild Condition="'$(LUA_VERSION)'=='5.4.2'">true</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(LUA_VERSION)'=='5.4.1'">true</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(LUA_VERSION)'=='5.4.0'">true</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(LUA_VERSION)'=='5.3.5'">false</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(LUA_VERSION.Substring(0,3))'=='5.4'">true</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(LUA_VERSION.Substring(0,3))'=='5.3'">false</ExcludedFromBuild>
</ClCompile>
<ClCompile Include="$(LuaDir)lcode.c" />
<ClCompile Include="$(LuaDir)lcorolib.c" />

View File

@@ -51,10 +51,8 @@
<ClCompile Include="$(LuaDir)lauxlib.c" />
<ClCompile Include="$(LuaDir)lbaselib.c" />
<ClCompile Include="$(LuaDir)lbitlib.c">
<ExcludedFromBuild Condition="'$(LUA_VERSION)'=='5.4.0'">true</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(LUA_VERSION)'=='5.4.1'">true</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(LUA_VERSION)'=='5.4.2'">true</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(LUA_VERSION)'=='5.3.5'">false</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(LUA_VERSION.Substring(0,3))'=='5.4'">true</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(LUA_VERSION.Substring(0,3))'=='5.3'">false</ExcludedFromBuild>
</ClCompile>
<ClCompile Include="$(LuaDir)lcode.c" />
<ClCompile Include="$(LuaDir)lcorolib.c" />