mirror of
https://github.com/ivabus/pantry
synced 2024-11-13 03:55:18 +03:00
+test cairo
This commit is contained in:
parent
134ee84ef2
commit
181090c2aa
|
@ -32,4 +32,12 @@ build:
|
||||||
sed -i.bak 's|/opt/.*/v.*/lib/libpcre.la||' {{prefix}}/lib/libcairo-gobject.la
|
sed -i.bak 's|/opt/.*/v.*/lib/libpcre.la||' {{prefix}}/lib/libcairo-gobject.la
|
||||||
fi
|
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
|
||||||
|
|
7
projects/cairographics.org/test.c
Normal file
7
projects/cairographics.org/test.c
Normal 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;
|
||||||
|
}
|
Loading…
Reference in a new issue