Mercurial > mxe-octave
changeset 895:09113bc06d72
add test program for package jpeg
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Wed, 21 Apr 2010 13:40:53 +0200 |
parents | 0b78f6aabad8 |
children | 5e1d76c5caf9 |
files | src/jpeg-test.c src/jpeg.mk |
diffstat | 2 files changed, 28 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/jpeg-test.c Wed Apr 21 13:40:53 2010 +0200 @@ -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; +}
--- a/src/jpeg.mk Wed Apr 21 11:12:58 2010 +0200 +++ b/src/jpeg.mk Wed Apr 21 13:40:53 2010 +0200 @@ -26,4 +26,9 @@ --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