]> granicus.if.org Git - nethack/commitdiff
use .Substring to limit maintenance to major Lua version releases only
authornhmall <nhmall@nethack.org>
Sat, 12 Dec 2020 03:35:37 +0000 (22:35 -0500)
committernhmall <nhmall@nethack.org>
Sat, 12 Dec 2020 03:35:37 +0000 (22:35 -0500)
win/win32/vs/NetHack.vcxproj
win/win32/vs/NetHackW.vcxproj

index a3c2e0c267a6e44f5a6dcbd3bc6eef2e1d9de4a8..6103c7d87e84e6ec44fa0caca4bd4d9feb1021fa 100644 (file)
     <ClCompile Include="$(LuaDir)lauxlib.c" />\r
     <ClCompile Include="$(LuaDir)lbaselib.c" />\r
     <ClCompile Include="$(LuaDir)lbitlib.c">\r
-        <ExcludedFromBuild Condition="'$(LUA_VERSION)'=='5.4.2'">true</ExcludedFromBuild>\r
-        <ExcludedFromBuild Condition="'$(LUA_VERSION)'=='5.4.1'">true</ExcludedFromBuild>\r
-        <ExcludedFromBuild Condition="'$(LUA_VERSION)'=='5.4.0'">true</ExcludedFromBuild>\r
-        <ExcludedFromBuild Condition="'$(LUA_VERSION)'=='5.3.5'">false</ExcludedFromBuild>\r
+        <ExcludedFromBuild Condition="'$(LUA_VERSION.Substring(0,3))'=='5.4'">true</ExcludedFromBuild>\r
+        <ExcludedFromBuild Condition="'$(LUA_VERSION.Substring(0,3))'=='5.3'">false</ExcludedFromBuild>\r
     </ClCompile>\r
     <ClCompile Include="$(LuaDir)lcode.c" />\r
     <ClCompile Include="$(LuaDir)lcorolib.c" />\r
index e9b5d7dd5c610f1f35bfc03615215a5e57d73693..d49463e30620c7d9ea41b0a59018a99073f3fb83 100644 (file)
     <ClCompile Include="$(LuaDir)lauxlib.c" />\r
     <ClCompile Include="$(LuaDir)lbaselib.c" />\r
     <ClCompile Include="$(LuaDir)lbitlib.c">\r
-      <ExcludedFromBuild Condition="'$(LUA_VERSION)'=='5.4.0'">true</ExcludedFromBuild>\r
-      <ExcludedFromBuild Condition="'$(LUA_VERSION)'=='5.4.1'">true</ExcludedFromBuild>\r
-      <ExcludedFromBuild Condition="'$(LUA_VERSION)'=='5.4.2'">true</ExcludedFromBuild>\r
-      <ExcludedFromBuild Condition="'$(LUA_VERSION)'=='5.3.5'">false</ExcludedFromBuild>\r
+      <ExcludedFromBuild Condition="'$(LUA_VERSION.Substring(0,3))'=='5.4'">true</ExcludedFromBuild>\r
+      <ExcludedFromBuild Condition="'$(LUA_VERSION.Substring(0,3))'=='5.3'">false</ExcludedFromBuild>\r
     </ClCompile>\r
     <ClCompile Include="$(LuaDir)lcode.c" />\r
     <ClCompile Include="$(LuaDir)lcorolib.c" />\r