+test gdk-pixbuf

This commit is contained in:
Max Howell 2022-09-01 21:02:45 -04:00
parent 1d3fad1921
commit bbc22ab67f
2 changed files with 17 additions and 1 deletions

View file

@ -37,4 +37,14 @@ build:
ninja install
# ^^ man pages break the build due to needing some other dep
test: true #FIXME
#TODO we should read pkg config and add to the env ffs
test:
dependencies:
tea.xyz/gx/cc: c99
freedesktop.org/pkg-config: ^0.29
script: |
cc test.c $CFLAGS $LDFLAGS
./a.out
env:
CFLAGS: $(pkg-config --cflags gdk-pixbuf-2.0)
LDFLAGS: $(pkg-config --libs gdk-pixbuf-2.0)

View file

@ -0,0 +1,6 @@
#include <gdk-pixbuf/gdk-pixbuf.h>
int main(int argc, char *argv[]) {
GType type = gdk_pixbuf_get_type();
return 0;
}