package openexr: add link test

This commit is contained in:
Martin Lambers 2013-01-26 12:14:16 +01:00 committed by Tony Theodore
parent 537e0c986d
commit 8776c22604
2 changed files with 26 additions and 0 deletions

21
src/openexr-test.cpp Normal file
View File

@ -0,0 +1,21 @@
/*
* This file is part of MXE.
* See index.html for further information.
*/
#include <ImfChannelList.h>
#include <ImfInputFile.h>
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;
}

View File

@ -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