Skip to content

Commit 81ebf9c

Browse files
committed
nogen
1 parent de0cec3 commit 81ebf9c

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,10 @@ jobs:
2929
dotnet-version: 9.0.x
3030
- name: Restore dependencies
3131
run: dotnet restore
32-
- name: Restore tools
33-
run: dotnet tool restore
3432
- name: Build Debug
35-
run: dotnet build --no-restore
33+
run: dotnet build --no-restore -p:NoGen=true;
3634
- name: Build Release
37-
run: dotnet build --no-restore -c Release
35+
run: dotnet build --no-restore -p:NoGen=true; -c Release
3836
- uses: actions/upload-artifact@v4
3937
with:
4038
name: 'managed'

Coplt.Graphics.Core/Coplt.Graphics.Core.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<IsAotCompatible>true</IsAotCompatible>
1010
<RootNamespace>Coplt.Graphics</RootNamespace>
1111
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
12+
<NoGen>false</NoGen>
1213
</PropertyGroup>
1314

1415
<ItemGroup>
@@ -28,7 +29,7 @@
2829
<FFI_Output Include="./Native/Native.D3d12.cs"/>
2930
</ItemGroup>
3031

31-
<Target Name="FFI" BeforeTargets="PrepareForBuild" Inputs="@(FFI_Headers)" Outputs="@(FFI_Output)">
32+
<Target Name="FFI" BeforeTargets="PrepareForBuild" Inputs="@(FFI_Headers)" Outputs="@(FFI_Output)" Condition="'$(NoGen)' != 'true'">
3233
<Exec Command="ClangSharpPInvokeGenerator -std=c++23 @GenerateBinding.rsp"/>
3334
<Exec Command="ClangSharpPInvokeGenerator -std=c++23 @GenerateBinding.D3d12.rsp"/>
3435
</Target>

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Render Hardware Interface designed for c#
1414

1515
|Preview|Name|Description|
1616
|-|-|-|
17-
|<img src="./Examples/HelloTriangle/HelloTriangle.png" width="128"/>|[HelloTriangle](./Examples/HelloTriangle/HelloTriangle.md)|The most basic usage, basic swap chain creation, pipeline creation.<br/>No any resources, including vertex buffers.|
17+
|[<img src="./Examples/HelloTriangle/HelloTriangle.png" width="128"/>](./Examples/HelloTriangle/HelloTriangle.md)|[HelloTriangle](./Examples/HelloTriangle/HelloTriangle.md)|The most basic usage, basic swap chain creation, pipeline creation.<br/>No any resources, including vertex buffers.|
1818

1919
# Build
2020

0 commit comments

Comments
 (0)