|
1 | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | 2 | <Project DefaultTargets="Build" ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
| 3 | + <PropertyGroup> |
| 4 | + <RepoRoot>$([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)..'))</RepoRoot> |
| 5 | + </PropertyGroup> |
| 6 | + |
3 | 7 | <PropertyGroup Label="Globals"> |
4 | 8 | <ProjectGuid>{9A2FB295-38D9-4994-9497-26FF91C85465}</ProjectGuid> |
5 | 9 | <RootNamespace>godot</RootNamespace> |
|
172 | 176 | <ConfigurationType>Makefile</ConfigurationType> |
173 | 177 | <UseOfMfc>false</UseOfMfc> |
174 | 178 | <PlatformToolset>v143</PlatformToolset> <!--Makes Visual Studio happy. Might be overridden in the platform specific import or godot.user.props --> |
175 | | - <DefaultPlatformToolset Condition="'$(DefaultPlatformToolset)'==''"/> <!--Workaround until https://youtrack.jetbrains.com/issue/RIDER-123783 is resolved. --> |
176 | | - <NMakeIncludeSearchPath>godot-cpp/gen/include;godot-cpp/include;godot-cpp/gdextension;$(NMakeIncludeSearchPath);</NMakeIncludeSearchPath> |
177 | | - <!-- Default debugger command should point to GodotEditor; if env var GODOT is provided, use it --> |
178 | | - <LocalDebuggerCommand Condition="'$(LocalDebuggerCommand)' == '' and '$(GODOT)' != ''">$(GODOT)</LocalDebuggerCommand> |
179 | | - <LocalDebuggerCommand Condition="'$(LocalDebuggerCommand)' == '' and '$(GODOT)' == ''">godot</LocalDebuggerCommand> |
| 179 | + <NMakeWorkingDirectory>$(RepoRoot)</NMakeWorkingDirectory> |
| 180 | + <NMakeOutput Condition="'$(NMakeOutput)' == ''">dylib</NMakeOutput> <!--any non empty value required for automatic run configuration generation in Rider --> |
| 181 | + <LocalDebuggerWorkingDirectory Condition="'$(LocalDebuggerWorkingDirectory)' == ''">$(NMakeWorkingDirectory)/demo</LocalDebuggerWorkingDirectory> |
| 182 | + <LocalDebuggerCommandArguments>--editor</LocalDebuggerCommandArguments> |
| 183 | + <NMakeIncludeSearchPath>$(RepoRoot)/godot-cpp/gen/include;$(RepoRoot)/godot-cpp/include;$(RepoRoot)/godot-cpp/gdextension;$(NMakeIncludeSearchPath);</NMakeIncludeSearchPath> |
180 | 184 | <!-- Commands executed by Build/Rebuild/Clean in the IDE (Rider, VS) --> |
181 | 185 | <NMakeBuildCommandLine>scons platform=$(GodotPlatform) arch=$(Arch) target=$(GodotTemplate) $(BuildType)</NMakeBuildCommandLine> |
182 | 186 | <NMakeReBuildCommandLine>scons --clean platform=$(GodotPlatform) arch=$(Arch) target=$(GodotTemplate) && scons platform=$(GodotPlatform) arch=$(Arch) target=$(GodotTemplate)</NMakeReBuildCommandLine> |
|
186 | 190 | <ImportGroup Label="ExtensionSettings"> |
187 | 191 | </ImportGroup> |
188 | 192 | <ItemGroup> |
189 | | - <None Include="src/**/*.h"/> |
190 | | - <None Include="src/**/*.cpp"/> |
| 193 | + <None Include="$(RepoRoot)/src/**/*.h"> |
| 194 | + <Link>src/%(RecursiveDir)%(Filename).%(Extension)</Link> |
| 195 | + </None> |
| 196 | + <None Include="$(RepoRoot)/src/**/*.cpp"> |
| 197 | + <Link>src/%(RecursiveDir)%(Filename).%(Extension)</Link> |
| 198 | + </None> |
191 | 199 | </ItemGroup> |
192 | 200 |
|
193 | 201 | <!-- Build/Rebuild/Clean targets for NMake are defined in MSVC, so we need to provide them, when using MSBuild without MSVC targets --> |
|
0 commit comments