Skip to content

Commit

Permalink
GI: fix tests and add comments to generation scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
jwahlstrand committed Apr 7, 2024
1 parent e59e627 commit d3ea2c5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
3 changes: 0 additions & 3 deletions GI/test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ e=ns[:Application]

show(e)

d = GI.prop_dict(e)
@test length(d)==length(GI.get_properties(e))

a=ns[:Action]
@test length(GI.get_properties(a))==5

Expand Down
11 changes: 5 additions & 6 deletions gen/gen_all.jl
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
using gobject_introspection_jll, gdk_pixbuf_jll
using GI

# Generates code for libraries where introspection data is present in JLL's
# This should work on any Linux machine

GI.prepend_search_path(gobject_introspection_jll)
GI.prepend_search_path(gdk_pixbuf_jll)
include("gen_glib.jl")
include("gen_gobject.jl")
include("gen_gio.jl")
include("gen_cairo.jl")
#include("gen_pango.jl")
#include("gen_pangocairo.jl")
include("gen_gdkpixbuf.jl")
#include("gen_graphene.jl")
#include("gen_gsk.jl")
#include("gen_gdk4.jl")
#include("gen_gtk4.jl")

5 changes: 5 additions & 0 deletions gen/gen_rest.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
using GI, EzXML

# Generates code for libraries where we use introspection data outside JLL's
# This code is typically run on a recent version of Fedora where the library
# version is the same or close to what's present in Yggdrasil.

GI.prepend_search_path("/usr/lib64/girepository-1.0")
include("gen_pango.jl")
include("gen_pangocairo.jl")
Expand Down

0 comments on commit d3ea2c5

Please sign in to comment.