diff options
author | Volker Grabsch <vog@notjusthosting.com> | 2010-10-10 11:46:35 (GMT) |
---|---|---|
committer | Volker Grabsch <vog@notjusthosting.com> | 2010-10-10 11:46:35 (GMT) |
commit | 7c3b5bd675845eedec98d25bce99ad16fa1b3dd7 (patch) | |
tree | eede680033ef664259a6bc0ae3ba62a0a2e15f9e | |
parent | 542b153ca9b7a863985ae5fded7e87dd6f5d1368 (diff) | |
download | mxe-7c3b5bd675845eedec98d25bce99ad16fa1b3dd7.zip mxe-7c3b5bd675845eedec98d25bce99ad16fa1b3dd7.tar.gz mxe-7c3b5bd675845eedec98d25bce99ad16fa1b3dd7.tar.bz2 |
add test program for package smpeg
-rw-r--r-- | src/smpeg-test.c | 18 | ||||
-rw-r--r-- | src/smpeg.mk | 5 |
2 files changed, 23 insertions, 0 deletions
diff --git a/src/smpeg-test.c b/src/smpeg-test.c new file mode 100644 index 0000000..787b212 --- /dev/null +++ b/src/smpeg-test.c @@ -0,0 +1,18 @@ +/* This file is part of mingw-cross-env. */ +/* See doc/index.html for further information. */ + +#include <smpeg.h> +#include <stdio.h> + +int main(int argc, char *argv[]) +{ + SMPEG_version v; + + (void)argc; + (void)argv; + + SMPEG_VERSION(&v); + printf("SMPEG version: %d.%d.%d\n", v.major, v.minor, v.patch); + + return 0; +} diff --git a/src/smpeg.mk b/src/smpeg.mk index d417205..e52db17 100644 --- a/src/smpeg.mk +++ b/src/smpeg.mk @@ -33,4 +33,9 @@ define $(PKG)_BUILD --disable-opengl-player \ CFLAGS='-ffriend-injection' $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= + + '$(TARGET)-gcc' \ + -W -Wall -Werror -std=c99 -pedantic \ + '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-smpeg.exe' \ + `'$(PREFIX)/$(TARGET)/bin/smpeg-config' --cflags --libs` endef |