summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorHans Breuer <hans@breuer.org>2001-02-19 20:53:56 +0000
committerHans Breuer <hans@src.gnome.org>2001-02-19 20:53:56 +0000
commita7e7e50eea273f1b7f50da041bea1a53782b06f8 (patch)
tree815a65c866ac716200fe8d004631df0372be20ad /examples
parentf261f4ca89bade8bf24ef5a76dbb68bd113cc748 (diff)
downloadpango-a7e7e50eea273f1b7f50da041bea1a53782b06f8.tar.gz
added _pango_included_win32_modules[] to include modules with plain win32
2001-02-19 Hans Breuer <hans@breuer.org> * pango/modules.h, pango/pangowin32.c (pango_win32_get_context) : added _pango_included_win32_modules[] to include modules with plain win32 build as well. * pango/pango.def : added new exported functions * pango/pangowin32-fontmap.c : add unspecified fonts for Monospace, Sans and Serif to avoid crashes if no alias file is provided * pango/*/makefile.msc : new files to build on windoze with msvc
Diffstat (limited to 'examples')
-rw-r--r--examples/makefile.msc65
1 files changed, 65 insertions, 0 deletions
diff --git a/examples/makefile.msc b/examples/makefile.msc
new file mode 100644
index 00000000..5b5eb8ce
--- /dev/null
+++ b/examples/makefile.msc
@@ -0,0 +1,65 @@
+TOP = ../..
+!INCLUDE $(TOP)/build/win32/make.msc
+
+# INCLUDES = -I .. -I .
+# DEFINES =
+# DEPCFLAGS = $(GLIB_CFLAGS) $(LIBICONV_CFLAGS) $(FRIBIDI_CFLAGS) $(FREETYPE2_CFLAGS)
+
+!IFNDEF PACKAGE
+
+EXES = viewer_win32 # viewer_ft2
+
+# The main target
+all : sub-all
+
+sub-all:
+ for %d in ($(EXES)) do nmake -nologo -f makefile.msc sub-one-exe THIS=%d
+
+sub-one-dll:
+ nmake -nologo -f makefile.msc $(THIS)-$(PANGO_VER).dll PACKAGE=$(THIS) OBJS_$(THIS)=1
+
+sub-one-exe:
+ nmake -nologo -f makefile.msc $(THIS).exe PACKAGE=$(THIS) OBJS_$(THIS)=1
+
+!ELSE
+
+PRJ_TOP = ..
+PKG_VER = $(PANGO_VER)
+PKG_DEF = $(PACKAGE).def
+
+PKG_CFLAGS = -I. -I$(PRJ_TOP) $(GLIB_CFLAGS) $(GTK2_CFLAGS) $(PANGO_CFLAGS) $(LIBICONV_CFLAGS) $(FRIBIDI_CFLAGS) $(FREETYPE2_CFLAGS)
+
+#not yet $(FREETYPE2_LIBS)
+PKG_LINK = $(GLIB_LIBS) $(GTK2_LIBS) $(LIBICONV_LIBS) $(FRIBIDI_LIBS) $(PANGOWIN32_LIBS)
+
+!IFDEF OBJS_viewer_win32
+OBJECTS = \
+ viewer-win32.obj
+!ENDIF
+
+!IFDEF OBJS_viewer_ft2
+OBJECTS = \
+ viewer-ft2.obj
+!ENDIF
+
+!IFNDEF OBJECTS
+OBJECTS = $(PACKAGE).obj
+!ENDIF
+
+$(PACKAGE).lib : $(OBJECTS)
+ lib /out:$(PACKAGE).lib $(OBJECTS)
+
+$(PACKAGE)-$(PKG_VER).dll : $(OBJECTS) $(PKG_DEF)
+ $(CC) $(CFLAGS) -LD -Fe$(PACKAGE)-$(PKG_VER).dll $(OBJECTS) $(PKG_LINK) user32.lib gdi32.lib advapi32.lib $(LDFLAGS) /def:$(PKG_DEF)
+
+$(PACKAGE).exe : $(PKG_LINK) $(OBJECTS)
+ $(CC) $(CFLAGS) -Fe$(PACKAGE).exe $(OBJECTS) $(PKG_LINK)
+
+
+$(PRJ_TOP)\config.h: $(PRJ_TOP)\config.h.win32
+ copy $(PRJ_TOP)\config.h.win32 $(PRJ_TOP)\config.h
+
+.c.obj :
+ $(CC) $(CFLAGS) -GD -c $(PKG_CFLAGS) $<
+
+!ENDIF #PACKAGE \ No newline at end of file