glib r7672 - in branches/glib-2-18/build: . win32
- From: hans svn gnome org
- To: svn-commits-list gnome org
- Subject: glib r7672 - in branches/glib-2-18/build: . win32
- Date: Sun, 23 Nov 2008 17:20:53 +0000 (UTC)
Author: hans
Date: Sun Nov 23 17:20:53 2008
New Revision: 7672
URL: http://svn.gnome.org/viewvc/glib?rev=7672&view=rev
Log:
2008-11-23 Hans Breuer <hans breuer org>
* win32/make.msc win32/module.defs : updated to simplify build
with prebuilt dependencies. Just extract them to $(TOP)\dev.
Also some adaptions to optionally use vc2008 (express).
Modified:
branches/glib-2-18/build/ChangeLog
branches/glib-2-18/build/win32/make.msc
branches/glib-2-18/build/win32/module.defs
Modified: branches/glib-2-18/build/win32/make.msc
==============================================================================
--- branches/glib-2-18/build/win32/make.msc (original)
+++ branches/glib-2-18/build/win32/make.msc Sun Nov 23 17:20:53 2008
@@ -13,6 +13,8 @@
CRUNTIME = -MD
# Line number debug info only
DEBUGINFO = -Zd
+# vc2008 does not have this
+#DEBUGINFO =
LINKDEBUG =
!ELSE
# Debugging:
@@ -46,8 +48,14 @@
ATK_CFLAGS = -I $(ATK)
ATK_LIBS = $(ATK)\atk\atk-$(ATK_VER).lib
+!IFNDEF CAIRO
+# use prebuilt
+CAIRO_CFLAGS = -I $(TOP)\dev\include\cairo
+CAIRO_LIBS = $(TOP)\dev\lib\cairo.lib
+!ELSE
CAIRO_CFLAGS = -I $(CAIRO)\cairo\src -I $(CAIRO)\libpixman\src -I $(CAIRO) $(FONTCONFIG_CFLAGS) $(FREETYPE2_CFLAGS)
CAIRO_LIBS = $(CAIRO)\cairo\src\libcairo-$(CAIRO_VER).lib
+!ENDIF
DIRENT_CFLAGS = -I $(GLIB)\build\win32\dirent
DIRENT_LIBS = $(GLIB)\build\win32\dirent\dirent.lib
@@ -69,7 +77,7 @@
GLIB = $(TOP)\glib
GLIB_CFLAGS = -I $(GLIB) -I $(GLIB)\glib -I $(GLIB)\gmodule $(INTL_CFLAGS)
-GLIB_LIBS = $(GLIB)\glib\glib-$(GLIB_VER).lib $(GLIB)\gmodule\gmodule-$(GLIB_VER).lib $(GLIB)\gobject\gobject-$(GLIB_VER).lib
+GLIB_LIBS = $(GLIB)\glib\glib-$(GLIB_VER).lib $(GLIB)\gmodule\gmodule-$(GLIB_VER).lib $(GLIB)\gobject\gobject-$(GLIB_VER).lib $(GLIB)\gio\gio-$(GLIB_VER).lib
GTHREAD_LIBS = $(GLIB)\gthread\gthread-$(GLIB_VER).lib
GNOMECANVAS_CFLAGS = -I $(GNOMECANVAS)
@@ -94,8 +102,8 @@
LIBART_CFLAGS = -I$(LIBART)\.. -FIlibart_lgpl/art_config.h
LIBART_LIBS = $(LIBART)\libart.lib
-INTL_CFLAGS = -I $(INTL)
-INTL_LIBS = $(INTL)\intl.lib
+INTL_CFLAGS = -I $(INTL)\include
+INTL_LIBS = $(INTL)\lib\intl.lib
LIBICONV_CFLAGS = -I $(LIBICONV)\include
LIBICONV_LIBS = $(LIBICONV)\lib\iconv.lib
@@ -109,8 +117,14 @@
LIBXSLT_CFLAGS = -I $(LIBXSLT)
LIBXSLT_LIBS = $(LIBXSLT)\libxslt\libxslt.lib
+!IFNDEF JPEG
+# use prebuilt
+JPEG_CFLAGS = -I $(TOP)\dev\include
+JPEG_LIBS = $(TOP)\dev\lib\jpeg.lib
+!ELSE
JPEG_CFLAGS = -I $(JPEG)
JPEG_LIBS = $(JPEG)\libjpeg.lib
+!ENDIF
OPENGL_CFLAGS = # None needed, headers bundled with the compiler
OPENGL_LIBS = opengl32.lib lglu32.lib
@@ -118,10 +132,17 @@
PANGO_CFLAGS = -I $(PANGO)
PANGO_LIBS = $(PANGO)\pango\pango-$(PANGO_VER).lib
PANGOWIN32_LIBS = $(PANGO_LIBS) $(PANGO)\pango\pangowin32-$(PANGO_VER).lib
+PANGOCAIRO_LIBS = $(PANGO_LIBS) $(PANGO)\pango\pangowin32-$(PANGO_VER).lib $(PANGO)\pango\pangocairo-$(PANGO_VER).lib
PANGOFT2_LIBS = $(PANGO_LIBS) $(PANGO)\pango\pangoft2-$(PANGO_VER).lib
+!IFNDEF PNG
+#use precompiled
+PNG_CFLAGS = -I $(TOP)\dev\include\libpng12
+PNG_LIBS = $(TOP)\dev\lib\libpng.lib $(ZLIB_LIBS)
+!ELSE
PNG_CFLAGS = -I $(PNG) $(ZLIB_CFLAGS)
PNG_LIBS = $(PNG)\png.lib $(ZLIB_LIBS)
+!ENDIF
RSVG_CFLAGS = -I $(RSVG)\..
RSVG_LIBS = $(RSVG)\librsvg-$(RSVG_VER).lib
@@ -129,21 +150,33 @@
SVG_CFLAGS = -I $(SVG)\src
SVG_LIBS = $(SVG)\src\libsvg-$(SVG_VER).lib
+!IFNDEF TIFF
+# use prebuilt
+TIFF_CFLAGS = -I $(TOP)\dev\include
+TIFF_LIBS = $(TOP)\dev\lib\libtiff.lib
+!ELSE
TIFF_CFLAGS = -I $(TIFF)\libtiff
# Use single import library for both libtiff DLL versions (with or
# without LZW code). The user selects which DLL to use.
TIFF_NOLZW_LIBS = $(TIFF)\libtiff\tiff.lib $(JPEG_LIBS) $(ZLIB_LIBS) user32.lib
TIFF_LZW_LIBS = $(TIFF_NOLZW_LIBS)
TIFF_LIBS = $(TIFF_NOLZW_LIBS)
+!ENDIF
+!IFNDEF ZLIB
+# use prebuilt
+ZLIB_CFLAGS = -I $(TOP)\dev\include
+ZLIB_LIBS = $(TOP)\dev\lib\zdll.lib
+!ELSE
ZLIB_CFLAGS = -I $(ZLIB)
ZLIB_LIBS = $(ZLIB)\zlib.lib
+!ENDIF
################
# Compiler to use.
CCOMPILER = cl
-CC = $(CCOMPILER) -G5 -GF $(CRUNTIME) -W3 -nologo
+CC = $(CCOMPILER) -GF $(CRUNTIME) -W3 -nologo
################
# The including makefile should define INCLUDES, DEFINES and
@@ -170,7 +203,6 @@
-del *.lib
-del *.err
-del *.map
- -del *.sym
-del *.exp
-del *.lk1
-del *.mk1
Modified: branches/glib-2-18/build/win32/module.defs
==============================================================================
--- branches/glib-2-18/build/win32/module.defs (original)
+++ branches/glib-2-18/build/win32/module.defs Sun Nov 23 17:20:53 2008
@@ -36,7 +36,6 @@
# built using libtool.
ATK_VER = 1.0
-CAIRO_VER = 0.3
FREETYPE2_VER = 2.0
GIMP_VER = 1.2
GDK_PIXBUF_VER = 2.0
@@ -59,7 +58,8 @@
# In alphabetical order.
ATK = $(TOP)/atk
-CAIRO = $(TOP)\cairo
+# define this if you use cairo from source
+# CAIRO = $(TOP)\cairo
GIMP = $(TOP)/gimp
GLIB = $(TOP)/glib
GNOMECANVAS = $(TOP)\libgnomecanvas
@@ -96,16 +96,18 @@
FREETYPE2 = $(TOP)/freetype2
GTKEXTRA = $(TOP)/gtk+extra
GTKGLAREA = $(TOP)/gtkglarea
-INTL = $(TOP)/gettext-0.10.40/intl
-JPEG = $(TOP)/jpeg-6b
+#INTL = $(TOP)/gettext-0.10.40/intl
+INTL = $(TOP)/dev
+
+#JPEG = $(TOP)/jpeg-6b
LIBART = $(TOP)/libart_lgpl
LIBICONV = $(TOP)/libiconv-$(LIBICONV_VER)
LIBXSLT = $(TOP)/libxslt
-PNG = $(TOP)/libpng-1.2.0
+#PNG = $(TOP)/libpng-1.2.0
RSVG = $(TOP)\librsvg
SVG = $(TOP)\libsvg
-TIFF = $(TOP)/tiff-v3.4
-ZLIB = $(TOP)/zlib-1.1.3
+#TIFF = $(TOP)/tiff-v3.4
+#ZLIB = $(TOP)/zlib-1.1.3
# Headers from Microsoft's PlatformSDK (that aren't present in
# mingw) are needed by a just a few packages when compiling with gcc.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]