summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Lambers <marlam@marlam.de>2013-01-26 11:14:16 (GMT)
committerTony Theodore <tonyt@logyst.com>2013-02-06 05:57:57 (GMT)
commit8776c22604c4c3001bb51f1a677975b5deeb07df (patch)
tree22f16cf247dd4c8ac2c65fddb76deb8d1a91ca81
parent537e0c986da43987a29876ad76477414f653f703 (diff)
downloadmxe-8776c22604c4c3001bb51f1a677975b5deeb07df.zip
mxe-8776c22604c4c3001bb51f1a677975b5deeb07df.tar.gz
mxe-8776c22604c4c3001bb51f1a677975b5deeb07df.tar.bz2
package openexr: add link test
-rw-r--r--src/openexr-test.cpp21
-rw-r--r--src/openexr.mk5
2 files changed, 26 insertions, 0 deletions
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 <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;
+}
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