|
20 | 20 | <GodotTemplate>template_release</GodotTemplate> |
21 | 21 | </PropertyGroup> |
22 | 22 |
|
| 23 | + <ItemGroup Label="ProjectConfigurations"> |
| 24 | + <ProjectConfiguration Include="Debug|x64"> |
| 25 | + <Configuration>Debug</Configuration> |
| 26 | + <Platform>x64</Platform> |
| 27 | + </ProjectConfiguration> |
| 28 | + <ProjectConfiguration Include="Release|x64"> |
| 29 | + <Configuration>Release</Configuration> |
| 30 | + <Platform>x64</Platform> |
| 31 | + </ProjectConfiguration> |
| 32 | + </ItemGroup> |
| 33 | + |
23 | 34 | <!-- Windows --> |
24 | 35 | <PropertyGroup Condition="'$(Platform)'=='windows-x86_32'"> |
25 | 36 | <GodotPlatform>windows</GodotPlatform> |
|
98 | 109 | <PlatformToolset Condition="'$(GodotPlatform)'=='android'">Clang_Linux</PlatformToolset> |
99 | 110 | <PlatformToolset Condition="'$(GodotPlatform)'=='web'">Clang_Linux</PlatformToolset> |
100 | 111 | <!-- Fallback when platform is not matched --> |
101 | | - <PlatformToolset Condition="'$(PlatformToolset)'==''">Unknown</PlatformToolset> |
| 112 | + <PlatformToolset Condition="'$(PlatformToolset)'==''">v143</PlatformToolset> |
| 113 | + <DefaultPlatformToolset>$(PlatformToolset)</DefaultPlatformToolset> |
102 | 114 |
|
103 | 115 | <NMakeWorkingDirectory>$(RepoRoot)</NMakeWorkingDirectory> |
104 | 116 | <NMakeOutput Condition="'$(NMakeOutput)' == ''">dylib</NMakeOutput> <!--any non empty value required for automatic run configuration generation in Rider --> |
105 | 117 | <LocalDebuggerWorkingDirectory Condition="'$(LocalDebuggerWorkingDirectory)' == ''">$(NMakeWorkingDirectory)/demo</LocalDebuggerWorkingDirectory> |
106 | 118 | <LocalDebuggerCommandArguments>--editor</LocalDebuggerCommandArguments> |
107 | 119 | <NMakeIncludeSearchPath>$(RepoRoot)/godot-cpp/gen/include;$(RepoRoot)/godot-cpp/include;$(RepoRoot)/godot-cpp/gdextension;$(NMakeIncludeSearchPath);</NMakeIncludeSearchPath> |
| 120 | + </PropertyGroup> |
| 121 | + |
| 122 | + <PropertyGroup Condition="!$(IsWindows)" Label="Configuration"> |
108 | 123 | <!-- Commands executed by Build/Rebuild/Clean in the IDE (Rider, VS) --> |
109 | 124 | <NMakeBuildCommandLine>scons platform=$(GodotPlatform) arch=$(Arch) target=$(GodotTemplate) $(BuildType)</NMakeBuildCommandLine> |
110 | 125 | <NMakeReBuildCommandLine>scons --clean platform=$(GodotPlatform) arch=$(Arch) target=$(GodotTemplate) && scons platform=$(GodotPlatform) arch=$(Arch) target=$(GodotTemplate)</NMakeReBuildCommandLine> |
111 | 126 | <NMakeCleanCommandLine>scons --clean platform=$(GodotPlatform) arch=$(Arch) target=$(GodotTemplate)</NMakeCleanCommandLine> |
112 | 127 | </PropertyGroup> |
| 128 | + |
| 129 | + <PropertyGroup Condition="$(IsWindows)" Label="Configuration"> |
| 130 | + <NMakeBuildCommandLine>cmd /V /C set "PATH=$(PATH)" ^& scons platform=$(GodotPlatform) arch=$(Arch) target=$(GodotTemplate) $(BuildType)</NMakeBuildCommandLine> |
| 131 | + <NMakeReBuildCommandLine>cmd /V /C set "PATH=$(PATH)" ^& scons --clean platform=$(GodotPlatform) arch=$(Arch) target=$(GodotTemplate) ^& scons platform=$(GodotPlatform) arch=$(Arch) target=$(GodotTemplate)</NMakeReBuildCommandLine> |
| 132 | + <NMakeCleanCommandLine>cmd /V /C set "PATH=$(PATH)" ^& scons --clean platform=$(GodotPlatform) arch=$(Arch) target=$(GodotTemplate)</NMakeCleanCommandLine> |
| 133 | + </PropertyGroup> |
| 134 | + |
113 | 135 | <Import Project="$(VCTargetsPath)/Microsoft.Cpp.props" Condition="$(IsWindows)"/> |
114 | 136 | <ImportGroup Label="ExtensionSettings"> |
115 | 137 | </ImportGroup> |
|
0 commit comments