Add package and assembly info

This commit is contained in:
cra0zy 2017-10-29 15:28:44 +01:00
parent 4379eecdf3
commit 32bf88c341
17 changed files with 93 additions and 180 deletions

18
AUTHORS
View File

@ -1,15 +1,15 @@
Maintainers:
Harry
Contributors:
Mike Kestner
Aaron Bockover
Age Bosma
Alan McGovern
Alejandro Sánchez Acosta
Alejandro S<EFBFBD>nchez Acosta
Alex Launi
Alexandre Gomes
Alp Toker
Andrés G. Aragoneses
Andr<EFBFBD>s G. Aragoneses
Atsushi Eno
Ben Maurer
Ben Motmans
@ -17,7 +17,7 @@ Contributors:
Bob Smith
Brad Taylor
Cameron White
Carlos Martín Nieto
Carlos Mart<EFBFBD>n Nieto
Charles Iliya Krempeaux
Chris Turchin
Christian Hergert
@ -60,20 +60,20 @@ Contributors:
Miguel de Icaza
Mike Gorse
Mike Kestner
Mike Krüger
Mike Kr<EFBFBD>ger
Mirco Bauer
Néstor Salceda
N<EFBFBD>stor Salceda
Olivier Dufour
Owen Fraser-Green
Paolo Molaro
Pedro Martínez Juliá
Pedro Mart<EFBFBD>nez Juli<6C>
Pete Johanson
Peter Williams
Rachel Hestilow
Radek Doulik
Raja R Harinath
Ricardo Fernández Pascual
Rickard Edström
Ricardo Fern<EFBFBD>ndez Pascual
Rickard Edstr<EFBFBD>m
Robert McQueen
Rodrigo Moya
Shane Landrum

View File

@ -4,50 +4,54 @@ class Settings
public static ICakeContext Cake { get; set; }
public static string BuildTarget { get; set; }
public static string Assembly { get; set; }
public static List<GAssembly> AssemblyList = new List<GAssembly>()
public static List<GAssembly> AssemblyList { get; set; }
public static void Init()
{
new GAssembly("GLibSharp")
AssemblyList = new List<GAssembly>()
{
NativeDeps = new[] {
"libglib-2.0.so.0", "libglib-2.0-0",
"libgobject-2.0.so.0", "libgobject-2.0-0",
"libgthread-2.0.so.0", "libgthread-2.0-0"
new GAssembly("GLibSharp")
{
NativeDeps = new[] {
"libglib-2.0.so.0", "libglib-2.0-0",
"libgobject-2.0.so.0", "libgobject-2.0-0",
"libgthread-2.0.so.0", "libgthread-2.0-0"
}
},
new GAssembly("GioSharp")
{
Deps = new[] { "GLibSharp" },
NativeDeps = new[] { "libgio-2.0.so.0", "libgio-2.0-0" }
},
new GAssembly("AtkSharp")
{
Deps = new[] { "GLibSharp" },
NativeDeps = new[] { "libatk-1.0.so.0", "libatk-1.0-0" },
ExtraArgs = "--abi-cs-usings=Atk,GLib"
},
new GAssembly("CairoSharp")
{
NativeDeps = new[] { "libcairo.so.2", "libcairo-2" }
},
new GAssembly("PangoSharp")
{
Deps = new[] { "GLibSharp", "CairoSharp" },
NativeDeps = new[] { "libpango-1.0.so.0", "libpango-1.0-0" }
},
new GAssembly("GdkSharp")
{
Deps = new[] { "GLibSharp", "GioSharp", "CairoSharp", "PangoSharp" },
NativeDeps = new[] {
"libgdk-3.so.0", "libgdk-3-0",
"libgdk_pixbuf-2.0.so.0", "libgdk_pixbuf-2.0-0"
}
},
new GAssembly("GtkSharp")
{
Deps = new[] { "GLibSharp", "GioSharp", "AtkSharp", "CairoSharp", "PangoSharp", "GdkSharp" },
NativeDeps = new[] { "libgtk-3.so.0", "libgtk-3-0" },
ExtraArgs = "--abi-cs-usings=Gtk,GLib"
}
},
new GAssembly("GioSharp")
{
Deps = new[] { "GLibSharp" },
NativeDeps = new[] { "libgio-2.0.so.0", "libgio-2.0-0" }
},
new GAssembly("AtkSharp")
{
Deps = new[] { "GLibSharp" },
NativeDeps = new[] { "libatk-1.0.so.0", "libatk-1.0-0" },
ExtraArgs = "--abi-cs-usings=Atk,GLib"
},
new GAssembly("CairoSharp")
{
NativeDeps = new[] { "libcairo.so.2", "libcairo-2" }
},
new GAssembly("PangoSharp")
{
Deps = new[] { "GLibSharp", "CairoSharp" },
NativeDeps = new[] { "libpango-1.0.so.0", "libpango-1.0-0" }
},
new GAssembly("GdkSharp")
{
Deps = new[] { "GLibSharp", "GioSharp", "CairoSharp", "PangoSharp" },
NativeDeps = new[] {
"libgdk-3.so.0", "libgdk-3-0",
"libgdk_pixbuf-2.0.so.0", "libgdk_pixbuf-2.0-0"
}
},
new GAssembly("GtkSharp")
{
Deps = new[] { "GLibSharp", "GioSharp", "AtkSharp", "CairoSharp", "PangoSharp", "GdkSharp" },
NativeDeps = new[] { "libgtk-3.so.0", "libgtk-3-0" },
ExtraArgs = "--abi-cs-usings=Gtk,GLib"
}
};
};
}
}

View File

@ -3,6 +3,10 @@
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<TargetFramework>netstandard2.0</TargetFramework>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<PackageProjectUrl>https://github.com/cra0zy/GtkSharp</PackageProjectUrl>
<RepositoryUrl>https://github.com/cra0zy/GtkSharp</RepositoryUrl>
<Description>AtkSharp is a C# wrapper for the Atk library.</Description>
<PackageTags>atk;atksharp;atk-sharp;wrapper</PackageTags>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<OutputPath>..\..\..\BuildOutput\Debug</OutputPath>

View File

@ -3,6 +3,10 @@
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<TargetFramework>netstandard2.0</TargetFramework>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<PackageProjectUrl>https://github.com/cra0zy/GtkSharp</PackageProjectUrl>
<RepositoryUrl>https://github.com/cra0zy/GtkSharp</RepositoryUrl>
<Description>CairoSharp is a C# wrapper for the Cairo library.</Description>
<PackageTags>cairo;cairosharp;cairo-sharp;wrapper</PackageTags>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<OutputPath>..\..\..\BuildOutput\Debug</OutputPath>

View File

@ -3,6 +3,10 @@
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<TargetFramework>netstandard2.0</TargetFramework>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<PackageProjectUrl>https://github.com/cra0zy/GtkSharp</PackageProjectUrl>
<RepositoryUrl>https://github.com/cra0zy/GtkSharp</RepositoryUrl>
<Description>GLibSharp is a C# wrapper for the GLib library.</Description>
<PackageTags>glib;glibsharp;glib-sharp;wrapper</PackageTags>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<OutputPath>..\..\..\BuildOutput\Debug</OutputPath>

View File

@ -3,6 +3,10 @@
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<TargetFramework>netstandard2.0</TargetFramework>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<PackageProjectUrl>https://github.com/cra0zy/GtkSharp</PackageProjectUrl>
<RepositoryUrl>https://github.com/cra0zy/GtkSharp</RepositoryUrl>
<Description>GdkSharp is a C# wrapper for the Gdk library.</Description>
<PackageTags>gdk;gdksharp;gdk-sharp;wrapper</PackageTags>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<OutputPath>..\..\..\BuildOutput\Debug</OutputPath>

View File

@ -1,9 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<TargetFramework>netstandard2.0</TargetFramework>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<PackageProjectUrl>https://github.com/cra0zy/GtkSharp</PackageProjectUrl>
<RepositoryUrl>https://github.com/cra0zy/GtkSharp</RepositoryUrl>
<Description>GioSharp is a C# wrapper for the Gio library.</Description>
<PackageTags>gio;giosharp;gio-sharp;wrapper</PackageTags>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<OutputPath>..\..\..\BuildOutput\Debug</OutputPath>
@ -20,5 +23,4 @@
<Content Include="linux-x64\libgio-2.0-0.so" PackagePath="runtimes\linux-x64\native" Visible="false" />
<Content Include="linux-x86\libgio-2.0-0.so" PackagePath="runtimes\linux-x86\native" Visible="false" />
</ItemGroup>
</Project>

View File

@ -4,6 +4,11 @@
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<TargetFramework>netstandard2.0</TargetFramework>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<PackageIconUrl>https://raw.githubusercontent.com/cra0zy/GtkSharp/Source/Libs/GtkSharp/Icon.png</PackageIconUrl>
<PackageProjectUrl>https://github.com/cra0zy/GtkSharp</PackageProjectUrl>
<RepositoryUrl>https://github.com/cra0zy/GtkSharp</RepositoryUrl>
<Description>GtkSharp is a C# wrapper for the Gtk library.</Description>
<PackageTags>gtk;gtksharp;gtk-sharp;wrapper</PackageTags>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<OutputPath>..\..\..\BuildOutput\Debug</OutputPath>

BIN
Source/Libs/GtkSharp/Icon.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

@ -3,6 +3,10 @@
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<TargetFramework>netstandard2.0</TargetFramework>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<PackageProjectUrl>https://github.com/cra0zy/GtkSharp</PackageProjectUrl>
<RepositoryUrl>https://github.com/cra0zy/GtkSharp</RepositoryUrl>
<Description>PangoSharp is a C# wrapper for the Pango library.</Description>
<PackageTags>pango;pangosharp;pango-sharp;wrapper</PackageTags>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<OutputPath>..\..\..\BuildOutput\Debug</OutputPath>

View File

@ -6,8 +6,8 @@
<title>Gtk template for CSharp</title>
<summary>A simple C# template for your .Net Core Gtk Application.</summary>
<description>A simple C# template for your .Net Core Gtk Application.</description>
<authors>cra0zy</authors>
<owners>cra0zy</owners>
<authors>GtkSharp Contributors</authors>
<owners>GtkSharp Contributors</owners>
<projectUrl>https://github.com/cra0zy/GtkSharp</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<releaseNotes></releaseNotes>

View File

@ -1,6 +1,6 @@
{
"$schema": "http://json.schemastore.org/template",
"author": "cra0zy",
"author": "GtkSharp Contributors",
"classifications": [
"Console"
],

View File

@ -1,37 +0,0 @@
using System;
using Gtk;
using UI = Gtk.Builder.ObjectAttribute;
namespace test
{
class MainWindow : Window
{
#pragma warning disable 0649
[UI] private Label _label1;
[UI] private Button _button1;
#pragma warning restore 0649
private int _counter;
public MainWindow() : this(new Builder("MainWindow.glade")) { }
private MainWindow(Builder builder) : base(builder.GetObject("MainWindow").Handle)
{
builder.Autoconnect(this);
DeleteEvent += OnDeleteEvent;
_button1.Clicked += Button1_Clicked;
}
private void OnDeleteEvent(object sender, DeleteEventArgs a)
{
Application.Quit();
}
private void Button1_Clicked(object sender, EventArgs a)
{
_counter++;
_label1.Text = "Hello World! This button has been clicked " + _counter + " time(s).";
}
}
}

View File

@ -1,46 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk+" version="3.18"/>
<object class="GtkWindow" id="MainWindow">
<property name="can_focus">False</property>
<property name="title" translatable="yes">Example Window</property>
<property name="default_width">480</property>
<property name="default_height">240</property>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="margin_left">4</property>
<property name="margin_right">4</property>
<property name="margin_top">4</property>
<property name="margin_bottom">4</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkLabel" id="_label1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Hello World!</property>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkButton" id="_button1">
<property name="label" translatable="yes">Click me!</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="receives_default">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
</object>
</child>
</object>
</interface>

View File

@ -1,23 +0,0 @@
using System;
using Gtk;
namespace test
{
class Program
{
[STAThread]
public static void Main(string[] args)
{
Application.Init();
var app = new Application("org.test.test", GLib.ApplicationFlags.None);
app.Register(GLib.Cancellable.Current);
var win = new MainWindow();
app.AddWindow(win);
win.Show();
Application.Run();
}
}
}

View File

@ -1,14 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<EmbeddedResource Include="MainWindow.glade">
<LogicalName>MainWindow.glade</LogicalName>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<PackageReference Include="GtkSharp" Version="3.2.0" />
</ItemGroup>
</Project>

View File

@ -17,11 +17,13 @@ var list = new List<GAssembly>();
Task("Init")
.Does(() =>
{
// Assign version
msbuildsettings = msbuildsettings.WithProperty("Version", "3.0.0.0");
msbuildsettings = msbuildsettings.WithProperty("Authors", "'GLibSharp Team'");
// Assign some common properties
msbuildsettings = msbuildsettings.WithProperty("Version", "3.22.24.0");
msbuildsettings = msbuildsettings.WithProperty("Authors", "'GtkSharp Contributors'");
msbuildsettings = msbuildsettings.WithProperty("PackageLicenseUrl", "'https://github.com/cra0zy/GtkSharp/blob/cakecore/LICENSE'");
// Add stuff to list
Settings.Init();
foreach(var gassembly in Settings.AssemblyList)
if(string.IsNullOrEmpty(Settings.Assembly) || Settings.Assembly == gassembly.Name)
list.Add(gassembly);