From a0080977e9029a7c3b8a09819183448e2b83600f Mon Sep 17 00:00:00 2001 From: Drew Holzworth Date: Tue, 7 Jul 2020 09:43:47 +1000 Subject: [PATCH] Checkpoint progress : generate.sh is now working. --- Source/Libs/SourceView/GtkSourceBuffer.cs | 3 +- Source/Libs/SourceView/SourceView-api.raw | 1806 +++++++++++++++++++- Source/Libs/SourceView/SourceView.csproj | 17 +- Source/Libs/SourceView/SourceView.metadata | 23 +- Source/Libs/SourceView/SourceView.source | 2 +- Source/Libs/SourceView/generate.sh | 28 +- 6 files changed, 1850 insertions(+), 29 deletions(-) diff --git a/Source/Libs/SourceView/GtkSourceBuffer.cs b/Source/Libs/SourceView/GtkSourceBuffer.cs index 82ee48ed0..30bca91ba 100644 --- a/Source/Libs/SourceView/GtkSourceBuffer.cs +++ b/Source/Libs/SourceView/GtkSourceBuffer.cs @@ -1,6 +1,5 @@ -namespace GtkSharp.SourceView +namespace Gtk.Source { - using System; public partial class GtkSourceBuffer : Gtk.TextBuffer { diff --git a/Source/Libs/SourceView/SourceView-api.raw b/Source/Libs/SourceView/SourceView-api.raw index 9bad88e03..45b5682ab 100644 --- a/Source/Libs/SourceView/SourceView-api.raw +++ b/Source/Libs/SourceView/SourceView-api.raw @@ -6,7 +6,7 @@ Please DO NOT MODIFY THIS FILE, modify .metadata files instead. --> - + @@ -174,6 +174,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -260,6 +296,70 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -323,6 +423,18 @@ + + + + + + + + + + + + @@ -368,6 +480,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -378,6 +517,14 @@ + + + + + + + + @@ -407,6 +554,210 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -489,6 +840,57 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -509,6 +911,26 @@ + + + + + + + + + + + + + + + + + + + + @@ -516,6 +938,17 @@ + + + + + + + + + + + @@ -533,6 +966,52 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -648,6 +1127,51 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -659,6 +1183,71 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -673,6 +1262,89 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -682,6 +1354,45 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -785,6 +1496,143 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -814,6 +1662,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -823,6 +1702,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -834,6 +1747,48 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -843,13 +1798,59 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -858,6 +1859,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + @@ -888,6 +1913,68 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -907,6 +1994,201 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -920,6 +2202,126 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -932,6 +2334,55 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -939,7 +2390,51 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -963,6 +2458,18 @@ + + + + + + + + + + + + @@ -974,6 +2481,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + @@ -983,6 +2514,10 @@ + + + + @@ -992,6 +2527,10 @@ + + + + @@ -1001,6 +2540,46 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1112,6 +2691,179 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1135,7 +2887,44 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1181,6 +2970,19 @@ + + + + + + + + + + + + + diff --git a/Source/Libs/SourceView/SourceView.csproj b/Source/Libs/SourceView/SourceView.csproj index 7388895e8..d22e327a8 100644 --- a/Source/Libs/SourceView/SourceView.csproj +++ b/Source/Libs/SourceView/SourceView.csproj @@ -8,16 +8,17 @@ sourceview;sourceviewsharp;sourceview-sharp;wrapper AnyCPU + - + - + + + + %(RecursiveDir)%(Filename)%(Extension) + + + diff --git a/Source/Libs/SourceView/SourceView.metadata b/Source/Libs/SourceView/SourceView.metadata index c0d25486f..8753dc402 100644 --- a/Source/Libs/SourceView/SourceView.metadata +++ b/Source/Libs/SourceView/SourceView.metadata @@ -11,21 +11,30 @@ DataQueried TooltipQueried DrawQueued - EmitChanged - EmitCanRedoChanged - EmitCanUndoChanged - - + EmitChanged + EmitCanRedoChanged + EmitCanUndoChanged + true true true true true - ref + + + + + + + + + Library.Source \ No newline at end of file diff --git a/Source/Libs/SourceView/SourceView.source b/Source/Libs/SourceView/SourceView.source index eee36e243..b90fb8326 100644 --- a/Source/Libs/SourceView/SourceView.source +++ b/Source/Libs/SourceView/SourceView.source @@ -1,7 +1,7 @@ - + gtksourceview-4.0.0/gtksourceview diff --git a/Source/Libs/SourceView/generate.sh b/Source/Libs/SourceView/generate.sh index 561b93be3..824b00a8e 100755 --- a/Source/Libs/SourceView/generate.sh +++ b/Source/Libs/SourceView/generate.sh @@ -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 \ No newline at end of file +../../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