summaryrefslogtreecommitdiff
path: root/render/Jamfile
diff options
context:
space:
mode:
Diffstat (limited to 'render/Jamfile')
-rwxr-xr-x[-rw-r--r--]render/Jamfile11
1 files changed, 9 insertions, 2 deletions
diff --git a/render/Jamfile b/render/Jamfile
index ca199ab..7c9704b 100644..100755
--- a/render/Jamfile
+++ b/render/Jamfile
@@ -18,15 +18,22 @@ InstallBin $(DESTDIR)$(PREFIX)/bin : $(Executables) ;
#InstallFile $(DESTDIR)$(PREFIX)/h : $(Headers) ;
#InstallLib $(DESTDIR)$(PREFIX)/lib : $(Libraries) ;
+DEFINES += RENDER_TIFF RENDER_PNG ;
+
HDRS = ../h ../numlib $(TIFFINC) $(PNGINC) ;
+if [ GLOB [ NormPaths . ] : vimage.c ] {
+ EXTRASRC = vimage.c ;
+ MainVariant vimage : vimage.c : : STANDALONE_TEST : : : librender ../numlib/libnum
+ $(TIFFLIB) $(JPEGLIB) $(PNGLIB) $(ZLIB) ;
+}
+
# 2D Rendering library
-Library librender : render.c thscreen.c ;
+Library librender : render.c thscreen.c $(EXTRASRC) ;
Main timage : timage.c : : : : : librender ../numlib/libnum
$(TIFFLIB) $(JPEGLIB) $(PNGLIB) $(ZLIB) ;
-
if $(BUILD_JUNK) {
Main tt : tt.c : : : ../plot : : ../numlib/libnum ../plot/libplot ;
}