+test cairo

This commit is contained in:
Max Howell 2022-09-02 10:57:48 -04:00
parent 134ee84ef2
commit 181090c2aa
2 changed files with 16 additions and 1 deletions

View file

@ -32,4 +32,12 @@ build:
sed -i.bak 's|/opt/.*/v.*/lib/libpcre.la||' {{prefix}}/lib/libcairo-gobject.la
fi
test: true #FIXME
rm -rf {{prefix}}/share # docs are online
test:
dependencies:
tea.xyz/gx/cc: c99
script: |
cc test.c -I{{prefix}}/include/cairo -lcairo
./a.out
#FIXME env should add that include path via pkg-config look up

View file

@ -0,0 +1,7 @@
#include <cairo.h>
int main(int argc, char *argv[]) {
cairo_surface_t *surface = cairo_image_surface_create(CAIRO_FORMAT_ARGB32, 600, 400);
cairo_t *context = cairo_create(surface);
return 0;
}