-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
stop using JLL-packaged introspection data
- Loading branch information
1 parent
c2e1262
commit 03c55fc
Showing
19 changed files
with
738 additions
and
600 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
[deps] | ||
EzXML = "8f5d6c58-4d21-5cfd-889c-e3ad7ee6a615" | ||
GI = "1830b3f8-56ad-42bc-ae49-7513e085da97" | ||
gdk_pixbuf_jll = "da03df04-f53b-5353-a52f-6a8b0620ced0" | ||
gobject_introspection_jll = "6306888c-5478-5f78-9aeb-34cb5688c579" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
# Generation scripts for constants, structs, and `G_` modules | ||
|
||
The scripts in this directory are used to generate code using GObject introspection. | ||
Introspection data for GLib (which includes GObject and Gio namespaces) and Cairo is packaged in `gobject_introspection_jll` for the x86_64-linux-gnu platform. The same is true for GdkPixbuf, which is packaged in `gdk_pixbuf_jll`. The script `gen_all.jl` uses JLL packaged data to generate code. The autogenerated code is created in `src/gen`. This should work for anyone on x86_64-linux-gnu. | ||
|
||
The long term plan is to do the same for the rest of the namespaces. So far this has proven to be a challenge. Currently, code for the other libraries (Graphene, Pango, and Gtk4) is generated using platform-installed libraries (outside JLL's) using the script `gen_rest.jl`. This has only been done so far on Fedora. | ||
|
||
For the platform-installed libraries, the version of the libraries used to generate code should ideally be the same as in the JLL's. | ||
The autogenerated code is created in `src/gen`. | ||
Currently, code is generated using platform-installed libraries (outside JLL's) using the script `gen_all.jl`. This has only been done so far on Fedora. | ||
The version of the platform-installed libraries used to generate code should ideally be the same as in the JLL's. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,19 @@ | ||
using gobject_introspection_jll, gdk_pixbuf_jll | ||
using GI | ||
using GI, EzXML | ||
|
||
# Generates code for libraries where introspection data is present in JLL's | ||
# This should work on any Linux machine | ||
# 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(gobject_introspection_jll) | ||
GI.prepend_search_path(gdk_pixbuf_jll) | ||
GI.prepend_search_path("/usr/lib64/girepository-1.0") | ||
include("gen_glib.jl") | ||
include("gen_gobject.jl") | ||
include("gen_gio.jl") | ||
include("gen_cairo.jl") | ||
include("gen_gdkpixbuf.jl") | ||
|
||
include("gen_pango.jl") | ||
include("gen_pangocairo.jl") | ||
include("gen_graphene.jl") | ||
include("gen_gsk.jl") | ||
include("gen_gdk4.jl") | ||
include("gen_gtk4.jl") | ||
include("gen_adwaita.jl") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.