Skip to content

Commit 0503cca

Browse files
committed
Merge remote-tracking branch 'origin/develop/3.0' into feature/input-3.0
2 parents 116ec2d + 27afc20 commit 0503cca

541 files changed

Lines changed: 91164 additions & 17621 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/dotnet.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
os: windows-latest
6868
name: win-x64
6969
- rid: linux-x64
70-
os: ubuntu-20.04
70+
os: ubuntu-22.04
7171
name: linux-x64
7272
- rid: osx-arm64
7373
os: macos-latest

.github/workflows/native.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ permissions:
77
contents: write
88
env:
99
# A space-separated list of paths to native libraries to build.
10-
NATIVE_LIBRARY_PATHS: "sources/SDL/Native"
10+
NATIVE_LIBRARY_PATHS: "sources/SDL/Native sources/OpenAL/Soft.Native"
1111
# A space-separated list of submodule paths for each native library path. Use _ if a submodule is not used - this must
1212
# match the number of spaces in NATIVE_LIBRARY_PATHS.
13-
NATIVE_LIBRARY_SUBMODULE_PATHS: "eng/submodules/sdl"
13+
NATIVE_LIBRARY_SUBMODULE_PATHS: "eng/submodules/sdl eng/submodules/openal-soft"
1414
# A space-separated list of shorthands to the native library paths that will build the native library for each native
1515
# library path. This must match the number of spaces in NATIVE_LIBRARY_PATHS. If a shorthand builds multiple native
1616
# binary paths, these will be deduplicated.
17-
NATIVE_LIBRARY_SHORTHANDS: "SDL"
17+
NATIVE_LIBRARY_SHORTHANDS: "SDL OpenAL-Soft"
1818
jobs:
1919
prerequisites:
2020
name: PR Check
@@ -61,13 +61,15 @@ jobs:
6161
build:
6262
needs: [prerequisites]
6363
strategy:
64+
fail-fast: false
6465
matrix:
6566
flat: ${{ fromJSON(needs.prerequisites.outputs.matrix_strategy) }}
6667
runs-on: ${{ (startsWith(matrix.flat.runtime, 'osx') || startsWith(matrix.flat.runtime, 'ios') || startsWith(matrix.flat.runtime, 'tvos')) && 'macos-latest' || startsWith(matrix.flat.runtime, 'win') && 'windows-latest' || 'ubuntu-latest' }}
6768
name: ${{ matrix.flat.target }} / ${{ matrix.flat.runtime }}
6869
steps:
6970
- uses: actions/checkout@v3
70-
- run: |
71+
- name: Build
72+
run: |
7173
echo "https://github.com/actions/upload-artifact/issues/174" > .workaround-${{ matrix.flat.target }}-${{ matrix.flat.runtime }}.txt
7274
${{ format('.{0}{1}', startsWith(matrix.flat.runtime, 'win') && '\' || '/', matrix.flat.exec) }}
7375
working-directory: ${{ matrix.flat.dir }}

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@
1313
[submodule "eng/submodules/silk.net-2.x"]
1414
path = eng/submodules/silk.net-2.x
1515
url = https://github.com/dotnet/Silk.NET
16+
[submodule "eng/submodules/openal-soft"]
17+
path = eng/submodules/openal-soft
18+
url = https://github.com/kcat/openal-soft

Directory.Build.targets

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,4 +270,7 @@
270270
</ItemGroup>
271271
<Copy SourceFiles="@(SilkThisRidItems)" DestinationFiles="@(SilkThisRidItems->'$(OutDir)%(TargetPath)')" />
272272
</Target>
273+
274+
<!-- DSL dogfooding -->
275+
<Import Project="$(MSBuildThisFileDirectory)sources/Core/Core/Silk.NET.Core.targets" Condition="'$(SilkDSLExempt)' != 'true' and '$(SilkNativePackage)' != 'true' and '$(SilkMetapackage)' != 'true'" />
273276
</Project>

Directory.Packages.props

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,20 @@
55
<PackageVersion Include="DotNet.ReproducibleBuilds.Isolated" Version="1.1.1" />
66
<PackageVersion Include="Microsoft.CodeAnalysis.PublicApiAnalyzers" Version="3.3.4" />
77
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
8+
<PackageVersion Include="NAudio.Core" Version="2.2.1" />
89
<PackageVersion Include="NUnit3TestAdapter" Version="4.6.0" />
910
<PackageVersion Include="NUnit.Analyzers" Version="4.4.0" />
1011
<PackageVersion Include="coverlet.collector" Version="6.0.2" />
1112
<PackageVersion Include="NUnit" Version="4.2.2" />
1213
<PackageVersion Include="xunit" Version="2.9.2" />
1314
<PackageVersion Include="xunit.runner.visualstudio" Version="2.8.2" />
14-
1515
<!-- eng/benchmarks -->
1616
<PackageVersion Include="BenchmarkDotNet" Version="0.14.0" />
17-
1817
<!-- Silk.NET.Core -->
1918
<PackageVersion Include="Fody" Version="6.8.2" PrivateAssets="all" />
2019
<PackageVersion Include="InlineIL.Fody" Version="1.9.0" PrivateAssets="all" />
21-
2220
<!-- Analyzers -->
2321
<PackageVersion Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.4" />
24-
2522
<!-- SilkTouch -->
2623
<PackageVersion Include="ClangSharp.PInvokeGenerator" Version="18.1.0.2" />
2724
<PackageVersion Include="CSharpier.Core" Version="0.30.2" />
@@ -39,14 +36,12 @@
3936
<PackageVersion Include="Microsoft.VisualStudio.Setup.Configuration.Interop" Version="3.12.2149" />
4037
<PackageVersion Include="System.CommandLine" Version="2.0.0-beta4.22272.1" />
4138
<PackageVersion Include="System.IO.Hashing" Version="9.0.0" />
42-
4339
<!-- This is not used but it is used transitively and the version pulled in has a vulnerability -->
4440
<PackageVersion Include="System.Formats.Asn1" Version="9.0.0" />
45-
4641
<!-- SilkTouch Unit Tests -->
4742
<PackageVersion Include="Silk.NET.BuildTools" Version="2.22.0" />
4843
<PackageVersion Include="System.Linq.Async" Version="6.0.1" />
4944
<PackageVersion Include="Verify.DiffPlex" Version="3.1.2" />
5045
<PackageVersion Include="Verify.NUnit" Version="28.3.2" />
5146
</ItemGroup>
52-
</Project>
47+
</Project>

Silk.NET.sln

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,17 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Windowing", "Windowing", "{
102102
EndProject
103103
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Silk.NET.Windowing", "sources\Windowing\Windowing\Silk.NET.Windowing.csproj", "{EF07CBB5-D253-4CA9-A5DA-8B3DF2B0DF8E}"
104104
EndProject
105-
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Input", "Input", "{33ED9765-8C36-4A9D-95E8-AF037FE104B3}"
105+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "OpenAL", "OpenAL", "{AF13F7C9-4EE2-403E-B3D2-C4C2E45D9EF3}"
106106
EndProject
107-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Silk.NET.Input", "sources\Input\Input\Silk.NET.Input.csproj", "{49A42CE3-94C5-4239-B0FC-F1FF8D7AAADA}"
107+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Silk.NET.OpenAL", "sources\OpenAL\OpenAL\Silk.NET.OpenAL.csproj", "{1FFFDD72-D023-441C-AF49-F1EA78FF7DE9}"
108108
EndProject
109-
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Input", "Input", "{4E0EF53A-76BC-4729-8E3B-4768E86E357E}"
109+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "examples", "examples", "{6077EDD4-F16F-4CA4-B72E-E4627D64B104}"
110110
EndProject
111-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Silk.NET.Input.UnitTests", "tests\Input\Input\Silk.NET.Input.UnitTests.csproj", "{00B9B6E6-776E-480C-B3ED-D6420C5B4E8E}"
111+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "CSharp", "CSharp", "{12B4D1CB-8938-4EC4-8895-79C4E6ABD1E8}"
112+
EndProject
113+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "OpenAL", "OpenAL", "{662A1AEC-91F2-48FA-AA29-6F27038D30F2}"
114+
EndProject
115+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tutorial001.HelloSound", "examples\CSharp\OpenAL\Tutorial001.HelloSound\Tutorial001.HelloSound.csproj", "{946C912C-5BBB-446A-A566-0D1696D19F59}"
112116
EndProject
113117
Global
114118
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -176,14 +180,14 @@ Global
176180
{EF07CBB5-D253-4CA9-A5DA-8B3DF2B0DF8E}.Debug|Any CPU.Build.0 = Debug|Any CPU
177181
{EF07CBB5-D253-4CA9-A5DA-8B3DF2B0DF8E}.Release|Any CPU.ActiveCfg = Release|Any CPU
178182
{EF07CBB5-D253-4CA9-A5DA-8B3DF2B0DF8E}.Release|Any CPU.Build.0 = Release|Any CPU
179-
{49A42CE3-94C5-4239-B0FC-F1FF8D7AAADA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
180-
{49A42CE3-94C5-4239-B0FC-F1FF8D7AAADA}.Debug|Any CPU.Build.0 = Debug|Any CPU
181-
{49A42CE3-94C5-4239-B0FC-F1FF8D7AAADA}.Release|Any CPU.ActiveCfg = Release|Any CPU
182-
{49A42CE3-94C5-4239-B0FC-F1FF8D7AAADA}.Release|Any CPU.Build.0 = Release|Any CPU
183-
{00B9B6E6-776E-480C-B3ED-D6420C5B4E8E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
184-
{00B9B6E6-776E-480C-B3ED-D6420C5B4E8E}.Debug|Any CPU.Build.0 = Debug|Any CPU
185-
{00B9B6E6-776E-480C-B3ED-D6420C5B4E8E}.Release|Any CPU.ActiveCfg = Release|Any CPU
186-
{00B9B6E6-776E-480C-B3ED-D6420C5B4E8E}.Release|Any CPU.Build.0 = Release|Any CPU
183+
{1FFFDD72-D023-441C-AF49-F1EA78FF7DE9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
184+
{1FFFDD72-D023-441C-AF49-F1EA78FF7DE9}.Debug|Any CPU.Build.0 = Debug|Any CPU
185+
{1FFFDD72-D023-441C-AF49-F1EA78FF7DE9}.Release|Any CPU.ActiveCfg = Release|Any CPU
186+
{1FFFDD72-D023-441C-AF49-F1EA78FF7DE9}.Release|Any CPU.Build.0 = Release|Any CPU
187+
{946C912C-5BBB-446A-A566-0D1696D19F59}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
188+
{946C912C-5BBB-446A-A566-0D1696D19F59}.Debug|Any CPU.Build.0 = Debug|Any CPU
189+
{946C912C-5BBB-446A-A566-0D1696D19F59}.Release|Any CPU.ActiveCfg = Release|Any CPU
190+
{946C912C-5BBB-446A-A566-0D1696D19F59}.Release|Any CPU.Build.0 = Release|Any CPU
187191
EndGlobalSection
188192
GlobalSection(SolutionProperties) = preSolution
189193
HideSolutionNode = FALSE
@@ -216,10 +220,11 @@ Global
216220
{F16C0AB9-DE7E-4C09-9EE9-DAA8B8E935A6} = {EC4D7B06-D277-4411-BD7B-71A6D37683F0}
217221
{FE4414F8-5370-445D-9F24-C3AD3223F299} = {DD29EA8F-B1A6-45AA-8D2E-B38DA56D9EF6}
218222
{EF07CBB5-D253-4CA9-A5DA-8B3DF2B0DF8E} = {FE4414F8-5370-445D-9F24-C3AD3223F299}
219-
{33ED9765-8C36-4A9D-95E8-AF037FE104B3} = {DD29EA8F-B1A6-45AA-8D2E-B38DA56D9EF6}
220-
{49A42CE3-94C5-4239-B0FC-F1FF8D7AAADA} = {33ED9765-8C36-4A9D-95E8-AF037FE104B3}
221-
{4E0EF53A-76BC-4729-8E3B-4768E86E357E} = {A5578D12-9E77-4647-8C22-0DBD17760BFF}
222-
{00B9B6E6-776E-480C-B3ED-D6420C5B4E8E} = {4E0EF53A-76BC-4729-8E3B-4768E86E357E}
223+
{AF13F7C9-4EE2-403E-B3D2-C4C2E45D9EF3} = {DD29EA8F-B1A6-45AA-8D2E-B38DA56D9EF6}
224+
{1FFFDD72-D023-441C-AF49-F1EA78FF7DE9} = {AF13F7C9-4EE2-403E-B3D2-C4C2E45D9EF3}
225+
{12B4D1CB-8938-4EC4-8895-79C4E6ABD1E8} = {6077EDD4-F16F-4CA4-B72E-E4627D64B104}
226+
{662A1AEC-91F2-48FA-AA29-6F27038D30F2} = {12B4D1CB-8938-4EC4-8895-79C4E6ABD1E8}
227+
{946C912C-5BBB-446A-A566-0D1696D19F59} = {662A1AEC-91F2-48FA-AA29-6F27038D30F2}
223228
EndGlobalSection
224229
GlobalSection(ExtensibilityGlobals) = postSolution
225230
SolutionGuid = {78D2CF6A-60A1-43E3-837B-00B73C9DA384}

0 commit comments

Comments
 (0)