forked from AuroraMiddleware/gtk
ff99eb7cc1
2000-02-13 Tor Lillqvist <tml@iki.fi> * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Add an extra parameter so that we don't have to do unnecessary settings to the HDC. * gdk/win32/gdkdrawable-win32.c * gdk/win32/gdkimage-win32.c: Corresponding changes to the calls of gdk_gc_predraw. * gdk/win32/gdkdrawable-win32.c: Special-casing for GdkGCs where the fill style is GDK_OPAQUE_STIPPLED. In those cases we construct GDI paths, call WidenPath to get the outline of the stroken path, and then fill the outline (with the brush that was built from the stipple). * gdk/win32/gdkgc-win32.c: Factor out common code from _gdk_win32_gc_new and gdk_win32_gc_set_values into gdk_win32_gc_values_to_win32values. * gdk/win32/gdkmain-win32.c (gdk_win32_last_error_string, gdk_win32_api_failed): New functions for error logging. * gdk/win32/gdkprivate-win32.h: Declare them, and a macro WIN32_API_FAILED to call them, passing function or file name and line number. * gdk/win32/*.c: Use the WIN32_API_FAILED macro. * gdk/win32/gdkprivate-win32.h: Store just the pixel values from GdkColor for foreground and background in GdkGCWin32Data. * gdk/makefile.cygwin: Link in the resource object separately. * gdk/win32/rc/gdk.rc * gtk/gtk.rc (New file) * gdk/win32/makefile.cygwin * gtk/makefile.cygwin: Update build number in DLLs automatically, as in GLib.
64 lines
1.5 KiB
Plaintext
64 lines
1.5 KiB
Plaintext
## Makefile for building the GDK DLL with gcc-2.95 or later on cygwin
|
|
## Use: make -f makefile.cygwin
|
|
|
|
## You must first build the Win32-dependent sources in the win32 subdirectory.
|
|
|
|
## There is no install target, you have to decide where and
|
|
## how to install for yourself.
|
|
|
|
OPTIMIZE = -g -O
|
|
|
|
################################################################
|
|
|
|
# Nothing much configurable below
|
|
|
|
CC = gcc -mno-cygwin -mpentium -fnative-struct
|
|
|
|
CP = cp
|
|
LD = ld
|
|
|
|
GLIB_VER=1.3
|
|
GTK_VER=1.3
|
|
|
|
GLIB = ../../glib
|
|
CFLAGS = $(OPTIMIZE) -I . -I .. -I $(GLIB) -DG_ENABLE_DEBUG -DHAVE_CONFIG_H -DGDK_VERSION=\"$(GTK_VER)\"
|
|
|
|
all: \
|
|
../config.h \
|
|
gdkconfig.h \
|
|
gdk-$(GTK_VER).dll
|
|
|
|
gdk_OBJECTS = \
|
|
gdk.o \
|
|
gdkcolor.o \
|
|
gdkcursor.o \
|
|
gdkdraw.o \
|
|
gdkevents.o \
|
|
gdkfont.o \
|
|
gdkgc.o \
|
|
gdkglobals.o \
|
|
gdkimage.o \
|
|
gdkrgb.o \
|
|
gdkrectangle.o \
|
|
gdkwindow.o
|
|
|
|
../config.h : ../config.h.win32
|
|
$(CP) ../config.h.win32 ../config.h
|
|
|
|
gdkconfig.h : gdkconfig.h.win32
|
|
$(CP) gdkconfig.h.win32 gdkconfig.h
|
|
|
|
gdk-$(GTK_VER).dll : $(gdk_OBJECTS) gdk.def win32/libgdk-win32.a win32/gdk-win32res.o
|
|
$(GLIB)/build-dll gdk $(GTK_VER) gdk.def $(gdk_OBJECTS) -L win32 -lgdk-win32 -lwntab32x -L $(GLIB) -lglib-$(GLIB_VER) -lgdi32 -luser32 -limm32 -lshell32 -lole32 -luuid $(LDFLAGS) win32/gdk-win32res.o
|
|
|
|
.SUFFIXES: .c .o .i
|
|
|
|
.c.o :
|
|
$(CC) $(CFLAGS) -c -DGDK_COMPILATION -DG_LOG_DOMAIN=\"Gdk\" $<
|
|
|
|
.c.i :
|
|
$(CC) $(CFLAGS) -E -DGDK_COMPILATION -DG_LOG_DOMAIN=\"Gdk\" $< >$@
|
|
|
|
clean:
|
|
-rm *.exe *.o *.dll *.a *.exp *.base
|