Overlay upstream/main (9b5e276) onto BlankenshipG main without rewriting
history. Keep origin-only Decal/plugin/docs trees. Re-apply aelrynth.com
and sibling-fork URL fixes that aelrynth git still has as tombohar links.
Co-authored-by: BlankenshipG <BlankenshipG@users.noreply.github.com>
120 lines
4.7 KiB
XML
120 lines
4.7 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<TargetFramework>net10.0-windows</TargetFramework>
|
|
<PlatformTarget>x86</PlatformTarget>
|
|
<RuntimeIdentifier>win-x86</RuntimeIdentifier>
|
|
<OutputType>Library</OutputType>
|
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
|
<Nullable>enable</Nullable>
|
|
<PublishAot>true</PublishAot>
|
|
<NativeLib>Shared</NativeLib>
|
|
<RootNamespace>RynthCore.Engine</RootNamespace>
|
|
<AssemblyName>RynthCore.Engine</AssemblyName>
|
|
|
|
<!-- NativeAOT settings -->
|
|
<InvariantGlobalization>true</InvariantGlobalization>
|
|
<IlcOptimizationPreference>Size</IlcOptimizationPreference>
|
|
<!-- DIAGNOSTIC: was false. true emits method-name metadata so Environment.StackTrace
|
|
resolves to real symbols. Adds ~5-10 MB to engine.dll. Flip back to false once the
|
|
silent-ExitProcess investigation is closed. -->
|
|
<StackTraceSupport>true</StackTraceSupport>
|
|
|
|
<!-- Keep ImGui.NET's P/Invoke bindings intact -->
|
|
<TrimMode>link</TrimMode>
|
|
|
|
<Platforms>x86</Platforms>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
|
|
<StackTraceSupport>true</StackTraceSupport>
|
|
<DebugType>full</DebugType>
|
|
<Optimize>false</Optimize>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="ImGui.NET" Version="1.91.6.1" />
|
|
<PackageReference Include="Avalonia" Version="11.2.3" />
|
|
<PackageReference Include="Avalonia.Desktop" Version="11.2.3" />
|
|
<PackageReference Include="Avalonia.Skia" Version="11.2.3" />
|
|
<PackageReference Include="Avalonia.Themes.Simple" Version="11.2.3" />
|
|
<PackageReference Include="Avalonia.AvaloniaEdit" Version="11.2.0" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<Compile Include="..\RynthCore.App\CharacterCacheStore.cs" Link="Shared\CharacterCacheStore.cs" />
|
|
<Compile Include="..\RynthCore.App\SessionStateStore.cs" Link="Shared\SessionStateStore.cs" />
|
|
<Compile Include="..\RynthCore.App\BuildVersion.cs" Link="Shared\BuildVersion.cs" />
|
|
</ItemGroup>
|
|
|
|
<!-- Prevent trimmer from removing ImGui.NET's DllImport methods -->
|
|
<!-- Root Avalonia assemblies so the AOT trimmer keeps them intact -->
|
|
<ItemGroup>
|
|
<TrimmerRootAssembly Include="ImGui.NET" />
|
|
<TrimmerRootAssembly Include="Avalonia" />
|
|
<TrimmerRootAssembly Include="Avalonia.Base" />
|
|
<TrimmerRootAssembly Include="Avalonia.Desktop" />
|
|
<TrimmerRootAssembly Include="Avalonia.Win32" />
|
|
<TrimmerRootAssembly Include="Avalonia.Skia" />
|
|
<TrimmerRootAssembly Include="Avalonia.Themes.Simple" />
|
|
<TrimmerRootAssembly Include="AvaloniaEdit" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<BundledNativeDll Include="Native\cimgui.dll" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<BundledSupportDll Include="Native\minhook.x86.dll" />
|
|
</ItemGroup>
|
|
|
|
<Target Name="CopyBundledNativeDlls" AfterTargets="Build">
|
|
<Copy
|
|
SourceFiles="@(BundledNativeDll)"
|
|
DestinationFiles="@(BundledNativeDll->'$(OutputPath)Native\%(Filename)%(Extension)')"
|
|
SkipUnchangedFiles="true" />
|
|
<Copy
|
|
SourceFiles="@(BundledNativeDll)"
|
|
DestinationFiles="@(BundledNativeDll->'$(OutputPath)Native\RynthCore.%(Filename)%(Extension)')"
|
|
SkipUnchangedFiles="true" />
|
|
<Copy
|
|
SourceFiles="@(BundledNativeDll)"
|
|
DestinationFiles="@(BundledNativeDll->'$(OutputPath)%(Filename)%(Extension)')"
|
|
SkipUnchangedFiles="true" />
|
|
<Copy
|
|
SourceFiles="@(BundledNativeDll)"
|
|
DestinationFiles="@(BundledNativeDll->'$(OutputPath)RynthCore.%(Filename)%(Extension)')"
|
|
SkipUnchangedFiles="true" />
|
|
</Target>
|
|
|
|
<Target Name="CopyBundledNativeDllsToPublish" AfterTargets="Publish" Condition="'$(PublishDir)' != ''">
|
|
<Copy
|
|
SourceFiles="@(BundledNativeDll)"
|
|
DestinationFiles="@(BundledNativeDll->'$(PublishDir)Native\%(Filename)%(Extension)')"
|
|
SkipUnchangedFiles="true" />
|
|
<Copy
|
|
SourceFiles="@(BundledNativeDll)"
|
|
DestinationFiles="@(BundledNativeDll->'$(PublishDir)Native\RynthCore.%(Filename)%(Extension)')"
|
|
SkipUnchangedFiles="true" />
|
|
<Copy
|
|
SourceFiles="@(BundledNativeDll)"
|
|
DestinationFiles="@(BundledNativeDll->'$(PublishDir)%(Filename)%(Extension)')"
|
|
SkipUnchangedFiles="true" />
|
|
<Copy
|
|
SourceFiles="@(BundledNativeDll)"
|
|
DestinationFiles="@(BundledNativeDll->'$(PublishDir)RynthCore.%(Filename)%(Extension)')"
|
|
SkipUnchangedFiles="true" />
|
|
<Copy
|
|
SourceFiles="@(BundledSupportDll)"
|
|
DestinationFiles="@(BundledSupportDll->'$(PublishDir)%(Filename)%(Extension)')"
|
|
SkipUnchangedFiles="true" />
|
|
</Target>
|
|
|
|
<Target Name="CopyBundledSupportDlls" AfterTargets="Build">
|
|
<Copy
|
|
SourceFiles="@(BundledSupportDll)"
|
|
DestinationFiles="@(BundledSupportDll->'$(OutputPath)%(Filename)%(Extension)')"
|
|
SkipUnchangedFiles="true" />
|
|
</Target>
|
|
|
|
</Project>
|