GtkSharp/CakeScripts/Settings.cs

57 lines
2 KiB
C#
Raw Normal View History

class Settings
{
public static ICakeContext Cake { get; set; }
public static string BuildTarget { get; set; }
public static string Assembly { get; set; }
2017-10-29 14:28:44 +00:00
public static List<GAssembly> AssemblyList { get; set; }
public static void Init()
2017-10-28 22:57:52 +00:00
{
2017-10-29 14:28:44 +00:00
AssemblyList = new List<GAssembly>()
2017-10-28 22:57:52 +00:00
{
2017-10-29 14:28:44 +00:00
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"
2017-10-28 22:57:52 +00:00
}
2017-10-29 14:28:44 +00:00
};
}
}