From b9ee58881aafbc015d27ecbaf0a1fc794737ec3d Mon Sep 17 00:00:00 2001 From: Volker Grabsch Date: Wed, 21 Apr 2010 13:40:53 +0200 Subject: add test program for package jpeg --- src/jpeg-test.c | 23 +++++++++++++++++++++++ src/jpeg.mk | 5 +++++ 2 files changed, 28 insertions(+) create mode 100644 src/jpeg-test.c diff --git a/src/jpeg-test.c b/src/jpeg-test.c new file mode 100644 index 0000000..268087d --- /dev/null +++ b/src/jpeg-test.c @@ -0,0 +1,23 @@ +/* This file is part of mingw-cross-env. */ +/* See doc/index.html for further information. */ + +#include +#include +#include + +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; +} diff --git a/src/jpeg.mk b/src/jpeg.mk index 036a603..67bcd6f 100644 --- a/src/jpeg.mk +++ b/src/jpeg.mk @@ -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 -- cgit v0.12