Skip to content

Commit 40fd435

Browse files
committed
Added binaries and readme and license
1 parent 7a19b23 commit 40fd435

File tree

14 files changed

+155
-37
lines changed

14 files changed

+155
-37
lines changed

Generator/Program.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@
22
using HexaGen;
33

44
CsCodeGeneratorSettings settings = CsCodeGeneratorSettings.Load("generator.json");
5-
settings.SystemIncludeFolders.Add("sdl");
65
CsCodeGenerator generator = new(settings);
7-
generator.Generate(new List<string>() { "include/SDL_image.h" }, "../../../../Hexa.NET.SDL2.Image/Generated");
6+
generator.Generate(["include/SDL_image.h"], "../../../../Hexa.NET.SDL2.Image/Generated");

Generator/generator.json

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,10 @@
88
"GeneratePlaceholderComments": false,
99
"GenerateMetadata": true,
1010
"ImportType": "VTable",
11-
"IncludeFolders": [
12-
"C:\\VulkanSDK\\1.3.250.0\\Include\\"
11+
"SystemIncludeFolders": [
12+
"sdl"
1313
],
1414
"ConstantNamingConvention": "Unknown",
15-
"KnownConstantNames": {
16-
},
17-
"KnownEnumValueNames": {
18-
"": ""
19-
},
20-
"KnownEnumPrefixes": {
21-
},
22-
"KnownExtensionPrefixes": {
23-
},
24-
"KnownExtensionNames": {
25-
},
26-
"KnownStructMethods": {
27-
},
2815
"IgnoredParts": [
2916
"bit",
3017
"PIXELTYPE",
@@ -34,15 +21,6 @@
3421
"SDLK",
3522
"KMOD"
3623
],
37-
"PreserveCaps": [
38-
""
39-
],
40-
"Keywords": [
41-
"object",
42-
"event",
43-
"lock"
44-
],
45-
4624
"IgnoredTypes": [ "SDL_SysWMinfo", "SDL_SysWMmsg", "SDL_AudioCVT" ],
4725
"TypeMappings": {
4826
"PFNGLGETTRANSFORMFEEDBACKI_VPROC": "PFNGLGETTRANSFORMFEEDBACKI_VPROC",
Lines changed: 95 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,99 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3-
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
5-
<ImplicitUsings>enable</ImplicitUsings>
6-
<Nullable>enable</Nullable>
7-
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
8-
</PropertyGroup>
9-
10-
<ItemGroup>
11-
<PackageReference Include="HexaGen.Runtime" Version="1.1.6" />
12-
<PackageReference Include="Hexa.NET.SDL2" Version="1.2.1" />
13-
</ItemGroup>
3+
<PropertyGroup>
4+
<TargetFrameworks>net7.0;net8.0;netstandard2.0;netstandard2.1</TargetFrameworks>
5+
<ImplicitUsings>enable</ImplicitUsings>
6+
<Nullable>enable</Nullable>
7+
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
8+
9+
<LangVersion>12</LangVersion>
10+
11+
<EnableTrimAnalyzer>true</EnableTrimAnalyzer>
12+
<EnableSingleFileAnalyzer>true</EnableSingleFileAnalyzer>
13+
<EnableAotAnalyzer>true</EnableAotAnalyzer>
14+
<IsAotCompatible>true</IsAotCompatible>
15+
16+
<PackageId>Hexa.NET.SDL2.Image</PackageId>
17+
<AssemblyVersion>2.8.2</AssemblyVersion>
18+
<PackageVersion>1.0.0</PackageVersion>
19+
<Description>A .NET Wrapper for SDL2 Image (v 2.8.2), generated with the HexaGen code generator. HexaGen allows users to access native libraries easily and with high performance.</Description>
20+
<PackageTags>SDL Image SDL2 Image Hexa HexaGen Source Generator C# .NET DotNet Sharp Windows macOS Android Bindings Wrapper Native</PackageTags>
21+
<Authors>Juna Meinhold</Authors>
22+
<Copyright>Copyright (c) 2023 Juna Meinhold</Copyright>
23+
<PackageProjectUrl>https://github.com/JunaMeinhold/HexaGen</PackageProjectUrl>
24+
<RepositoryUrl>https://github.com/JunaMeinhold/HexaGen</RepositoryUrl>
25+
<RepositoryType>git</RepositoryType>
26+
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
27+
<PackageReadmeFile>README.md</PackageReadmeFile>
28+
29+
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
30+
</PropertyGroup>
31+
32+
<ItemGroup>
33+
<PackageReference Include="HexaGen.Runtime" Version="1.1.6" />
34+
<PackageReference Include="Hexa.NET.SDL2" Version="1.2.1" />
35+
</ItemGroup>
36+
37+
<ItemGroup>
38+
<Content Include="../LICENSE.txt" Pack="true" PackagePath="/" />
39+
<Content Include="../README.md" Pack="true" PackagePath="/" />
40+
</ItemGroup>
41+
42+
<ItemGroup>
43+
<None Include="native\android-x64\libSDL2_image.so">
44+
<Link>runtimes\android-x64\native\%(RecursiveDir)%(Filename)%(Extension)</Link>
45+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
46+
<PackagePath>runtimes/android-x64/native</PackagePath>
47+
<Pack>true</Pack>
48+
</None>
49+
<None Include="native\android-arm64\libSDL2_image.so">
50+
<Link>runtimes\android-arm64\native\%(RecursiveDir)%(Filename)%(Extension)</Link>
51+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
52+
<PackagePath>runtimes/android-arm64/native</PackagePath>
53+
<Pack>true</Pack>
54+
</None>
55+
<None Include="native\osx-arm64\libSDL2_image.dylib">
56+
<Link>runtimes\osx-arm64\native\%(RecursiveDir)%(Filename)%(Extension)</Link>
57+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
58+
<PackagePath>runtimes/osx-arm64/native</PackagePath>
59+
<Pack>true</Pack>
60+
</None>
61+
<None Include="native\osx-x64\libSDL2_image.dylib">
62+
<Link>runtimes\osx-x64\native\%(RecursiveDir)%(Filename)%(Extension)</Link>
63+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
64+
<PackagePath>runtimes/osx-x64/native</PackagePath>
65+
<Pack>true</Pack>
66+
</None>
67+
<None Include="native\linux-arm64\libSDL2_image.so">
68+
<Link>runtimes\linux-arm64\native\%(RecursiveDir)%(Filename)%(Extension)</Link>
69+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
70+
<PackagePath>runtimes/linux-arm64/native</PackagePath>
71+
<Pack>true</Pack>
72+
</None>
73+
<None Include="native\linux-x64\libSDL2_image.so">
74+
<Link>runtimes\linux-x64\native\%(RecursiveDir)%(Filename)%(Extension)</Link>
75+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
76+
<PackagePath>runtimes/linux-x64/native</PackagePath>
77+
<Pack>true</Pack>
78+
</None>
79+
<None Include="native\win-arm64\SDL2_image.dll">
80+
<Link>runtimes\win-arm64\native\%(RecursiveDir)%(Filename)%(Extension)</Link>
81+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
82+
<PackagePath>runtimes/win-arm64/native</PackagePath>
83+
<Pack>true</Pack>
84+
</None>
85+
<None Include="native\win-x64\SDL2_image.dll">
86+
<Link>runtimes\win-x64\native\%(RecursiveDir)%(Filename)%(Extension)</Link>
87+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
88+
<PackagePath>runtimes/win-x64/native</PackagePath>
89+
<Pack>true</Pack>
90+
</None>
91+
<None Include="native\win-x86\SDL2_image.dll">
92+
<Link>runtimes\win-x86\native\%(RecursiveDir)%(Filename)%(Extension)</Link>
93+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
94+
<PackagePath>runtimes/win-x86/native</PackagePath>
95+
<Pack>true</Pack>
96+
</None>
97+
</ItemGroup>
1498

1599
</Project>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)