add test program for package smpeg

This commit is contained in:
Volker Grabsch 2010-10-10 13:46:35 +02:00
parent 542b153ca9
commit 7c3b5bd675
2 changed files with 23 additions and 0 deletions

18
src/smpeg-test.c Normal file
View File

@ -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;
}

View File

@ -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