Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .sdk-revision
Original file line number Diff line number Diff line change
@@ -1 +1 @@
82335d3971d3d98a4f85d2993809c272a4b7b108
134a524d7cea119a634e9f516b100f9619dce1cb
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<PropertyGroup>
<DndBuildNative Condition="'$(DndBuildNative)' == ''">false</DndBuildNative>
<IsPackable>false</IsPackable>
<DolphinDotNetPackageVersion>0.1.0-preview.372.1</DolphinDotNetPackageVersion>
<DolphinDotNetPackageVersion>0.1.0-preview.374.1</DolphinDotNetPackageVersion>
<HypercubeNativePasses Condition="'$(HypercubeNativePasses)' == ''">true</HypercubeNativePasses>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
Expand Down
10 changes: 8 additions & 2 deletions docs/nuget.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,18 @@ streaming adapters and depends on Core plus a specific published
DolphinDotNet.GameCube version. The DolphinDotNet MSBuild SDK/compiler is a
separate application requirement; it is not copied into an engine library nupkg.
`Directory.Build.props` pins the package dependency version to
`DolphinDotNet.GameCube` **0.1.0-preview.318.1**. The matching compiler/runtime
source is **4c8cd26a1b5f8003598463116960367ffa17418f**, also pinned in
`DolphinDotNet.GameCube` **0.1.0-preview.374.1**. The matching compiler/runtime
source is **134a524d7cea119a634e9f516b100f9619dce1cb**, also pinned in
`.sdk-revision` for source validation. Ordered passes retain their native SDK
backend by default; the portable comparison remains available through
`HypercubeNativePasses=false`.

The current SDK adds `Dolphin.IO.LaunchContext` for bounded incoming GameCube
launcher arguments, used by AnimalTown's standalone Dolphin Depot app profile.
The external consumer also bundles this API and checks that the SDK includes
its launch capture before managed startup. Existing rendering and full-resolution
AA capabilities remain in the same exact SDK dependency closure.

This upgrade accompanies [AnimalTown #47](https://github.com/capz/AnimalTown/pull/47).
SDK 318 exposes independent TEV alpha stages, two-reference GX comparisons and
`TevMaterialPresets.DualTextureGlints` for its two scrolling water samples.
Expand Down
11 changes: 11 additions & 0 deletions tests/nuget_consumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,17 @@ class Program {static void Main(){var q=new OpaqueDrawQueue(2);q.TryAdd(1,2,0xff
compiler=work/'packages/dolphindotnet.sdk'/sdk/'tools/compiler/DolphinDotNet.Compiler.dll'
run('dotnet',str(compiler),'--bundle',str(app/'bin/Release/net8.0/GameCube.dll'),str(work/'native-consumer'))
if not (work/'native-consumer/source/generated_program.c').is_file():raise AssertionError('No consumer AOT bundle')
launch=work/'Launch';launch.mkdir()
(launch/'Launch.csproj').write_text((app/'GameCube.csproj').read_text())
(launch/'Program.cs').write_text('''using Dolphin.IO;
internal static class Program {static int Main(){return LaunchContext.ArgumentCount==0?0:LaunchContext.ExecutablePath.Length;}}
''')
run('dotnet','build',str(launch),'-c','Release','-p:DndBuildNative=false','-warnaserror:NU1608')
run('dotnet',str(compiler),'--bundle',str(launch/'bin/Release/net8.0/Launch.dll'),str(work/'native-launch'))
if '-DDND_CAPTURE_LAUNCH_ARGUMENTS' not in (work/'native-launch/Makefile').read_text():
raise AssertionError('Published SDK did not enable incoming launch-context capture')
if 'dnd_launch_count(' not in (work/'native-launch/source/generated_program.c').read_text():
raise AssertionError('Published launch-context call missing from AOT consumer')
# Exercise the distributed default backend, rather than only compiling
# the stubbed contract test or the source-checkout adapter.
ordered=work/'Ordered';ordered.mkdir()
Expand Down
Loading