mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-15 04:39:07 +00:00
Conditionally include Svg.Skia and SVG provider
This commit is contained in:
@@ -15,6 +15,8 @@
|
|||||||
// You should have received a copy of the GNU General Public License
|
// You should have received a copy of the GNU General Public License
|
||||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
#if USESVGSKIA
|
||||||
|
|
||||||
using QuickLook.Common.Helpers;
|
using QuickLook.Common.Helpers;
|
||||||
using QuickLook.Common.Plugin;
|
using QuickLook.Common.Plugin;
|
||||||
using SkiaSharp;
|
using SkiaSharp;
|
||||||
@@ -59,3 +61,5 @@ internal class SvgProvider : ImageMagickProvider
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@@ -90,9 +90,11 @@ public class Plugin : IViewer
|
|||||||
AnimatedImage.AnimatedImage.Providers.Add(
|
AnimatedImage.AnimatedImage.Providers.Add(
|
||||||
new KeyValuePair<string[], Type>([".cur", ".ani"],
|
new KeyValuePair<string[], Type>([".cur", ".ani"],
|
||||||
typeof(CursorProvider)));
|
typeof(CursorProvider)));
|
||||||
|
#if USESVGSKIA
|
||||||
AnimatedImage.AnimatedImage.Providers.Add(
|
AnimatedImage.AnimatedImage.Providers.Add(
|
||||||
new KeyValuePair<string[], Type>([".svg"],
|
new KeyValuePair<string[], Type>([".svg"],
|
||||||
typeof(SvgProvider)));
|
typeof(SvgProvider)));
|
||||||
|
#endif
|
||||||
AnimatedImage.AnimatedImage.Providers.Add(
|
AnimatedImage.AnimatedImage.Providers.Add(
|
||||||
new KeyValuePair<string[], Type>(["*"],
|
new KeyValuePair<string[], Type>(["*"],
|
||||||
typeof(ImageMagickProvider)));
|
typeof(ImageMagickProvider)));
|
||||||
|
@@ -58,9 +58,6 @@
|
|||||||
<PackageReference Include="QuickLook.ImageGlass.WebP" Version="1.4.0">
|
<PackageReference Include="QuickLook.ImageGlass.WebP" Version="1.4.0">
|
||||||
<PrivateAssets>all</PrivateAssets>
|
<PrivateAssets>all</PrivateAssets>
|
||||||
</PackageReference>
|
</PackageReference>
|
||||||
<PackageReference Include="Svg.Skia" Version="3.0.3">
|
|
||||||
<PrivateAssets>all</PrivateAssets>
|
|
||||||
</PackageReference>
|
|
||||||
<PackageReference Include="Magick.NET-Q8-AnyCPU" Version="14.6.0">
|
<PackageReference Include="Magick.NET-Q8-AnyCPU" Version="14.6.0">
|
||||||
<PrivateAssets>all</PrivateAssets>
|
<PrivateAssets>all</PrivateAssets>
|
||||||
</PackageReference>
|
</PackageReference>
|
||||||
@@ -69,6 +66,12 @@
|
|||||||
</PackageReference>
|
</PackageReference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup Condition=" '$(DefineConstants)' != '' and $(DefineConstants.Contains('USESVGSKIA')) ">
|
||||||
|
<PackageReference Include="Svg.Skia" Version="3.0.3">
|
||||||
|
<PrivateAssets>all</PrivateAssets>
|
||||||
|
</PackageReference>
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="LibAPNG">
|
<Reference Include="LibAPNG">
|
||||||
<HintPath>.\LibAPNG.dll</HintPath>
|
<HintPath>.\LibAPNG.dll</HintPath>
|
||||||
|
Reference in New Issue
Block a user