Move assembly list to a separate file
This commit is contained in:
parent
edd43afeaf
commit
1a416f3305
2 changed files with 48 additions and 47 deletions
|
@ -4,4 +4,50 @@ 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 = new List<GAssembly>()
|
||||||
|
{
|
||||||
|
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"
|
||||||
|
}
|
||||||
|
};
|
||||||
}
|
}
|
49
build.cake
49
build.cake
|
@ -11,51 +11,6 @@ Settings.Assembly = Argument("Assembly", "");
|
||||||
|
|
||||||
var msbuildsettings = new DotNetCoreMSBuildSettings();
|
var msbuildsettings = new DotNetCoreMSBuildSettings();
|
||||||
var list = new List<GAssembly>();
|
var list = new List<GAssembly>();
|
||||||
var glist = new List<GAssembly>()
|
|
||||||
{
|
|
||||||
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"
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
// TASKS
|
// TASKS
|
||||||
|
|
||||||
|
@ -67,7 +22,7 @@ Task("Init")
|
||||||
msbuildsettings = msbuildsettings.WithProperty("Authors", "'GLibSharp Team'");
|
msbuildsettings = msbuildsettings.WithProperty("Authors", "'GLibSharp Team'");
|
||||||
|
|
||||||
// Add stuff to list
|
// Add stuff to list
|
||||||
foreach(var gassembly in glist)
|
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);
|
||||||
});
|
});
|
||||||
|
@ -125,7 +80,7 @@ Task("Build")
|
||||||
MSBuildSettings = msbuildsettings
|
MSBuildSettings = msbuildsettings
|
||||||
};
|
};
|
||||||
|
|
||||||
if (list.Count == glist.Count)
|
if (list.Count == Settings.AssemblyList.Count)
|
||||||
DotNetCoreBuild("Source/Libs/GtkSharp.sln", settings);
|
DotNetCoreBuild("Source/Libs/GtkSharp.sln", settings);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue