-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
14 changed files
with
143 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[submodule "externals/SVG"] | ||
path = externals/SVG | ||
url = https://github.com/wieslawsoltes/SVG.git | ||
[submodule "externals/resvg"] | ||
path = externals/resvg | ||
url = https://github.com/wieslawsoltes/resvg.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<ItemGroup> | ||
<PackageReference Include="Svg" Version="3.4.6" /> | ||
<PackageReference Include="Svg" Version="3.4.4" /> | ||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Diagnostics; | ||
using System.IO; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
Microsoft Public License (Ms-PL) | ||
|
||
This license governs use of the accompanying software. If you use the software, you accept this license. If you do not accept the license, do not use the software. | ||
|
||
1. Definitions | ||
|
||
The terms "reproduce," "reproduction," "derivative works," and "distribution" have the same meaning here as under U.S. copyright law. | ||
|
||
A "contribution" is the original software, or any additions or changes to the software. | ||
|
||
A "contributor" is any person that distributes its contribution under this license. | ||
|
||
"Licensed patents" are a contributor's patent claims that read directly on its contribution. | ||
|
||
2. Grant of Rights | ||
|
||
(A) Copyright Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free copyright license to reproduce its contribution, prepare derivative works of its contribution, and distribute its contribution or any derivative works that you create. | ||
|
||
(B) Patent Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free license under its licensed patents to make, have made, use, sell, offer for sale, import, and/or otherwise dispose of its contribution in the software or derivative works of the contribution in the software. | ||
|
||
3. Conditions and Limitations | ||
|
||
(A) No Trademark License- This license does not grant you rights to use any contributors' name, logo, or trademarks. | ||
|
||
(B) If you bring a patent claim against any contributor over patents that you claim are infringed by the software, your patent license from such contributor to the software ends automatically. | ||
|
||
(C) If you distribute any portion of the software, you must retain all copyright, patent, trademark, and attribution notices that are present in the software. | ||
|
||
(D) If you distribute any portion of the software in source code form, you may do so only under this license by including a complete copy of this license with your distribution. If you distribute any portion of the software in compiled or object code form, you may only do so under a license that complies with this license. | ||
|
||
(E) The software is licensed "as-is." You bear the risk of using it. The contributors give no express warranties, guarantees or conditions. You may have additional consumer rights under your local laws which this license cannot change. To the extent permitted under your local laws, the contributors exclude the implied warranties of merchantability, fitness for a particular purpose and non-infringement. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
using System; | ||
|
||
[assembly: CLSCompliant(false)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<OutputType>Library</OutputType> | ||
<TargetFrameworks>netstandard2.0;net6.0;net8.0</TargetFrameworks> | ||
<EnableDefaultCompileItems>False</EnableDefaultCompileItems> | ||
<EnableDefaultItems>False</EnableDefaultItems> | ||
<GenerateAssemblyInfo>True</GenerateAssemblyInfo> | ||
<NoWarn>CS1591;SYSLIB0014</NoWarn> | ||
<IsPackable>True</IsPackable> | ||
<Nullable>disable</Nullable> | ||
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles> | ||
<CompilerGeneratedFilesOutputPath>$(BaseIntermediateOutputPath)\$(Configuration)\$(TargetFramework)\GeneratedFiles</CompilerGeneratedFilesOutputPath> | ||
<DefineConstants>$(DefineConstants);NO_SDC</DefineConstants> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<Description>Custom build of the SVG rendering library.</Description> | ||
<PackageId>Svg.Custom</PackageId> | ||
<PackageLicenseExpression>MS-PL</PackageLicenseExpression> | ||
<PackageTags>svg;vector graphics;rendering;2d;graphics;geometry;shapes</PackageTags> | ||
</PropertyGroup> | ||
|
||
<Import Project="..\..\build\Base.props" /> | ||
<Import Project="..\..\build\SourceLink.props" /> | ||
<Import Project="..\..\build\SignAssembly.props" /> | ||
<Import Project="..\..\build\ReferenceAssemblies.props" /> | ||
|
||
<PropertyGroup> | ||
<SvgSourcesBasePath>..\..\externals\SVG</SvgSourcesBasePath> | ||
<!--<SvgSourcesBasePath>..\..\..\SVG</SvgSourcesBasePath>--> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<!-- https://github.com/vvvv/SVG/blob/master/Source/SvgDtdResolver.cs#L32 --> | ||
<EmbeddedResource Include="$(SvgSourcesBasePath)\Source\Resources\svg11.dtd"> | ||
<Link>Resources\svg11.dtd</Link> | ||
<LogicalName>Svg.Resources.svg11.dtd</LogicalName> | ||
</EmbeddedResource> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<Compile Include="**\*.cs" Exclude="bin\**;obj\**" /> | ||
<Compile Include="$(SvgSourcesBasePath)\Source\**\*.cs" Exclude="$(SvgSourcesBasePath)\Source\obj\**" /> | ||
<Compile Remove="$(SvgSourcesBasePath)\Source\Properties\AssemblyInfo.cs" /> | ||
<Compile Remove="$(SvgSourcesBasePath)\Source\Resources\svg11.dtd" /> | ||
</ItemGroup> | ||
|
||
<PropertyGroup Condition="'$(TargetFramework)'=='netstandard2.0'"> | ||
<DefineConstants>$(DefineConstants);NETSTANDARD;NETSTANDARD20</DefineConstants> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="'$(TargetFramework)'=='net6.0'"> | ||
<DefineConstants>$(DefineConstants);NETCORE;NET6</DefineConstants> | ||
</PropertyGroup> | ||
|
||
<ItemGroup Condition="'$(TargetFramework)'=='netstandard2.0'"> | ||
<PackageReference Include="System.Memory" Version="4.5.5" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="ExCSS" Version="4.2.3" /> | ||
</ItemGroup> | ||
|
||
<PropertyGroup> | ||
<DefineConstants>$(DefineConstants);USE_SOURCE_GENERATORS</DefineConstants> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="$(SvgSourcesBasePath)\Generators\Svg.Generators.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" /> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters