summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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