Skip to content

Commit

Permalink
update c.zig
Browse files Browse the repository at this point in the history
  • Loading branch information
DerryAlex committed Aug 12, 2024
1 parent a2017dc commit f6a1db7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions test/abi/c_linux.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#include <gtk/gtk.h>
#include <glib-unix.h>
#include <gdk/wayland/gdkwayland.h>
#include <gdk/x11/gdkx.h>
2 changes: 1 addition & 1 deletion test/abi/ci.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/bash
pkg_rel=1 # used to trigger ci without actual changes
zig translate-c -cflags $(pkg-config --cflags gtk4) -- /usr/include/gtk-4.0/gtk/gtk.h -I/usr/include -I/usr/include/x86_64-linux-gnu/ >c_linux.zig
zig translate-c -cflags $(pkg-config --cflags gtk4) -- c_linux.h -I/usr/include -I/usr/include/x86_64-linux-gnu/ >c_linux.zig
patch c_linux.zig c_linux.patch

0 comments on commit f6a1db7

Please sign in to comment.