diff options
author | Volker Grabsch <vog@notjusthosting.com> | 2010-02-16 02:18:23 (GMT) |
---|---|---|
committer | Volker Grabsch <vog@notjusthosting.com> | 2010-02-16 02:18:23 (GMT) |
commit | 0b1e593a495762c4b5a3bd063097bc981f087a4c (patch) | |
tree | 230d620befe11929f10c5d5f606c246a79e9e141 | |
parent | 7af76e7a89343eb3a523e3862fcecad2a3642cc6 (diff) | |
download | mxe-0b1e593a495762c4b5a3bd063097bc981f087a4c.zip mxe-0b1e593a495762c4b5a3bd063097bc981f087a4c.tar.gz mxe-0b1e593a495762c4b5a3bd063097bc981f087a4c.tar.bz2 |
test program for package librsvg
-rw-r--r-- | src/librsvg-test.c | 17 | ||||
-rw-r--r-- | src/librsvg.mk | 5 |
2 files changed, 22 insertions, 0 deletions
diff --git a/src/librsvg-test.c b/src/librsvg-test.c new file mode 100644 index 0000000..32d781c --- /dev/null +++ b/src/librsvg-test.c @@ -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; +} diff --git a/src/librsvg.mk b/src/librsvg.mk index 6215235..0dc552c 100644 --- a/src/librsvg.mk +++ b/src/librsvg.mk @@ -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 |