Skip to content
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
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ Resonite.UnitySDK.sln
# Visual Studio cache directory
.vs/

# Visual Studio: Code workspace directory
.vscode/

# Zed sworkspace directory
.zed/

# Gradle cache directory
.gradle/

Expand Down
12 changes: 12 additions & 0 deletions BindingsGenerator/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<HomeFolder>$([System.Environment]::GetFolderPath(SpecialFolder.UserProfile))/</HomeFolder>
<IsWindows>$([MSBuild]::IsOSPlatform('Windows'))</IsWindows>
<IsLinux>$([MSBuild]::IsOSPlatform('Linux'))</IsLinux>
<IsOSX>$([MSBuild]::IsOSPlatform('OSX'))</IsOSX>


<UnityEditorPath>C:/Program Files/Unity/</UnityEditorPath>
<UnityEditorPath Condition="'$(IsLinux)' == 'true'">$(HomeFolder)/Unity/</UnityEditorPath>
</PropertyGroup>
</Project>
3 changes: 3 additions & 0 deletions BindingsGenerator/Directory.Build.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(ProjectDir)BuildOutput.targets" Condition="Exists('$(ProjectDir)BuildOutput.targets')"/>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

<ItemGroup>
<Reference Include="UnityEngine">
<HintPath>..\..\..\..\..\Program Files\Unity\Hub\Editor\2022.3.62f3\Editor\Data\Managed\UnityEngine.dll</HintPath>
<HintPath>$(UnityEditorPath)Hub/Editor/2022.3.62f3/Editor/Data/Managed/UnityEngine.dll</HintPath>
</Reference>
</ItemGroup>

Expand Down
21 changes: 21 additions & 0 deletions BindingsGenerator/Resonite.UnitySDK.Bindings/BuildOutput.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

<PropertyGroup>
<BindingsOutputPath>$(OutDir)../../../../../Assets/ResoniteSDK/Plugins/</BindingsOutputPath>
</PropertyGroup>

<Target Name="CopyToBuilds" AfterTargets="PostBuildEvent">
<ItemGroup>
<CopyToOutput Include="$(OutDir)**/*.*" >
<Destination>$(BindingsOutputPath)</Destination>
</CopyToOutput>
</ItemGroup>

<Copy
SourceFiles="%(CopyToOutput.Identity)"
DestinationFiles="%(CopyToOutput.Destination)%(RecursiveDir)%(Filename)%(Extension)"
SkipUnchangedFiles="false"
/>

</Target>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Resonite.UnitySDK.Core\Resonite.UnitySDK.Core.csproj" />
<ProjectReference Include="../Resonite.UnitySDK.Core/Resonite.UnitySDK.Core.csproj" />
</ItemGroup>

<ItemGroup>
<Reference Include="UnityEngine">
<HintPath>..\..\..\..\..\Program Files\Unity\Hub\Editor\2022.3.62f3\Editor\Data\Managed\UnityEngine.dll</HintPath>
<HintPath>$(UnityEditorPath)Hub/Editor/2022.3.62f3/Editor/Data/Managed/UnityEngine.dll</HintPath>
<Private>False</Private>
</Reference>
</ItemGroup>

<ItemGroup>
<None Update="Conversion\FieldAndArrayConverter.tt">
<None Update="Conversion/FieldAndArrayConverter.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>FieldAndArrayConverter.cs</LastGenOutput>
</None>
Expand All @@ -35,15 +35,15 @@
</ItemGroup>

<ItemGroup>
<Compile Update="Conversion\FieldAndArrayConverter.cs">
<Compile Update="Conversion/FieldAndArrayConverter.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>FieldAndArrayConverter.tt</DependentUpon>
</Compile>
</ItemGroup>

<ItemGroup>
<Folder Include="Extensions\StaticAssets\" />
<Folder Include="Extensions/StaticAssets/" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<ItemGroup>
<Reference Include="UnityEngine">
<HintPath>..\..\..\..\..\Program Files\Unity\Hub\Editor\2022.3.62f3\Editor\Data\Managed\UnityEngine.dll</HintPath>
<HintPath>$(UnityEditorPath)Hub/Editor/2022.3.62f3/Editor/Data/Managed/UnityEngine.dll</HintPath>
</Reference>
</ItemGroup>

Expand Down
Loading