add test program for package jpeg

This commit is contained in:
Volker Grabsch 2010-04-21 13:40:53 +02:00
parent 79779db039
commit b9ee58881a
2 changed files with 28 additions and 0 deletions

23
src/jpeg-test.c Normal file
View File

@ -0,0 +1,23 @@
/* This file is part of mingw-cross-env. */
/* See doc/index.html for further information. */
#include <stdio.h>
#include <windows.h>
#include <jpeglib.h>
int main(int argc, char* argv[])
{
boolean test_boolean;
INT32 test_int32;
struct jpeg_decompress_struct cinfo;
(void)argc;
(void)argv;
test_boolean = TRUE;
test_int32 = 1;
jpeg_create_decompress(&cinfo);
jpeg_destroy_decompress(&cinfo);
return 0;
}

View File

@ -26,4 +26,9 @@ define $(PKG)_BUILD
--host='$(TARGET)' \
--disable-shared
$(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= man_MANS=
'$(TARGET)-gcc' \
-W -Wall -Werror -ansi -pedantic \
'$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-jpeg.exe' \
-ljpeg
endef