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<>nchez Acosta
Alex Launi
Alexandre Gomes
Alp Toker
Andr<64>s G. Aragoneses
Andr<64>s G. Aragoneses
Atsushi Eno
Ben Maurer
Ben Motmans
@ -17,7 +17,7 @@ Contributors:
Bob Smith
Brad Taylor
Cameron White
Carlos Mart<72>n Nieto
Carlos Mart<72>n Nieto
Charles Iliya Krempeaux
Chris Turchin
Christian Hergert
@ -60,20 +60,20 @@ Contributors:
Miguel de Icaza
Mike Gorse
Mike Kestner
Mike Kr<4B>ger
Mike Kr<4B>ger
Mirco Bauer
N<>stor Salceda
N<>stor Salceda
Olivier Dufour
Owen Fraser-Green
Paolo Molaro
Pedro Mart<72>nez Juli<6C>
Pedro Mart<72>nez Juli<6C>
Pete Johanson
Peter Williams
Rachel Hestilow
Radek Doulik
Raja R Harinath
Ricardo Fern<72>ndez Pascual
Rickard Edstr<74>m
Ricardo Fern<72>ndez Pascual
Rickard Edstr<74>m
Robert McQueen
Rodrigo Moya
Shane Landrum

View file

@ -4,8 +4,11 @@ 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 { get; set; }
public static List<GAssembly> AssemblyList = new List<GAssembly>()
public static void Init()
{
AssemblyList = new List<GAssembly>()
{
new GAssembly("GLibSharp")
{
@ -50,4 +53,5 @@ class Settings
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);