test program for package librsvg

This commit is contained in:
Volker Grabsch 2010-02-16 03:18:23 +01:00
parent 7af76e7a89
commit 0b1e593a49
2 changed files with 22 additions and 0 deletions

17
src/librsvg-test.c Normal file
View File

@ -0,0 +1,17 @@
/* This file is part of mingw-cross-env. */
/* See doc/index.html for further information. */
#include <librsvg/rsvg.h>
int main(int argc, char* argv[])
{
RsvgHandle* handle;
(void)argc;
(void)argv;
handle = rsvg_handle_new();
rsvg_handle_free(handle);
return 0;
}

View File

@ -34,4 +34,9 @@ define $(PKG)_BUILD
--without-croco \
--without-x
$(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
'$(TARGET)-gcc' \
-W -Wall -Werror -ansi -pedantic \
'$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-librsvg.exe' \
`'$(TARGET)-pkg-config' librsvg-2.0 --cflags --libs`
endef