Mercurial > mxe-octave
changeset 754:3eedae9ff7dd
test program for package librsvg
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Tue, 16 Feb 2010 03:18:23 +0100 |
parents | 0dc1c1dadcd3 |
children | 7b15d99ad223 |
files | src/librsvg-test.c src/librsvg.mk |
diffstat | 2 files changed, 22 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/librsvg-test.c Tue Feb 16 03:18:23 2010 +0100 @@ -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; +}
--- a/src/librsvg.mk Tue Feb 16 03:14:49 2010 +0100 +++ b/src/librsvg.mk Tue Feb 16 03:18:23 2010 +0100 @@ -34,4 +34,9 @@ --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