package libical: add test program

pull/13/head
Tony Theodore 13 years ago
parent 02da7c9589
commit cfee42395e

@ -0,0 +1,19 @@
/* This file is part of mingw-cross-env. */
/* See doc/index.html for further information. */
#include <stdio.h>
#include <libical/ical.h>
int main(int argc, char *argv[])
{
icalvalue *v;
char *str;
(void)argc;
(void)argv;
v = icalvalue_new_caladdress("cap://value/1");
str = icalvalue_as_ical_string_r(v);
printf("String: %s\n", str);
return 0;
}

@ -25,4 +25,9 @@ define $(PKG)_BUILD
--disable-shared
$(MAKE) -C '$(1)' -j '$(JOBS)'
$(MAKE) -C '$(1)' -j 1 install
'$(TARGET)-gcc' \
-W -Wall -Werror -ansi -pedantic \
'$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-libical.exe' \
-lical -lpthread
endef

Loading…
Cancel
Save