Updated win32/copy/copy.vcxproj to keep only fixed (non-wildcard) items in the top-level project ItemGroup, which is the part Visual Studio analyzes for the wildcard warning.

Moved all wildcard-based includes (*.dll, **\*, etc.) into an ItemGroup inside the Build target so they’re evaluated at build time instead of as VC project item definitions, preserving the copy behavior
This commit is contained in:
2026-02-15 14:35:19 -07:00
parent 64909893e7
commit 371b1caaa6

View File

@@ -24,71 +24,71 @@
<Import Project="..\zoitechat.props" /> <Import Project="..\zoitechat.props" />
<ItemGroup> <ItemGroup>
<None Include="$(DepsRoot)\bin\cert.pem" /> <None Include="$(DepsRoot)\bin\cert.pem" />
<None Include="$(DepsRoot)\bin\*atk-1.0-0.dll" />
<None Include="$(DepsRoot)\bin\*cairo*.dll" />
<None Include="$(DepsRoot)\bin\*freetype*.dll" />
<None Include="$(DepsRoot)\bin\*fribidi*.dll" />
<None Include="$(DepsRoot)\bin\*fontconfig*.dll" />
<None Include="$(DepsRoot)\bin\*gdk_pixbuf*.dll" />
<None Include="$(DepsRoot)\bin\*gdk-3*.dll" />
<None Include="$(DepsRoot)\bin\*epoxy*.dll" />
<None Include="$(DepsRoot)\bin\*gio-2*.dll" />
<None Include="$(DepsRoot)\bin\*glib-2*.dll" />
<None Include="$(DepsRoot)\bin\*gmodule-2*.dll" />
<None Include="$(DepsRoot)\bin\*gobject-2*.dll" />
<None Include="$(DepsRoot)\bin\gspawn-win$(PlatformArchitecture)-helper.exe" /> <None Include="$(DepsRoot)\bin\gspawn-win$(PlatformArchitecture)-helper.exe" />
<None Include="$(DepsRoot)\bin\gspawn-win$(PlatformArchitecture)-helper-console.exe" /> <None Include="$(DepsRoot)\bin\gspawn-win$(PlatformArchitecture)-helper-console.exe" />
<None Include="$(DepsRoot)\bin\*gthread-2*.dll" />
<None Include="$(DepsRoot)\bin\*gtk-3*.dll" />
<None Include="$(DepsRoot)\bin\*iconv*.dll" />
<None Include="$(DepsRoot)\bin\*crypto*.dll" />
<None Include="$(DepsRoot)\bin\*ssl*.dll" />
<None Include="$(DepsRoot)\bin\*enchant*.dll" />
<None Include="$(DepsRoot)\bin\*ffi*.dll" />
<None Include="$(DepsRoot)\bin\*intl*.dll" />
<None Include="$(DepsRoot)\bin\*jpeg*.dll" />
<None Include="$(DepsRoot)\bin\*png*.dll" />
<None Include="$(DepsRoot)\bin\*pcre2-8*.dll" />
<None Include="$(DepsRoot)\bin\*pixman-1*.dll" />
<None Include="$(DepsRoot)\bin\*tiff*.dll" />
<None Include="$(DepsRoot)\bin\*harfbuzz*.dll" />
<None Include="$(DepsRoot)\bin\*expat*.dll" />
<None Include="$(DepsRoot)\bin\*xml2*.dll" />
<None Include="$(DepsRoot)\bin\*pango-1.0-0.dll" />
<None Include="$(DepsRoot)\bin\*pangocairo-1.0-0.dll" />
<None Include="$(DepsRoot)\bin\*pangoft2-1.0-0.dll" />
<None Include="$(DepsRoot)\bin\*pangowin32-1.0-0.dll" />
<None Include="$(DepsRoot)\bin\*zlib*.dll" />
<None Include="$(WinSparklePath)\WinSparkle.dll" /> <None Include="$(WinSparklePath)\WinSparkle.dll" />
<None Include="changelog.url" /> <None Include="changelog.url" />
<None Include="readme.url" /> <None Include="readme.url" />
<None Include="$(DepsRoot)\bin\lua51.dll" /> <None Include="$(DepsRoot)\bin\lua51.dll" />
<None Include="$(DepsRoot)\bin\luajit*.dll" />
<None Include="$(DepsRoot)\bin\*girepository*.dll" />
<LuaLib Include="$(DepsRoot)\lib\lua\**\*.dll" />
<LuaShare Include="$(DepsRoot)\share\lua\*.lua" />
<LuaShare Include="$(DepsRoot)\share\lua\**\*.lua" />
<LuaShare Include="$(DepsRoot)\share\lua\**\**\*.lua" />
<Typelib Include="$(DepsRoot)\lib\girepository-1.0\*.typelib" />
<EnchantProviders Include="$(DepsRoot)\lib\enchant\*.dll" />
<None Include="$(Python3Path)\Lib\site-packages\_cffi_backend.*.pyd" />
<Gtk3Immodules Include="$(DepsRoot)\lib\gtk-3.0\3.0.0\immodules\**\*" />
<Gtk3PrintBackends Include="$(DepsRoot)\lib\gtk-3.0\3.0.0\printbackends\**\*" />
<FontConfig Include="$(DepsRoot)\etc\fonts\*"/>
<Share Include="share\**\*" />
<DepsRootDocs Include="$(DepsRoot)\share\doc\**\*" />
<Locale Include="$(ZoiteChatBin)locale\**\*;$(DepsRoot)\share\locale\**\*" />
<MSWindowsTheme Include="$(DepsRoot)\share\themes\MS-Windows\**\*" />
</ItemGroup> </ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<Target Name="Build"> <Target Name="Build">
<ItemGroup>
<None Include="$(DepsRoot)\bin\*atk-1.0-0.dll" />
<None Include="$(DepsRoot)\bin\*cairo*.dll" />
<None Include="$(DepsRoot)\bin\*freetype*.dll" />
<None Include="$(DepsRoot)\bin\*fribidi*.dll" />
<None Include="$(DepsRoot)\bin\*fontconfig*.dll" />
<None Include="$(DepsRoot)\bin\*gdk_pixbuf*.dll" />
<None Include="$(DepsRoot)\bin\*gdk-3*.dll" />
<None Include="$(DepsRoot)\bin\*epoxy*.dll" />
<None Include="$(DepsRoot)\bin\*gio-2*.dll" />
<None Include="$(DepsRoot)\bin\*glib-2*.dll" />
<None Include="$(DepsRoot)\bin\*gmodule-2*.dll" />
<None Include="$(DepsRoot)\bin\*gobject-2*.dll" />
<None Include="$(DepsRoot)\bin\*gthread-2*.dll" />
<None Include="$(DepsRoot)\bin\*gtk-3*.dll" />
<None Include="$(DepsRoot)\bin\*iconv*.dll" />
<None Include="$(DepsRoot)\bin\*crypto*.dll" />
<None Include="$(DepsRoot)\bin\*ssl*.dll" />
<None Include="$(DepsRoot)\bin\*enchant*.dll" />
<None Include="$(DepsRoot)\bin\*ffi*.dll" />
<None Include="$(DepsRoot)\bin\*intl*.dll" />
<None Include="$(DepsRoot)\bin\*jpeg*.dll" />
<None Include="$(DepsRoot)\bin\*png*.dll" />
<None Include="$(DepsRoot)\bin\*pcre2-8*.dll" />
<None Include="$(DepsRoot)\bin\*pixman-1*.dll" />
<None Include="$(DepsRoot)\bin\*tiff*.dll" />
<None Include="$(DepsRoot)\bin\*harfbuzz*.dll" />
<None Include="$(DepsRoot)\bin\*expat*.dll" />
<None Include="$(DepsRoot)\bin\*xml2*.dll" />
<None Include="$(DepsRoot)\bin\*pango-1.0-0.dll" />
<None Include="$(DepsRoot)\bin\*pangocairo-1.0-0.dll" />
<None Include="$(DepsRoot)\bin\*pangoft2-1.0-0.dll" />
<None Include="$(DepsRoot)\bin\*pangowin32-1.0-0.dll" />
<None Include="$(DepsRoot)\bin\*zlib*.dll" />
<None Include="$(DepsRoot)\bin\luajit*.dll" />
<None Include="$(DepsRoot)\bin\*girepository*.dll" />
<None Include="$(Python3Path)\Lib\site-packages\_cffi_backend.*.pyd" />
<LuaLib Include="$(DepsRoot)\lib\lua\**\*.dll" />
<LuaShare Include="$(DepsRoot)\share\lua\*.lua" />
<LuaShare Include="$(DepsRoot)\share\lua\**\*.lua" />
<LuaShare Include="$(DepsRoot)\share\lua\**\**\*.lua" />
<Typelib Include="$(DepsRoot)\lib\girepository-1.0\*.typelib" />
<EnchantProviders Include="$(DepsRoot)\lib\enchant\*.dll" />
<Gtk3Immodules Include="$(DepsRoot)\lib\gtk-3.0\3.0.0\immodules\**\*" />
<Gtk3PrintBackends Include="$(DepsRoot)\lib\gtk-3.0\3.0.0\printbackends\**\*" />
<FontConfig Include="$(DepsRoot)\etc\fonts\*" />
<Share Include="share\**\*" />
<DepsRootDocs Include="$(DepsRoot)\share\doc\**\*" />
<Locale Include="$(ZoiteChatBin)locale\**\*;$(DepsRoot)\share\locale\**\*" />
<MSWindowsTheme Include="$(DepsRoot)\share\themes\MS-Windows\**\*" />
</ItemGroup>
<Copy SourceFiles="@(None)" DestinationFolder="$(ZoiteChatRel)" /> <Copy SourceFiles="@(None)" DestinationFolder="$(ZoiteChatRel)" />
<Copy SourceFiles="@(FontConfig)" DestinationFolder="$(ZoiteChatRel)\etc\fonts" /> <Copy SourceFiles="@(FontConfig)" DestinationFolder="$(ZoiteChatRel)\etc\fonts" />
<Copy SourceFiles="@(Gtk3Immodules)" DestinationFiles="@(Gtk3Immodules->'$(ZoiteChatRel)\lib\gtk-3.0\3.0.0\immodules\%(RecursiveDir)%(Filename)%(Extension)')" /> <Copy SourceFiles="@(Gtk3Immodules)" DestinationFiles="@(Gtk3Immodules->'$(ZoiteChatRel)\lib\gtk-3.0\3.0.0\immodules\%(RecursiveDir)%(Filename)%(Extension)')" />
@@ -115,4 +115,3 @@