Skip to content

Commit

Permalink
Optimize x64;arm64, remove unused license
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruben2776 committed Sep 19, 2024
1 parent ab0a0ed commit 3f8beca
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 208 deletions.
9 changes: 9 additions & 0 deletions src/PicView.Avalonia.MacOS/PicView.Avalonia.MacOS.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<!--If you are willing to use Windows/MacOS native APIs you will need to create 3 projects.
One for Windows with net7.0-windows TFM, one for MacOS with net7.0-macos and one with net7.0 TFM for Linux.-->
<TargetFramework>net9.0</TargetFramework>
<Platforms>x64;arm64</Platforms>
<Nullable>enable</Nullable>
<BuiltInComInteropSupport>true</BuiltInComInteropSupport>
<ApplicationManifest>app.manifest</ApplicationManifest>
Expand All @@ -16,6 +17,14 @@
<DebugType>none</DebugType>
</PropertyGroup>

<PropertyGroup Condition="'$(Platform)' == 'x64'">
<PlatformTarget>x64</PlatformTarget>
</PropertyGroup>

<PropertyGroup Condition="'$(Platform)' == 'arm64'">
<PlatformTarget>ARM64</PlatformTarget>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Avalonia.Desktop" Version="11.2.0-beta2" />
<PackageReference Include="Avalonia.Headless.XUnit" Version="11.2.0-beta2" />
Expand Down
10 changes: 9 additions & 1 deletion src/PicView.Avalonia.Win32/PicView.Avalonia.Win32.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<OptimizationPreference>Speed</OptimizationPreference>
<EnableUnsafeUTF7Encoding>false</EnableUnsafeUTF7Encoding>
<HttpActivityPropagationSupport>false</HttpActivityPropagationSupport>
<PlatformTarget>x64</PlatformTarget>
<Platforms>x64;arm64</Platforms>
<ImplicitUsings>enable</ImplicitUsings>
<Product>PicView</Product>
<Company>Ruben Hyldgaard Negendahl</Company>
Expand All @@ -35,6 +35,14 @@
</AvaloniaResource>
</ItemGroup>

<PropertyGroup Condition="'$(Platform)' == 'x64'">
<PlatformTarget>x64</PlatformTarget>
</PropertyGroup>

<PropertyGroup Condition="'$(Platform)' == 'arm64'">
<PlatformTarget>ARM64</PlatformTarget>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Avalonia.Desktop" Version="11.2.0-beta2" />
<PackageReference Include="Avalonia.Headless.XUnit" Version="11.2.0-beta2" />
Expand Down
11 changes: 9 additions & 2 deletions src/PicView.Avalonia/PicView.Avalonia.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<Company>Ruben Hyldgaard Negendahl</Company>
<Product>PicView</Product>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<PlatformTarget>x64</PlatformTarget>
<Platforms>x64;arm64</Platforms>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<IsAotCompatible>False</IsAotCompatible>
Expand All @@ -23,6 +23,14 @@
<AvaloniaXamlIlDebuggerLaunch>False</AvaloniaXamlIlDebuggerLaunch>
</PropertyGroup>

<PropertyGroup Condition="'$(Platform)' == 'x64'">
<PlatformTarget>x64</PlatformTarget>
</PropertyGroup>

<PropertyGroup Condition="'$(Platform)' == 'arm64'">
<PlatformTarget>ARM64</PlatformTarget>
</PropertyGroup>


<ItemGroup>
<AvaloniaResource Include="Assets\**" />
Expand Down Expand Up @@ -66,7 +74,6 @@
<!--Condition below is needed to remove Avalonia.Diagnostics package from build output in Release configuration.-->
<PackageReference Condition="'$(Configuration)' == 'Debug'" Include="Avalonia.Diagnostics" Version="11.2.0-beta2" />
<PackageReference Include="Avalonia.Svg.Skia" Version="11.1.0.1" />
<PackageReference Include="Magick.NET-Q8-OpenMP-x64" Version="14.0.0" />
</ItemGroup>

<ItemGroup>
Expand Down
201 changes: 0 additions & 201 deletions src/PicView.Core/Licenses/XamlAnimatedGif LICENSE.txt

This file was deleted.

11 changes: 8 additions & 3 deletions src/PicView.Core/PicView.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@
<DebugType>none</DebugType>
</PropertyGroup>

<PropertyGroup Condition="'$(Platform)' == 'x64'">
<PlatformTarget>x64</PlatformTarget>
</PropertyGroup>

<PropertyGroup Condition="'$(Platform)' == 'arm64'">
<PlatformTarget>ARM64</PlatformTarget>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Magick.NET-Q8-OpenMP-x64" Version="14.0.0" />
<PackageReference Include="SharpCompress" Version="0.38.0" />
Expand Down Expand Up @@ -67,9 +75,6 @@
<None Update="Licenses\LICENSE.txt">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Licenses\XamlAnimatedGif LICENSE.txt">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>

<ItemGroup>
Expand Down
10 changes: 9 additions & 1 deletion src/PicView.WindowsNT/PicView.WindowsNT.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFramework>net9.0-windows10.0.22621.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<PlatformTarget>x64</PlatformTarget>
<Platforms>x64;arm64</Platforms>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<LangVersion>preview</LangVersion>
</PropertyGroup>
Expand All @@ -20,6 +20,14 @@
<DebugType>none</DebugType>
</PropertyGroup>

<PropertyGroup Condition="'$(Platform)' == 'x64'">
<PlatformTarget>x64</PlatformTarget>
</PropertyGroup>

<PropertyGroup Condition="'$(Platform)' == 'arm64'">
<PlatformTarget>ARM64</PlatformTarget>
</PropertyGroup>

<ItemGroup>
<Folder Include="Copy\" />
</ItemGroup>
Expand Down

0 comments on commit 3f8beca

Please sign in to comment.