Skip to content

Commit

Permalink
SDL2-2.25.1
Browse files Browse the repository at this point in the history
  • Loading branch information
trifonovaa authored and trifonovaa committed May 1, 2024
1 parent df1dafa commit 7bc7c14
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 73 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
- uses: actions/checkout@v4
with:
repository: 'libsdl-org/SDL'
ref: 'SDL2'
ref: 'release-2.25.1'
- uses: actions/checkout@v4
with:
path: 'NAudio-Sdl2-Library'
Expand Down Expand Up @@ -122,7 +122,7 @@ jobs:
- uses: actions/checkout@v4
with:
repository: 'libsdl-org/SDL'
ref: 'SDL2'
ref: 'release-2.25.1'
- uses: actions/checkout@v4
with:
path: 'NAudio-Sdl2-Library'
Expand Down
139 changes: 71 additions & 68 deletions NAudio.Sdl2.Library.csproj
Original file line number Diff line number Diff line change
@@ -1,68 +1,71 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<OutputType>Library</OutputType>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<AssemblyTitle>NAudio.Sdl2.Library</AssemblyTitle>
<AssemblyName>NAudio.Sdl2.Library</AssemblyName>
<Description>libSDL2 native libraries for C#</Description>
<RootNamespace>NAudio.Sdl2.Library</RootNamespace>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<PackageReadmeFile>README.md</PackageReadmeFile>
</PropertyGroup>
<PropertyGroup Label="NuGet">
<Authors>ppy Pty Ltd &amp; flibitijibibo &amp; alextnull</Authors>
<Title>NAudio.Sdl2.Library</Title>
<PackageId>NAudio.Sdl2.Library</PackageId>
<PackageProjectUrl>https://github.com/alextnull/NAudio.Sdl2.Library</PackageProjectUrl>
<RepositoryUrl>https://github.com/alextnull/NAudio.Sdl2.Library</RepositoryUrl>
</PropertyGroup>
<ItemGroup>
<None Include="README.md" Pack="true" PackagePath="\"/>
<Content Include="$(MSBuildThisFileDirectory)native\win-x64\SDL2.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<PackagePath>runtimes/win-x64/native</PackagePath>
<Pack>true</Pack>
</Content>
<Content Include="$(MSBuildThisFileDirectory)native\win-arm64\SDL2.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<PackagePath>runtimes/win-arm64/native</PackagePath>
<Pack>true</Pack>
</Content>
<Content Include="$(MSBuildThisFileDirectory)native\win-x86\SDL2.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<PackagePath>runtimes/win-x86/native</PackagePath>
<Pack>true</Pack>
</Content>
<Content Include="$(MSBuildThisFileDirectory)native\osx-x64\libSDL2.dylib">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<PackagePath>runtimes/osx-x64/native</PackagePath>
<Pack>true</Pack>
</Content>
<Content Include="$(MSBuildThisFileDirectory)native\osx-arm64\libSDL2.dylib">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<PackagePath>runtimes/osx-arm64/native</PackagePath>
<Pack>true</Pack>
</Content>
<Content Include="$(MSBuildThisFileDirectory)native\linux-x64\libSDL2.so">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<PackagePath>runtimes/linux-x64/native</PackagePath>
<Pack>true</Pack>
</Content>
<Content Include="$(MSBuildThisFileDirectory)native\linux-x86\libSDL2.so">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<PackagePath>runtimes/linux-x86/native</PackagePath>
<Pack>true</Pack>
</Content>
<Content Include="$(MSBuildThisFileDirectory)native\ios\**\*">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<PackagePath>runtimes/ios/native</PackagePath>
<Pack>true</Pack>
</Content>
</ItemGroup>
<ItemGroup>
<Content Include="app.config">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
</Project>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<OutputType>Library</OutputType>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<AssemblyTitle>NAudio.Sdl2.Library</AssemblyTitle>
<AssemblyName>NAudio.Sdl2.Library</AssemblyName>
<Description>libSDL2 native libraries for C#</Description>
<RootNamespace>NAudio.Sdl2.Library</RootNamespace>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<PackageReadmeFile>README.md</PackageReadmeFile>
</PropertyGroup>
<PropertyGroup Label="NuGet">
<Authors>ppy Pty Ltd &amp; flibitijibibo &amp; alextnull</Authors>
<Title>NAudio.Sdl2.Library</Title>
<PackageId>NAudio.Sdl2.Library</PackageId>
<PackageProjectUrl>https://github.com/alextnull/NAudio.Sdl2.Library</PackageProjectUrl>
<RepositoryUrl>https://github.com/alextnull/NAudio.Sdl2.Library</RepositoryUrl>
<AssemblyVersion>2.25.1</AssemblyVersion>
<FileVersion>2.25.1</FileVersion>
<Version>2.25.1</Version>
</PropertyGroup>
<ItemGroup>
<None Include="README.md" Pack="true" PackagePath="\" />
<Content Include="$(MSBuildThisFileDirectory)native\win-x64\SDL2.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<PackagePath>runtimes/win-x64/native</PackagePath>
<Pack>true</Pack>
</Content>
<Content Include="$(MSBuildThisFileDirectory)native\win-arm64\SDL2.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<PackagePath>runtimes/win-arm64/native</PackagePath>
<Pack>true</Pack>
</Content>
<Content Include="$(MSBuildThisFileDirectory)native\win-x86\SDL2.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<PackagePath>runtimes/win-x86/native</PackagePath>
<Pack>true</Pack>
</Content>
<Content Include="$(MSBuildThisFileDirectory)native\osx-x64\libSDL2.dylib">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<PackagePath>runtimes/osx-x64/native</PackagePath>
<Pack>true</Pack>
</Content>
<Content Include="$(MSBuildThisFileDirectory)native\osx-arm64\libSDL2.dylib">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<PackagePath>runtimes/osx-arm64/native</PackagePath>
<Pack>true</Pack>
</Content>
<Content Include="$(MSBuildThisFileDirectory)native\linux-x64\libSDL2.so">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<PackagePath>runtimes/linux-x64/native</PackagePath>
<Pack>true</Pack>
</Content>
<Content Include="$(MSBuildThisFileDirectory)native\linux-x86\libSDL2.so">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<PackagePath>runtimes/linux-x86/native</PackagePath>
<Pack>true</Pack>
</Content>
<Content Include="$(MSBuildThisFileDirectory)native\ios\**\*">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<PackagePath>runtimes/ios/native</PackagePath>
<Pack>true</Pack>
</Content>
</ItemGroup>
<ItemGroup>
<Content Include="app.config">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
</Project>
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ This package contains native SDL2 libraries
Include the package using the `PackageReference` tag or simply install using the nuget package manager
```xml
<ItemGroup>
<PackageReference Include="NAudio.Sdl2.Library" Version="2.30.2" />
<PackageReference Include="NAudio.Sdl2.Library" Version="2.25.1" />
</ItemGroup>
```
---
# .NET Framework
Include the package using the `PackageReference` tag. Set `GeneratePathProperty` to `true` and `ExcludeAssets` to `all`.
```xml
<ItemGroup>
<PackageReference Include="NAudio.Sdl2.Library" Version="2.30.2" GeneratePathProperty="true" ExcludeAssets="all"/>
<PackageReference Include="NAudio.Sdl2.Library" Version="2.25.1" GeneratePathProperty="true" ExcludeAssets="all"/>
</ItemGroup>
```
---
Expand All @@ -35,4 +35,4 @@ Windows x64
<None Include="$(PkgNAudio_Sdl2_Library)\runtimes\win-x64\native\SDL2.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
```
```

0 comments on commit 7bc7c14

Please sign in to comment.