From dc1410b51192eb168cf67bfa14dd81a2b590b52b Mon Sep 17 00:00:00 2001 From: Drew Holzworth Date: Tue, 7 Jul 2020 12:21:51 +1000 Subject: [PATCH] Let's see if we can integrate sourceview code generation into cake --- CakeScripts/Settings.cake | 4 ++++ .../SourceView/{SourceView-api.raw => SourceView-api.xml} | 0 Source/Libs/SourceView/SourceView.source | 2 +- Source/Libs/SourceView/generate.sh | 1 - 4 files changed, 5 insertions(+), 2 deletions(-) rename Source/Libs/SourceView/{SourceView-api.raw => SourceView-api.xml} (100%) diff --git a/CakeScripts/Settings.cake b/CakeScripts/Settings.cake index 419f5b3ee..9cf47a98a 100644 --- a/CakeScripts/Settings.cake +++ b/CakeScripts/Settings.cake @@ -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" }, } }; } diff --git a/Source/Libs/SourceView/SourceView-api.raw b/Source/Libs/SourceView/SourceView-api.xml similarity index 100% rename from Source/Libs/SourceView/SourceView-api.raw rename to Source/Libs/SourceView/SourceView-api.xml diff --git a/Source/Libs/SourceView/SourceView.source b/Source/Libs/SourceView/SourceView.source index b90fb8326..e1730d22c 100644 --- a/Source/Libs/SourceView/SourceView.source +++ b/Source/Libs/SourceView/SourceView.source @@ -1,5 +1,5 @@ - + gtksourceview-4.0.0/gtksourceview diff --git a/Source/Libs/SourceView/generate.sh b/Source/Libs/SourceView/generate.sh index 824b00a8e..35a7172ed 100755 --- a/Source/Libs/SourceView/generate.sh +++ b/Source/Libs/SourceView/generate.sh @@ -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