mirror of https://git.wownero.com/dsc/mxe.git
add test program for package smpeg
This commit is contained in:
parent
542b153ca9
commit
7c3b5bd675
|
@ -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;
|
||||
}
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue