182182
183183 <!-- Build/Rebuild/Clean targets for NMake are defined in MSVC, so we need to provide them, when using MSBuild without MSVC targets -->
184184 <Import Project =" $(MSBuildProjectDirectory)/targets/nmake.substitution.props" Condition =" !Exists('$(VCTargetsPath)/Microsoft.Cpp.targets')" />
185-
186- <!-- Mirror CMake post-build copy into the Godot project bin directory -->
187- <PropertyGroup >
188- <!-- Source file produced by scons lives under bin/$(GodotPlatform). Name patterns follow example.gdextension -->
189- <WinOutputFileName >$(ExtensionName).$(GodotPlatform).$(GodotTemplate).$(Arch).dll</WinOutputFileName >
190- <MacOutputFileName >lib$(ExtensionName).$(GodotPlatform).$(GodotTemplate).dylib</MacOutputFileName >
191- <UnixOutputFileName >lib$(ExtensionName).$(GodotPlatform).$(GodotTemplate).$(Arch).so</UnixOutputFileName >
192- <WebOutputWildcard >lib$(ExtensionName).$(GodotPlatform).$(GodotTemplate).$(Arch).*.*.wasm</WebOutputWildcard >
193- <GodotBinDir >$(MSBuildProjectDirectory)\$(GameProjectDir)\bin\$(GodotPlatform)</GodotBinDir >
194- <BinDir >$(MSBuildProjectDirectory)\bin\$(GodotPlatform)</BinDir >
195- </PropertyGroup >
196-
197- <Target Name =" AfterBuild" DependsOnTargets =" Build" >
198- <!-- Ensure destination exists -->
199- <MakeDir Directories =" $(GodotBinDir)" />
200-
201- <!-- Windows: copy exact file name -->
202- <ItemGroup Condition =" '$(GodotPlatform)' == 'windows'" >
203- <BuiltBinary Include =" $(BinDir)\$(WinOutputFileName)" />
204- </ItemGroup >
205-
206- <!-- macOS: single file name without arch -->
207- <ItemGroup Condition =" '$(GodotPlatform)' == 'macos'" >
208- <BuiltBinary Include =" $(BinDir)\$(MacOutputFileName)" />
209- </ItemGroup >
210-
211- <!-- Linux/Android: use .so name with arch -->
212- <ItemGroup Condition =" '$(GodotPlatform)' == 'linux' or '$(GodotPlatform)' == 'android'" >
213- <BuiltBinary Include =" $(BinDir)\$(UnixOutputFileName)" />
214- </ItemGroup >
215-
216- <!-- Web: filenames include extra markers (e.g., nothreads/double). Copy all that match -->
217- <ItemGroup Condition =" '$(GodotPlatform)' == 'web'" >
218- <BuiltBinary Include =" $(BinDir)\$(WebOutputWildcard)" />
219- </ItemGroup >
220-
221- <!-- Perform copy if items exist -->
222- <Copy SourceFiles =" @(BuiltBinary)" DestinationFolder =" $(GodotBinDir)" SkipUnchangedFiles =" true" Condition =" Exists('%(BuiltBinary.Identity)')" />
223- </Target >
224-
225185 <Import Project =" $(VCTargetsPath)/Microsoft.Cpp.targets" Condition =" $(IsWindows)" />
226186</Project >
0 commit comments