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

View file

@ -4,50 +4,54 @@ class Settings
public static ICakeContext Cake { get; set; } public static ICakeContext Cake { get; set; }
public static string BuildTarget { get; set; } public static string BuildTarget { get; set; }
public static string Assembly { 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()
{ {
new GAssembly("GLibSharp") AssemblyList = new List<GAssembly>()
{ {
NativeDeps = new[] { new GAssembly("GLibSharp")
"libglib-2.0.so.0", "libglib-2.0-0", {
"libgobject-2.0.so.0", "libgobject-2.0-0", NativeDeps = new[] {
"libgthread-2.0.so.0", "libgthread-2.0-0" "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> <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<TargetFramework>netstandard2.0</TargetFramework> <TargetFramework>netstandard2.0</TargetFramework>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> <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>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' "> <PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<OutputPath>..\..\..\BuildOutput\Debug</OutputPath> <OutputPath>..\..\..\BuildOutput\Debug</OutputPath>

View file

@ -3,6 +3,10 @@
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<TargetFramework>netstandard2.0</TargetFramework> <TargetFramework>netstandard2.0</TargetFramework>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> <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>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' "> <PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<OutputPath>..\..\..\BuildOutput\Debug</OutputPath> <OutputPath>..\..\..\BuildOutput\Debug</OutputPath>

View file

@ -3,6 +3,10 @@
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<TargetFramework>netstandard2.0</TargetFramework> <TargetFramework>netstandard2.0</TargetFramework>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> <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>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' "> <PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<OutputPath>..\..\..\BuildOutput\Debug</OutputPath> <OutputPath>..\..\..\BuildOutput\Debug</OutputPath>

View file

@ -3,6 +3,10 @@
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<TargetFramework>netstandard2.0</TargetFramework> <TargetFramework>netstandard2.0</TargetFramework>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> <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>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' "> <PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<OutputPath>..\..\..\BuildOutput\Debug</OutputPath> <OutputPath>..\..\..\BuildOutput\Debug</OutputPath>

View file

@ -1,9 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<TargetFramework>netstandard2.0</TargetFramework> <TargetFramework>netstandard2.0</TargetFramework>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> <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>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' "> <PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<OutputPath>..\..\..\BuildOutput\Debug</OutputPath> <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-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" /> <Content Include="linux-x86\libgio-2.0-0.so" PackagePath="runtimes\linux-x86\native" Visible="false" />
</ItemGroup> </ItemGroup>
</Project> </Project>

View file

@ -4,6 +4,11 @@
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<TargetFramework>netstandard2.0</TargetFramework> <TargetFramework>netstandard2.0</TargetFramework>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> <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>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' "> <PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<OutputPath>..\..\..\BuildOutput\Debug</OutputPath> <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> <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<TargetFramework>netstandard2.0</TargetFramework> <TargetFramework>netstandard2.0</TargetFramework>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> <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>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' "> <PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<OutputPath>..\..\..\BuildOutput\Debug</OutputPath> <OutputPath>..\..\..\BuildOutput\Debug</OutputPath>

View file

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

View file

@ -1,6 +1,6 @@
{ {
"$schema": "http://json.schemastore.org/template", "$schema": "http://json.schemastore.org/template",
"author": "cra0zy", "author": "GtkSharp Contributors",
"classifications": [ "classifications": [
"Console" "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") Task("Init")
.Does(() => .Does(() =>
{ {
// Assign version // Assign some common properties
msbuildsettings = msbuildsettings.WithProperty("Version", "3.0.0.0"); msbuildsettings = msbuildsettings.WithProperty("Version", "3.22.24.0");
msbuildsettings = msbuildsettings.WithProperty("Authors", "'GLibSharp Team'"); msbuildsettings = msbuildsettings.WithProperty("Authors", "'GtkSharp Contributors'");
msbuildsettings = msbuildsettings.WithProperty("PackageLicenseUrl", "'https://github.com/cra0zy/GtkSharp/blob/cakecore/LICENSE'");
// Add stuff to list // Add stuff to list
Settings.Init();
foreach(var gassembly in Settings.AssemblyList) foreach(var gassembly in Settings.AssemblyList)
if(string.IsNullOrEmpty(Settings.Assembly) || Settings.Assembly == gassembly.Name) if(string.IsNullOrEmpty(Settings.Assembly) || Settings.Assembly == gassembly.Name)
list.Add(gassembly); list.Add(gassembly);