From 8776c22604c4c3001bb51f1a677975b5deeb07df Mon Sep 17 00:00:00 2001 From: Martin Lambers Date: Sat, 26 Jan 2013 12:14:16 +0100 Subject: package openexr: add link test --- src/openexr-test.cpp | 21 +++++++++++++++++++++ src/openexr.mk | 5 +++++ 2 files changed, 26 insertions(+) create mode 100644 src/openexr-test.cpp diff --git a/src/openexr-test.cpp b/src/openexr-test.cpp new file mode 100644 index 0000000..bb1292a --- /dev/null +++ b/src/openexr-test.cpp @@ -0,0 +1,21 @@ +/* + * This file is part of MXE. + * See index.html for further information. + */ + +#include +#include + +using namespace Imf; +using namespace Imath; + +int main(int argc, char *argv[]) +{ + (void)argc; + (void)argv; + + InputFile file("some-file.exr"); + Box2i dw = file.header().dataWindow(); + + return 0; +} diff --git a/src/openexr.mk b/src/openexr.mk index 859f4a1..b7914ab 100644 --- a/src/openexr.mk +++ b/src/openexr.mk @@ -51,4 +51,9 @@ define $(PKG)_BUILD -o b44ExpLogTable '$(1)/IlmImf/b44ExpLogTable' > '$(1)/IlmImf/b44ExpLogTable.h' $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= + + '$(TARGET)-g++' \ + -Wall -Wextra -std=gnu++0x \ + '$(2).cpp' -o '$(PREFIX)/$(TARGET)/bin/test-openexr.exe' \ + `'$(TARGET)-pkg-config' OpenEXR --cflags --libs` endef -- cgit v0.12