Let's see if we can integrate sourceview code generation into cake
This commit is contained in:
parent
7eae2a3f6d
commit
dc1410b511
4 changed files with 5 additions and 2 deletions
|
@ -34,6 +34,10 @@ class Settings
|
||||||
{
|
{
|
||||||
Deps = new[] { "GLibSharp", "GioSharp", "AtkSharp", "CairoSharp", "PangoSharp", "GdkSharp" },
|
Deps = new[] { "GLibSharp", "GioSharp", "AtkSharp", "CairoSharp", "PangoSharp", "GdkSharp" },
|
||||||
ExtraArgs = "--abi-cs-usings=Gtk,GLib"
|
ExtraArgs = "--abi-cs-usings=Gtk,GLib"
|
||||||
|
},
|
||||||
|
new GAssembly("SourceView")
|
||||||
|
{
|
||||||
|
Deps = new[] { "GdkSharp" },
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<gapi-parser-input>
|
<gapi-parser-input>
|
||||||
<api filename="SourceView-api.raw">
|
<api filename="SourceView-api.xml">
|
||||||
<library name="libgtksourceview-4.so">
|
<library name="libgtksourceview-4.so">
|
||||||
<namespace name="Gtk.Source">
|
<namespace name="Gtk.Source">
|
||||||
<dir>gtksourceview-4.0.0/gtksourceview</dir>
|
<dir>gtksourceview-4.0.0/gtksourceview</dir>
|
||||||
|
|
|
@ -12,7 +12,6 @@ then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
../../OldStuff/parser/gapi3-parser SourceView.source
|
../../OldStuff/parser/gapi3-parser SourceView.source
|
||||||
cp SourceView-api.raw SourceView-api.xml
|
|
||||||
|
|
||||||
dotnet ../../../BuildOutput/Tools/GapiFixup.dll --api=SourceView-api.xml --metadata=SourceView.metadata
|
dotnet ../../../BuildOutput/Tools/GapiFixup.dll --api=SourceView-api.xml --metadata=SourceView.metadata
|
||||||
dotnet ../../../BuildOutput/Tools/GapiCodegen.dll --outdir=$outdir --assembly-name=SourceView `pkg-config --cflags gtk-sharp-3.0` --generate SourceView-api.xml
|
dotnet ../../../BuildOutput/Tools/GapiCodegen.dll --outdir=$outdir --assembly-name=SourceView `pkg-config --cflags gtk-sharp-3.0` --generate SourceView-api.xml
|
||||||
|
|
Loading…
Reference in a new issue