Skip to content

Commit

Permalink
config: update proj to copy native win lib to output dir
Browse files Browse the repository at this point in the history
  • Loading branch information
CalvinWilkinson committed Jan 22, 2025
1 parent b285f84 commit 4b7603a
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions CASL/CASL.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<Nullable>enable</Nullable>

<!--Update this for preview releases-->
<Version>1.0.0-preview.20</Version>
<Version>1.0.0-preview.201</Version>

<!--Update this for preview releases-->
<FileVersion>1.0.0-preview.20</FileVersion>
Expand Down Expand Up @@ -40,9 +40,6 @@
</ItemGroup>

<ItemGroup>
<Compile Remove="OpenAL\libs\**" />
<EmbeddedResource Remove="OpenAL\libs\**" />
<None Remove="OpenAL\libs\**" />
<None Include="..\README.md" Pack="true" PackagePath="\" />
<None Include="..\Images\casl-logo.ico" Pack="true" PackagePath="\" />
<None Include="..\Images\casl-logo.png" Pack="true" PackagePath="\" />
Expand Down Expand Up @@ -73,8 +70,15 @@
<PackageReference Include="System.IO.Abstractions" Version="21.0.29" />
</ItemGroup>

<!--ADD STUFF TO WINDOWS NUGET PACKAGE-->
<!--TODO: CREATE A WINDOW SPECIFIC SOLUTION AND PROJECT CONFIGS-->
<ItemGroup>
<Content Include="OpenAL\libs\linux-x64\libopenal.so.1" />
<Content Include="OpenAL\libs\win-x64\soft_oal.dll">
<Link>soft_oal.dll</Link>
<CopyToOutputDirectory Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">Always</CopyToOutputDirectory>
</Content>
</ItemGroup>

<!--ADD NATIVE LIBS TO THE NUGET PACKAGE-->
<Target Name="AddNativeWindowLibsToNugetPackage" AfterTargets="Build" Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU' Or '$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<ItemGroup>
<!--WINDOWS-->
Expand Down

0 comments on commit 4b7603a

Please sign in to comment.