mirror of https://git.wownero.com/dsc/mxe.git
package openexr: add link test
This commit is contained in:
parent
537e0c986d
commit
8776c22604
|
@ -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;
|
||||
}
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue