[libgxps] nmake: add support to build with libjpeg



commit fb393f754f2398a87933de20d659f812a9d580dc
Author: Ignacio Casal Quinteiro <qignacio amazon com>
Date:   Sun Jan 8 18:19:44 2017 +0100

    nmake: add support to build with libjpeg

 nmake/config-msvc.mak |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/nmake/config-msvc.mak b/nmake/config-msvc.mak
index 3509670..dab5902 100644
--- a/nmake/config-msvc.mak
+++ b/nmake/config-msvc.mak
@@ -6,6 +6,9 @@ GXPS_MAIN_LIBS = gio-2.0.lib gobject-2.0.lib glib-2.0.lib cairo.lib archive.lib
 # libpng library
 LIBPNG_LIB = libpng16.lib
 
+# libjpeg library
+LIBJPEG_LIB = jpeg.lib
+
 # Please do not change anything beneath this line unless maintaining the NMake Makefiles
 # Bare minimum features and sources built into GXPS on Windows
 GXPS_DEFINES = /DGXPS_COMPILATION
@@ -52,6 +55,11 @@ GXPS_CFLAGS = \
        /I$(PREFIX)\include\libpng
 !endif
 
+!if "$(LIBJPEG)" == "1"
+GXPS_DEFINES = $(GXPS_DEFINES) /DHAVE_LIBJPEG=1
+GXPS_DEP_LIBS = $(GXPS_DEP_LIBS) $(LIBJPEG_LIB)
+!endif
+
 # Enable cairo-pdf if desired
 !if "$(CAIRO_PDF)" == "1"
 GXPS_DEFINES = $(GXPS_DEFINES) /DHAVE_CAIRO_PDF=1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]