Checkpoint progress : generate.sh is now working.
This commit is contained in:
parent
b6b806ac80
commit
a0080977e9
6 changed files with 1850 additions and 29 deletions
|
@ -1,6 +1,5 @@
|
|||
namespace GtkSharp.SourceView
|
||||
namespace Gtk.Source
|
||||
{
|
||||
|
||||
using System;
|
||||
public partial class GtkSourceBuffer : Gtk.TextBuffer
|
||||
{
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -8,16 +8,17 @@
|
|||
<PackageTags>sourceview;sourceviewsharp;sourceview-sharp;wrapper</PackageTags>
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="GtkSharp" Version="3.22.25.56" />
|
||||
<PackageReference Include="GtkSharp" Version="3.22.25.98" />
|
||||
</ItemGroup>
|
||||
<!--<ItemGroup>
|
||||
<Compile Remove="Generated/GtkSharp.SourceView/GtkSourceGutterRendererLines.cs" />
|
||||
<Compile Remove="Generated/GtkSharp.SourceView/GtkSourceGutterRendererMarks.cs" />
|
||||
<Compile Remove="Generated/GtkSharp.SourceView/GtkSourceGutterRendererPixbuf.cs" />
|
||||
<Compile Remove="Generated/GtkSharp.SourceView/GtkSourceGutterRendererText.cs" />
|
||||
<Compile Remove="Generated/GtkSharp.SourceView/GtkSourceUndoManagerDefault.cs" />
|
||||
</ItemGroup>-->
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="..\Shared\*.cs">
|
||||
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Remove="SourceView-api.xml" />
|
||||
<None Remove="SourceView.metadata" />
|
||||
|
|
|
@ -11,21 +11,30 @@
|
|||
<attr path="/api/namespace/object[@cname='GtkSourceGutterRenderer']/signal[@name='QueryData']" name="name">DataQueried</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkSourceGutterRenderer']/signal[@name='QueryTooltip']" name="name">TooltipQueried</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkSourceGutterRenderer']/signal[@name='QueueDraw']" name="name">DrawQueued</attr>
|
||||
<attr path="/api/namespace/interface[@cname='GtkSourceCompletionProposal']/method[@name='Changed']" name="name">EmitChanged</attr>
|
||||
<attr path="/api/namespace/interface[@cname='GtkSourceUndoManager']/method[@name='CanRedoChanged']" name="name">EmitCanRedoChanged</attr>
|
||||
<attr path="/api/namespace/interface[@cname='GtkSourceUndoManager']/method[@name='CanUndoChanged']" name="name">EmitCanUndoChanged</attr>
|
||||
<remove-node path="/api/namespace/interface[@cname='GtkSourceStyleSchemeChooser']/class_struct[@cname='GtkSourceStyleSchemeChooserInterface']/method[@vm='get_style_scheme']" />
|
||||
<remove-node path="/api/namespace/interface[@cname='GtkSourceStyleSchemeChooser']/class_struct[@cname='GtkSourceStyleSchemeChooserInterface']/method[@vm='set_style_scheme']" />
|
||||
<attr path="/api/namespace/interface[@cname='GtkSourceCompletionProposal']/signal[@name='Changed']" name="name">EmitChanged</attr>
|
||||
<attr path="/api/namespace/interface[@cname='GtkSourceUndoManager']/signal[@name='CanRedoChanged']" name="name">EmitCanRedoChanged</attr>
|
||||
<attr path="/api/namespace/interface[@cname='GtkSourceUndoManager']/signal[@name='CanUndoChanged']" name="name">EmitCanUndoChanged</attr>
|
||||
<remove-node path="/api/namespace/object[@cname='GtkSourceCompletionModel']" />
|
||||
<!--<add-node path="/api"><symbol type="alias" cname="GdkRgba" name="GdkRGBA"/></add-node>
|
||||
<add-node path="/api"><symbol type="ownable" cname="cairo_t" name="Cairo.Context"/></add-node>
|
||||
<add-node path="/api"><symbol type="ownable" cname="variant" name="GLib.Variant"/></add-node>-->
|
||||
<attr path="/api/namespace/object[@cname='GtkSourceGutterRendererLines']" name="hidden">true</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkSourceGutterRendererMarks']" name="hidden">true</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkSourceGutterRendererPixbuf']" name="hidden">true</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkSourceGutterRendererText']" name="hidden">true</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkSourceUndoManagerDefault']" name="hidden">true</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkSourceSearchContext']/method[@name='Backward']/*/*[@name='match_start']" name="pass_as">ref</attr>
|
||||
<add-node path="/api/namespace/interface[@cname='GtkSourceEngine']"><method name="GetType" cname="gtk_source_completion_provider_get_type" shared="true"><return-type type="GType" /></method></add-node>
|
||||
<!--<attr path="/api/namespace/object[@cname='GtkSourceSearchContext']/method[@name='Backward']/*/*[@name='match_start']" name="pass_as">ref</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkSourceSearchContext']/method[@name='Backward']/*/*[@name='match_end']" name="pass_as">ref</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkSourceSearchContext']/method[@name='Backward']/*/*[@name='has_wrapped_around']" name="pass_as">out</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkSourceSearchContext']/method[@name='Forward']/*/*[@name='match_start']" name="pass_as">ref</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkSourceSearchContext']/method[@name='Forward']/*/*[@name='match_end']" name="pass_as">ref</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkSourceSearchContext']/method[@name='Forward']/*/*[@name='has_wrapped_around']" name="pass_as">out</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkSourceSearchContext']/method[@name='Forward']/*/*[@name='has_wrapped_around']" name="pass_as">out</attr>-->
|
||||
|
||||
<!-- GtkSourceBuffer has a property called can-undo and a method called CanUndo(), which both seem to serve the same purpose -->
|
||||
<remove-node path="/api/namespace/object[@cname='GtkSourceBuffer']/method[@cname='gtk_source_buffer_can_undo']" />
|
||||
<!-- Same for can-redo and CanRedo() -->
|
||||
<remove-node path="/api/namespace/object[@cname='GtkSourceBuffer']/method[@cname='gtk_source_buffer_can_redo']" />
|
||||
<remove-node path="/api/namespace/interface[@cname='GtkSourceStyleSchemeChooser']/property[@cname='style-scheme']" />
|
||||
<attr path="/api/namespace" name="library">Library.Source</attr>
|
||||
</metadata>
|
|
@ -1,7 +1,7 @@
|
|||
<gapi-parser-input>
|
||||
<api filename="SourceView-api.raw">
|
||||
<library name="libgtksourceview-4.so">
|
||||
<namespace name="Gtk.SourceView">
|
||||
<namespace name="Gtk.Source">
|
||||
<dir>gtksourceview-4.0.0/gtksourceview</dir>
|
||||
</namespace>
|
||||
</library>
|
||||
|
|
|
@ -1,12 +1,22 @@
|
|||
#!/usr/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
outdir=Generated
|
||||
sourcever=4.0.0
|
||||
|
||||
wget http://ftp.acc.umu.se/pub/GNOME/sources/gtksourceview/4.0/gtksourceview-4.0.0.tar.xz
|
||||
tar xf gtksourceview-4.0.0.tar.xz
|
||||
clear
|
||||
wget http://ftp.acc.umu.se/pub/GNOME/sources/gtksourceview/4.0/gtksourceview-$sourcever.tar.xz
|
||||
tar xf gtksourceview-$sourcever.tar.xz
|
||||
|
||||
gapi3-parser SourceView.source
|
||||
gapi3-fixup --api=SourceView-api.xml --metadata=SourceView.metadata
|
||||
gapi3-codegen --outdir=Generated `pkg-config --cflags gtk-sharp-3.0` --generate SourceView-api.xml
|
||||
dotnet build
|
||||
if [ -d $outdir ];
|
||||
then
|
||||
rm -rf $outdir
|
||||
fi
|
||||
|
||||
rm gtksourceview-4.0.0.tar.xz
|
||||
rm -rf gtksourceview-4.0.0
|
||||
../../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
|
||||
dotnet build -v m
|
||||
|
||||
rm gtksourceview-$sourcever.tar.xz
|
||||
rm -rf gtksourceview-$sourcever
|
||||
|
|
Loading…
Reference in a new issue