[mapserver-commits] r7477 - trunk/mapserver
svn at osgeo.org
svn at osgeo.org
Mon Mar 24 14:39:11 EDT 2008
Author: Assefa
Date: 2008-03-24 14:39:11 -0400 (Mon, 24 Mar 2008)
New Revision: 7477
Modified:
trunk/mapserver/mapstring.c
trunk/mapserver/nmake.opt
Log:
Windows build for fribidi library #956
Modified: trunk/mapserver/mapstring.c
===================================================================
--- trunk/mapserver/mapstring.c 2008-03-23 09:37:40 UTC (rev 7476)
+++ trunk/mapserver/mapstring.c 2008-03-24 18:39:11 UTC (rev 7477)
@@ -35,7 +35,11 @@
#include <ctype.h>
#ifdef USE_FRIBIDI
+#if defined(_WIN32) && !defined(__CYGWIN__)
+#include "fribidi.h"
+#else
#include <fribidi/fribidi.h>
+#endif
#define MAX_STR_LEN 65000
#endif
Modified: trunk/mapserver/nmake.opt
===================================================================
--- trunk/mapserver/nmake.opt 2008-03-23 09:37:40 UTC (rev 7476)
+++ trunk/mapserver/nmake.opt 2008-03-24 18:39:11 UTC (rev 7477)
@@ -442,6 +442,17 @@
#EPPL_OBJ=c:/my_path/epplib.obj
+# ----------------------------------------------------------------------
+# Use of fribidi
+# GNU FriBidi is an implementation of the Unicode Bidirectional Algorithm (bidi).
+# http://fribidi.freedesktop.org/wiki/
+# Unncomment out the following flags to build with fribidi
+#---------------------------------------------------------------------
+#FRIBIDI=-DUSE_FRIBIDI
+#FRIBIDI_DIR=$(MS_BASE)\..\fribidi-0.10.9
+
+
+
########################################################################
# Section IV: Mapserver OGC Configuration
########################################################################
@@ -747,6 +758,13 @@
FCGILIB=$(FCGIDIR)\libfcgi\Release\libfcgi.lib
FCGIINC=-I$(FCGIDIR)\include
!ENDIF
+
+#fribidi support
+!IFDEF FRIBIDI
+FRIBIDI_INC=-I$(FRIBIDI_DIR)
+FRIBIDI_LIB=$(FRIBIDI_DIR)\fribidi.lib
+!ENDIF
+
########################################################################
# Section VIII: UMN GIS System Support
########################################################################
@@ -780,7 +798,7 @@
$(CURL_LIB) $(MING_LIB) $(PDF_LIB) \
$(WINSOCK_LIB) $(POSTGIS_LIB) $(IMGGEN_LIB) $(ERR_LIB) \
$(ORACLE_LIB) $(SDE_LIB) $(ICONV_LIB) $(FCGILIB) $(GEOS_LIB) \
- $(LIBXML_LIB) $(AGG_LIB)
+ $(LIBXML_LIB) $(AGG_LIB) $(FRIBIDI_LIB)
LIBS=$(MS_LIB) $(EXTERNAL_LIBS)
LIBS_DLL=$(MS_LIB_DLL) $(EXTERNAL_LIBS)
@@ -790,7 +808,7 @@
$(CURL_INC) $(MING_INC) $(PDF_INC) $(POSTGIS_INC) \
$(IMGGEN_INC) $(ERR_INC) $(ORACLE_INC) $(SDE_INC)\
$(ICONV_INC) $(FCGIINC) $(GEOS_INC) $(ZLIB_INC) $(LIBXML_INC) \
- $(AGG_INC) $(PNG_INC)
+ $(AGG_INC) $(PNG_INC) $(FRIBIDI_INC)
MS_DEFS = $(REGEX_OPT) $(STRINGS) $(POSTGIS) \
@@ -800,7 +818,7 @@
$(USE_POINT_Z_M) $(GDAL) $(FCGIDEF) \
$(WFS) $(WFSCLIENT) $(WCS) $(PDF) $(EGIS) \
$(USE_GD_ANTIALIAS) $(ORACLE) $(MING_VERSION) \
- $(SDE_OPT) $(ICONV) $(GEOS) $(ZLIB) $(SOS) $(AGG) $(RGBA_PNG_ENABLED)
+ $(SDE_OPT) $(ICONV) $(GEOS) $(ZLIB) $(SOS) $(AGG) $(RGBA_PNG_ENABLED) $(FRIBIDI)
!IFDEF WIN64
MS_CFLAGS=$(INCLUDES) $(MS_DEFS) -DWIN32 -D_WIN32 -DUSE_GENERIC_MS_NINT
More information about the mapserver-commits
mailing list