Skip to content

Commit

Permalink
revert to gi-1.0 for typelib generation
Browse files Browse the repository at this point in the history
  • Loading branch information
DerryAlex committed Nov 2, 2024
1 parent ad6a087 commit 9abc92f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/typelib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ jobs:
sudo sed -i 's/^Types: deb$/Types: deb deb-src/' /etc/apt/sources.list.d/ubuntu.sources
sudo apt-get update
sudo apt-get install gir1.2-girepository-3.0-dev
sudo apt-get build-dep libglib2.0-dev-bin
# sudo apt-get build-dep libglib2.0-dev-bin
sudo apt-get build-dep gobject-introspection
- name: Generate typelibs
run: |
Expand Down
12 changes: 8 additions & 4 deletions lib/girepository-1.0/ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@

gir_version="0.20.1"

apt-get source glib2.0
cd $(ls -F | grep 'glib2.0' | grep '/$')
# apt-get source glib2.0
# cd $(ls -F | grep 'glib2.0' | grep '/$')
apt-get source gobject-introspection
cd $(ls -F | grep 'gobject-introspection' | grep '/$')
patch girepository/girnode.c ../girnode.patch || exit 1
meson setup build && cd build
meson compile
export PATH=$(pwd)/girepository/compiler:$(pwd)/girepository/decompiler:$(pwd)/girepository/inspector:${PATH}
# export PATH=$(pwd)/girepository/compiler:$(pwd)/girepository/decompiler:$(pwd)/girepository/inspector:${PATH}
cd ../..
export PATH=$(pwd)/tools:${PATH}

git clone https://github.com/gtk-rs/gir-files.git && cd gir-files
git checkout ${gir_version}
Expand All @@ -32,7 +35,8 @@ sed -i 's/gconstpointer/gpointer/g' Pango-1.0.gir
for gir in $(ls *.gir)
do
typelib=$(echo ${gir} | sed 's/.gir/.typelib/')
gi-compile-repository ${gir} -o ../${typelib} --includedir .
# gi-compile-repository ${gir} -o ../${typelib} --includedir .
g-ir-compiler ${gir} -o ../${typelib} --includedir .
done

cd ..

0 comments on commit 9abc92f

Please sign in to comment.