Skip to content

Dependencies for the GDExtension Rider platform #95

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions demo/demo.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!--Requirements for Rider to detect project as a Godot Game root -->
<!-- Need changes in Rider to skip this PropertyGroup -->
<PropertyGroup>
<OutputType>Library</OutputType>
<RootNamespace>Demo</RootNamespace>
<AssemblyName>Demo</AssemblyName>
<DefineConstants>GODOT;</DefineConstants>
</PropertyGroup>
<ItemGroup>
<None Include="$(MSBuildProjectDirectory)/**"
Exclude="$(MSBuildProjectDirectory)/.*;$(MSBuildProjectDirectory)/.*/**" />
</ItemGroup>
</Project>
186 changes: 186 additions & 0 deletions gdext.vcxproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,186 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Label="Globals">
<ProjectGuid>{9A2FB295-38D9-4994-9497-26FF91C85465}</ProjectGuid>
<RootNamespace>godot</RootNamespace>
<Keyword>MakeFileProj</Keyword>
<VCProjectUpgraderObjectName>NoUpgrade</VCProjectUpgraderObjectName>
</PropertyGroup>

<!-- Windows -->
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug-x86_32|windows'">
<GodotConfiguration>Debug</GodotConfiguration>
<GodotPlatform>windows</GodotPlatform>
<GodotTemplate>template_debug</GodotTemplate>
<Arch>x86_32</Arch>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release-x86_32|windows'">
<GodotConfiguration>Release</GodotConfiguration>
<GodotPlatform>windows</GodotPlatform>
<GodotTemplate>template_release</GodotTemplate>
<Arch>x86_32</Arch>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug-x86_64|windows'">
<GodotConfiguration>Debug</GodotConfiguration>
<GodotPlatform>windows</GodotPlatform>
<GodotTemplate>template_debug</GodotTemplate>
<Arch>x86_64</Arch>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release-x86_64|windows'">
<GodotConfiguration>Release</GodotConfiguration>
<GodotPlatform>windows</GodotPlatform>
<GodotTemplate>template_release</GodotTemplate>
<Arch>x86_64</Arch>
</PropertyGroup>

<!-- Linux -->
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug-x86_64|linux'">
<GodotConfiguration>Debug</GodotConfiguration>
<GodotPlatform>linux</GodotPlatform>
<GodotTemplate>template_debug</GodotTemplate>
<Arch>x86_64</Arch>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release-x86_64|linux'">
<GodotConfiguration>Release</GodotConfiguration>
<GodotPlatform>linux</GodotPlatform>
<GodotTemplate>template_release</GodotTemplate>
<Arch>x86_64</Arch>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug-arm64|linux'">
<GodotConfiguration>Debug</GodotConfiguration>
<GodotPlatform>linux</GodotPlatform>
<GodotTemplate>template_debug</GodotTemplate>
<Arch>arm64</Arch>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release-arm64|linux'">
<GodotConfiguration>Release</GodotConfiguration>
<GodotPlatform>linux</GodotPlatform>
<GodotTemplate>template_release</GodotTemplate>
<Arch>arm64</Arch>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug-rv64|linux'">
<GodotConfiguration>Debug</GodotConfiguration>
<GodotPlatform>linux</GodotPlatform>
<GodotTemplate>template_debug</GodotTemplate>
<Arch>rv64</Arch>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release-rv64|linux'">
<GodotConfiguration>Release</GodotConfiguration>
<GodotPlatform>linux</GodotPlatform>
<GodotTemplate>template_release</GodotTemplate>
<Arch>rv64</Arch>
</PropertyGroup>

<!-- macOS (no arch in config) -->
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|macos'">
<GodotConfiguration>Debug</GodotConfiguration>
<GodotPlatform>macos</GodotPlatform>
<GodotTemplate>template_debug</GodotTemplate>
<Arch></Arch> <!-- no arch in example.gdextension -->
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|macos'">
<GodotConfiguration>Release</GodotConfiguration>
<GodotPlatform>macos</GodotPlatform>
<GodotTemplate>template_release</GodotTemplate>
<Arch></Arch>
</PropertyGroup>

<!-- iOS -->
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug-arm64|ios'">
<GodotConfiguration>Debug</GodotConfiguration>
<GodotPlatform>ios</GodotPlatform>
<GodotTemplate>template_debug</GodotTemplate>
<Arch>arm64</Arch>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release-arm64|ios'">
<GodotConfiguration>Release</GodotConfiguration>
<GodotPlatform>ios</GodotPlatform>
<GodotTemplate>template_release</GodotTemplate>
<Arch>arm64</Arch>
</PropertyGroup>

<!-- Android -->
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug-x86_64|android'">
<GodotConfiguration>Debug</GodotConfiguration>
<GodotPlatform>android</GodotPlatform>
<GodotTemplate>template_debug</GodotTemplate>
<Arch>x86_64</Arch>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release-x86_64|android'">
<GodotConfiguration>Release</GodotConfiguration>
<GodotPlatform>android</GodotPlatform>
<GodotTemplate>template_release</GodotTemplate>
<Arch>x86_64</Arch>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug-arm64|android'">
<GodotConfiguration>Debug</GodotConfiguration>
<GodotPlatform>android</GodotPlatform>
<GodotTemplate>template_debug</GodotTemplate>
<Arch>arm64</Arch>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release-arm64|android'">
<GodotConfiguration>Release</GodotConfiguration>
<GodotPlatform>android</GodotPlatform>
<GodotTemplate>template_release</GodotTemplate>
<Arch>arm64</Arch>
</PropertyGroup>

<!-- Web (wasm32) -->
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug-wasm32|web'">
<GodotConfiguration>Debug</GodotConfiguration>
<GodotPlatform>web</GodotPlatform>
<GodotTemplate>template_debug</GodotTemplate>
<Arch>wasm32</Arch>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release-wasm32|web'">
<GodotConfiguration>Release</GodotConfiguration>
<GodotPlatform>web</GodotPlatform>
<GodotTemplate>template_release</GodotTemplate>
<Arch>wasm32</Arch>
</PropertyGroup>

<PropertyGroup>
<IsWindows>$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Windows)))</IsWindows>
<IsMac>$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::OSX)))</IsMac>
<IsLinux>$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Linux)))</IsLinux>
</PropertyGroup>
<Import Project="$(VCTargetsPath)/Microsoft.Cpp.Default.props" Condition="$(IsWindows)"/>
<Import Project="$(MSBuildProjectDirectory)/targets/JetBrains.Rider.Cpp.targets" Condition="$(IsMac) OR $(IsLinux)"/>

<PropertyGroup Label="UserMacros">
<!-- Mirror useful CMake variables as MSBuild properties for consistency -->
<ExtensionName Condition="'$(ExtensionName)' == ''">EXTENSION-NAME</ExtensionName>
<!-- The directory of the Godot game project -->
<GameProjectDir Condition="'$(GameProjectDir)' == ''">demo</GameProjectDir>
<!-- Expose quick-switch properties to the IDE (can be overridden in godot.user.props) -->
<Precision Condition="'$(Precision)' == ''">single</Precision> <!--single or double-->
<Threads Condition="'$(Threads)' == ''">threads</Threads>
</PropertyGroup>
<Import Project="$(MSBuildProjectDirectory)/targets/godot.user.props" Condition="Exists('$(MSBuildProjectDirectory)/targets/godot.user.props')"/>

<PropertyGroup Label="Configuration">
<ConfigurationType>Makefile</ConfigurationType>
<UseOfMfc>false</UseOfMfc>
<PlatformToolset>v143</PlatformToolset> <!--Makes Visual Studio happy. Might be overridden in the platform specific import or godot.user.props -->
<DefaultPlatformToolset Condition="'$(DefaultPlatformToolset)'==''"/> <!--Workaround until https://youtrack.jetbrains.com/issue/RIDER-123783 is resolved. -->
<NMakeIncludeSearchPath>godot-cpp/gen/include;godot-cpp/include;godot-cpp/gdextension;$(NMakeIncludeSearchPath);</NMakeIncludeSearchPath>
<!-- Default debugger command should point to GodotEditor; if env var GODOT is provided, use it -->
<LocalDebuggerCommand Condition="'$(LocalDebuggerCommand)' == '' and '$(GODOT)' != ''">$(GODOT)</LocalDebuggerCommand>
<LocalDebuggerCommand Condition="'$(LocalDebuggerCommand)' == '' and '$(GODOT)' == ''">godot</LocalDebuggerCommand>
<!-- Commands executed by Build/Rebuild/Clean in the IDE (Rider, VS) -->
<NMakeBuildCommandLine>scons platform=$(GodotPlatform) arch=$(Arch) target=$(GodotTemplate)</NMakeBuildCommandLine>
<NMakeReBuildCommandLine>scons --clean platform=$(GodotPlatform) arch=$(Arch) target=$(GodotTemplate) &amp;&amp; scons platform=$(GodotPlatform) arch=$(Arch) target=$(GodotTemplate)</NMakeReBuildCommandLine>
<NMakeCleanCommandLine>scons --clean platform=$(GodotPlatform) arch=$(Arch) target=$(GodotTemplate)</NMakeCleanCommandLine>
</PropertyGroup>
<Import Project="$(VCTargetsPath)/Microsoft.Cpp.props" Condition="$(IsWindows)"/>
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ItemGroup>
<None Include="src/**/*.h"/>
<None Include="src/**/*.cpp"/>
</ItemGroup>

<!-- Build/Rebuild/Clean targets for NMake are defined in MSVC, so we need to provide them, when using MSBuild without MSVC targets -->
<Import Project="$(MSBuildProjectDirectory)/targets/nmake.substitution.props" Condition="!Exists('$(VCTargetsPath)/Microsoft.Cpp.targets')" />
<Import Project="$(VCTargetsPath)/Microsoft.Cpp.targets" Condition="$(IsWindows)"/>
</Project>
130 changes: 130 additions & 0 deletions godot-cpp-example.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.7.34221.43
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gdext", "gdext.vcxproj", "{9A2FB295-38D9-4994-9497-26FF91C85465}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "game", "demo\demo.csproj", "{5E7DBDBD-898E-4278-9432-B8BBADEDA80F}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug-x86_32|windows = Debug-x86_32|windows
Release-x86_32|windows = Release-x86_32|windows
Debug-x86_64|windows = Debug-x86_64|windows
Release-x86_64|windows = Release-x86_64|windows

Debug-x86_64|linux = Debug-x86_64|linux
Release-x86_64|linux = Release-x86_64|linux
Debug-arm64|linux = Debug-arm64|linux
Release-arm64|linux = Release-arm64|linux
Debug-rv64|linux = Debug-rv64|linux
Release-rv64|linux = Release-rv64|linux

Debug|macos = Debug|macos
Release|macos = Release|macos

Debug-arm64|ios = Debug-arm64|ios
Release-arm64|ios = Release-arm64|ios

Debug-x86_64|android = Debug-x86_64|android
Release-x86_64|android = Release-x86_64|android
Debug-arm64|android = Debug-arm64|android
Release-arm64|android = Release-arm64|android

Debug-wasm32|web = Debug-wasm32|web
Release-wasm32|web = Release-wasm32|web
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{9A2FB295-38D9-4994-9497-26FF91C85465}.Debug-x86_32|windows.ActiveCfg = Debug-x86_32|windows
{9A2FB295-38D9-4994-9497-26FF91C85465}.Debug-x86_32|windows.Build.0 = Debug-x86_32|windows
{9A2FB295-38D9-4994-9497-26FF91C85465}.Release-x86_32|windows.ActiveCfg = Release-x86_32|windows
{9A2FB295-38D9-4994-9497-26FF91C85465}.Release-x86_32|windows.Build.0 = Release-x86_32|windows
{9A2FB295-38D9-4994-9497-26FF91C85465}.Debug-x86_64|windows.ActiveCfg = Debug-x86_64|windows
{9A2FB295-38D9-4994-9497-26FF91C85465}.Debug-x86_64|windows.Build.0 = Debug-x86_64|windows
{9A2FB295-38D9-4994-9497-26FF91C85465}.Release-x86_64|windows.ActiveCfg = Release-x86_64|windows
{9A2FB295-38D9-4994-9497-26FF91C85465}.Release-x86_64|windows.Build.0 = Release-x86_64|windows

{9A2FB295-38D9-4994-9497-26FF91C85465}.Debug-x86_64|linux.ActiveCfg = Debug-x86_64|linux
{9A2FB295-38D9-4994-9497-26FF91C85465}.Debug-x86_64|linux.Build.0 = Debug-x86_64|linux
{9A2FB295-38D9-4994-9497-26FF91C85465}.Release-x86_64|linux.ActiveCfg = Release-x86_64|linux
{9A2FB295-38D9-4994-9497-26FF91C85465}.Release-x86_64|linux.Build.0 = Release-x86_64|linux
{9A2FB295-38D9-4994-9497-26FF91C85465}.Debug-arm64|linux.ActiveCfg = Debug-arm64|linux
{9A2FB295-38D9-4994-9497-26FF91C85465}.Debug-arm64|linux.Build.0 = Debug-arm64|linux
{9A2FB295-38D9-4994-9497-26FF91C85465}.Release-arm64|linux.ActiveCfg = Release-arm64|linux
{9A2FB295-38D9-4994-9497-26FF91C85465}.Release-arm64|linux.Build.0 = Release-arm64|linux
{9A2FB295-38D9-4994-9497-26FF91C85465}.Debug-rv64|linux.ActiveCfg = Debug-rv64|linux
{9A2FB295-38D9-4994-9497-26FF91C85465}.Debug-rv64|linux.Build.0 = Debug-rv64|linux
{9A2FB295-38D9-4994-9497-26FF91C85465}.Release-rv64|linux.ActiveCfg = Release-rv64|linux
{9A2FB295-38D9-4994-9497-26FF91C85465}.Release-rv64|linux.Build.0 = Release-rv64|linux

{9A2FB295-38D9-4994-9497-26FF91C85465}.Debug|macos.ActiveCfg = Debug|macos
{9A2FB295-38D9-4994-9497-26FF91C85465}.Debug|macos.Build.0 = Debug|macos
{9A2FB295-38D9-4994-9497-26FF91C85465}.Release|macos.ActiveCfg = Release|macos
{9A2FB295-38D9-4994-9497-26FF91C85465}.Release|macos.Build.0 = Release|macos

{9A2FB295-38D9-4994-9497-26FF91C85465}.Debug-arm64|ios.ActiveCfg = Debug-arm64|ios
{9A2FB295-38D9-4994-9497-26FF91C85465}.Debug-arm64|ios.Build.0 = Debug-arm64|ios
{9A2FB295-38D9-4994-9497-26FF91C85465}.Release-arm64|ios.ActiveCfg = Release-arm64|ios
{9A2FB295-38D9-4994-9497-26FF91C85465}.Release-arm64|ios.Build.0 = Release-arm64|ios

{9A2FB295-38D9-4994-9497-26FF91C85465}.Debug-x86_64|android.ActiveCfg = Debug-x86_64|android
{9A2FB295-38D9-4994-9497-26FF91C85465}.Debug-x86_64|android.Build.0 = Debug-x86_64|android
{9A2FB295-38D9-4994-9497-26FF91C85465}.Release-x86_64|android.ActiveCfg = Release-x86_64|android
{9A2FB295-38D9-4994-9497-26FF91C85465}.Release-x86_64|android.Build.0 = Release-x86_64|android
{9A2FB295-38D9-4994-9497-26FF91C85465}.Debug-arm64|android.ActiveCfg = Debug-arm64|android
{9A2FB295-38D9-4994-9497-26FF91C85465}.Debug-arm64|android.Build.0 = Debug-arm64|android
{9A2FB295-38D9-4994-9497-26FF91C85465}.Release-arm64|android.ActiveCfg = Release-arm64|android
{9A2FB295-38D9-4994-9497-26FF91C85465}.Release-arm64|android.Build.0 = Release-arm64|android

{9A2FB295-38D9-4994-9497-26FF91C85465}.Debug-wasm32|web.ActiveCfg = Debug-wasm32|web
{9A2FB295-38D9-4994-9497-26FF91C85465}.Debug-wasm32|web.Build.0 = Debug-wasm32|web
{9A2FB295-38D9-4994-9497-26FF91C85465}.Release-wasm32|web.ActiveCfg = Release-wasm32|web
{9A2FB295-38D9-4994-9497-26FF91C85465}.Release-wasm32|web.Build.0 = Release-wasm32|web
{5E7DBDBD-898E-4278-9432-B8BBADEDA80F}.Debug-x86_32|windows.ActiveCfg = Debug|Any CPU
{5E7DBDBD-898E-4278-9432-B8BBADEDA80F}.Debug-x86_32|windows.Build.0 = Debug|Any CPU
{5E7DBDBD-898E-4278-9432-B8BBADEDA80F}.Release-x86_32|windows.ActiveCfg = Debug|Any CPU
{5E7DBDBD-898E-4278-9432-B8BBADEDA80F}.Release-x86_32|windows.Build.0 = Debug|Any CPU
{5E7DBDBD-898E-4278-9432-B8BBADEDA80F}.Debug-x86_64|windows.ActiveCfg = Debug|Any CPU
{5E7DBDBD-898E-4278-9432-B8BBADEDA80F}.Debug-x86_64|windows.Build.0 = Debug|Any CPU
{5E7DBDBD-898E-4278-9432-B8BBADEDA80F}.Release-x86_64|windows.ActiveCfg = Debug|Any CPU
{5E7DBDBD-898E-4278-9432-B8BBADEDA80F}.Release-x86_64|windows.Build.0 = Debug|Any CPU
{5E7DBDBD-898E-4278-9432-B8BBADEDA80F}.Debug-x86_64|linux.ActiveCfg = Debug|Any CPU
{5E7DBDBD-898E-4278-9432-B8BBADEDA80F}.Debug-x86_64|linux.Build.0 = Debug|Any CPU
{5E7DBDBD-898E-4278-9432-B8BBADEDA80F}.Release-x86_64|linux.ActiveCfg = Debug|Any CPU
{5E7DBDBD-898E-4278-9432-B8BBADEDA80F}.Release-x86_64|linux.Build.0 = Debug|Any CPU
{5E7DBDBD-898E-4278-9432-B8BBADEDA80F}.Debug-arm64|linux.ActiveCfg = Debug|Any CPU
{5E7DBDBD-898E-4278-9432-B8BBADEDA80F}.Debug-arm64|linux.Build.0 = Debug|Any CPU
{5E7DBDBD-898E-4278-9432-B8BBADEDA80F}.Release-arm64|linux.ActiveCfg = Debug|Any CPU
{5E7DBDBD-898E-4278-9432-B8BBADEDA80F}.Release-arm64|linux.Build.0 = Debug|Any CPU
{5E7DBDBD-898E-4278-9432-B8BBADEDA80F}.Debug-rv64|linux.ActiveCfg = Debug|Any CPU
{5E7DBDBD-898E-4278-9432-B8BBADEDA80F}.Debug-rv64|linux.Build.0 = Debug|Any CPU
{5E7DBDBD-898E-4278-9432-B8BBADEDA80F}.Release-rv64|linux.ActiveCfg = Debug|Any CPU
{5E7DBDBD-898E-4278-9432-B8BBADEDA80F}.Release-rv64|linux.Build.0 = Debug|Any CPU
{5E7DBDBD-898E-4278-9432-B8BBADEDA80F}.Debug|macos.ActiveCfg = Debug|Any CPU
{5E7DBDBD-898E-4278-9432-B8BBADEDA80F}.Debug|macos.Build.0 = Debug|Any CPU
{5E7DBDBD-898E-4278-9432-B8BBADEDA80F}.Release|macos.ActiveCfg = Release|Any CPU
{5E7DBDBD-898E-4278-9432-B8BBADEDA80F}.Release|macos.Build.0 = Release|Any CPU
{5E7DBDBD-898E-4278-9432-B8BBADEDA80F}.Debug-arm64|ios.ActiveCfg = Debug|Any CPU
{5E7DBDBD-898E-4278-9432-B8BBADEDA80F}.Debug-arm64|ios.Build.0 = Debug|Any CPU
{5E7DBDBD-898E-4278-9432-B8BBADEDA80F}.Release-arm64|ios.ActiveCfg = Debug|Any CPU
{5E7DBDBD-898E-4278-9432-B8BBADEDA80F}.Release-arm64|ios.Build.0 = Debug|Any CPU
{5E7DBDBD-898E-4278-9432-B8BBADEDA80F}.Debug-x86_64|android.ActiveCfg = Debug|Any CPU
{5E7DBDBD-898E-4278-9432-B8BBADEDA80F}.Debug-x86_64|android.Build.0 = Debug|Any CPU
{5E7DBDBD-898E-4278-9432-B8BBADEDA80F}.Release-x86_64|android.ActiveCfg = Debug|Any CPU
{5E7DBDBD-898E-4278-9432-B8BBADEDA80F}.Release-x86_64|android.Build.0 = Debug|Any CPU
{5E7DBDBD-898E-4278-9432-B8BBADEDA80F}.Debug-arm64|android.ActiveCfg = Debug|Any CPU
{5E7DBDBD-898E-4278-9432-B8BBADEDA80F}.Debug-arm64|android.Build.0 = Debug|Any CPU
{5E7DBDBD-898E-4278-9432-B8BBADEDA80F}.Release-arm64|android.ActiveCfg = Debug|Any CPU
{5E7DBDBD-898E-4278-9432-B8BBADEDA80F}.Release-arm64|android.Build.0 = Debug|Any CPU
{5E7DBDBD-898E-4278-9432-B8BBADEDA80F}.Debug-wasm32|web.ActiveCfg = Debug|Any CPU
{5E7DBDBD-898E-4278-9432-B8BBADEDA80F}.Debug-wasm32|web.Build.0 = Debug|Any CPU
{5E7DBDBD-898E-4278-9432-B8BBADEDA80F}.Release-wasm32|web.ActiveCfg = Debug|Any CPU
{5E7DBDBD-898E-4278-9432-B8BBADEDA80F}.Release-wasm32|web.Build.0 = Debug|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {75408944-4e38-4094-a91b-4730439ab8ee}
EndGlobalSection
EndGlobal
19 changes: 19 additions & 0 deletions targets/JetBrains.Rider.Cpp.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

<!-- do not rename this target, Rider calls it on the properties evaluation -->
<Target Name="CollectPackageReferences" Condition="'$(DesignTimeBuild)' == 'true'">
<Message Text="Resolving toolchain..." Importance="High" />

<!-- Query clang include paths -->
<Exec Command="clang++ -v -E -x c++ /dev/null 2&gt;&amp;1 | sed -n '/#include &lt;...&gt; search starts here:/,/End of search list/p' | tail -n +2 | grep -v 'End of search list' | xargs -I{} echo -n '{};'" ConsoleToMsBuild="true">
<Output TaskParameter="ConsoleOutput" PropertyName="ClangIncludeDirs"/>
</Exec>

<PropertyGroup>
<NMakeIncludeSearchPath>$(ClangIncludeDirs)$(NMakeIncludeSearchPath)</NMakeIncludeSearchPath>
</PropertyGroup>

<Message Text="NMakeIncludeSearchPath: $(NMakeIncludeSearchPath)"/>
</Target>

</Project>
Loading