Let's see if we can integrate sourceview code generation into cake

This commit is contained in:
Drew Holzworth 2020-07-07 12:21:51 +10:00
parent 7eae2a3f6d
commit dc1410b511
No known key found for this signature in database
GPG Key ID: 931DFD9C2A605512
4 changed files with 5 additions and 2 deletions

View File

@ -34,6 +34,10 @@ class Settings
{
Deps = new[] { "GLibSharp", "GioSharp", "AtkSharp", "CairoSharp", "PangoSharp", "GdkSharp" },
ExtraArgs = "--abi-cs-usings=Gtk,GLib"
},
new GAssembly("SourceView")
{
Deps = new[] { "GdkSharp" },
}
};
}

View File

@ -1,5 +1,5 @@
<gapi-parser-input>
<api filename="SourceView-api.raw">
<api filename="SourceView-api.xml">
<library name="libgtksourceview-4.so">
<namespace name="Gtk.Source">
<dir>gtksourceview-4.0.0/gtksourceview</dir>

View File

@ -12,7 +12,6 @@ then
fi
../../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/GapiCodegen.dll --outdir=$outdir --assembly-name=SourceView `pkg-config --cflags gtk-sharp-3.0` --generate SourceView-api.xml