mirror of https://git.wownero.com/dsc/mxe.git
simple test program for package mxml
This commit is contained in:
parent
8053624005
commit
8469492843
|
@ -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;
|
||||
}
|
|
@ -30,4 +30,9 @@ define $(PKG)_BUILD
|
|||
$(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
|
||||
|
|
Loading…
Reference in New Issue