Mercurial > mxe-octave
changeset 1434:5e1db3421f8e
simple test program for package mxml
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Sat, 27 Nov 2010 00:33:03 +0100 |
parents | 8d023da02dd6 |
children | 2bd1a0774842 181c89101ae0 |
files | src/mxml-test.c src/mxml.mk |
diffstat | 2 files changed, 26 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/mxml-test.c Sat Nov 27 00:33:03 2010 +0100 @@ -0,0 +1,21 @@ +/* This file is part of mingw-cross-env. */ +/* See doc/index.html for further information. */ + +#include <mxml.h> + +int main(int argc, char *argv[]) +{ + mxml_node_t *tree; + + (void)argc; + (void)argv; + + tree = mxmlLoadString(NULL, + "<?xml version=\"1.0\"?>\n" + "<test/>\n", + MXML_TEXT_CALLBACK); + + mxmlDelete(tree); + + return 0; +}
--- a/src/mxml.mk Sat Nov 27 00:26:52 2010 +0100 +++ b/src/mxml.mk Sat Nov 27 00:33:03 2010 +0100 @@ -30,4 +30,9 @@ $(INSTALL) -m644 '$(1)/mxml.h' '$(PREFIX)/$(TARGET)/include/' $(INSTALL) -d '$(PREFIX)/$(TARGET)/lib/pkgconfig' $(INSTALL) -m644 '$(1)/mxml.pc' '$(PREFIX)/$(TARGET)/lib/pkgconfig/' + + '$(TARGET)-gcc' \ + -W -Wall -Werror -ansi -pedantic \ + '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-mxml.exe' \ + `'$(TARGET)-pkg-config' mxml --cflags --libs` endef