forked from AuroraMiddleware/gtk
2823963703
2000-07-12 Tor Lillqvist <tml@iki.fi> Win32 changes, still doesn't build though. * gdk/makefile.cygwin * gdk/win32/makefile.cygwin * gtk/makefile.cygwin: Updates. * gdk/win32/gdkgc-win32.c (_gdk_win32_gc_new): Use the same default values for fg and bg pixel as X11 does (0 and 1), not black and white. Use PS_ENDCAP_FLAT and PS_JOIN_MITER by default. Use 0 for pen width by default (treated as 1 anyway later, but for apps that might check the value in the GdkGC). (gdk_win32_hdc_get, gdk_win32_hdc_release): New functions, public interface to gdk_gc_predraw and _postdraw. * gdk/win32/gdkwin32.h * gdk/gdk.def: Add gdk_win32_hdc_{get,release}. * gdk/win32/gdkcolor-win32.c (gdk_colormap_alloc1): Remove extraneous semicolon. * gdk/win32/gdkdrawable-win32.c: Check also for pen_width == 0. * gdk/win32/gdkimage-win32.c (gdk_image_new): Use the visual's depth, not the Win32 bitspixel value.
57 lines
1.3 KiB
Plaintext
57 lines
1.3 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
|
|
|
|
TOP = ../..
|
|
|
|
include $(TOP)/build/win32/make.mingw
|
|
|
|
################################################################
|
|
|
|
# Nothing much configurable below
|
|
|
|
INCLUDES = -I . -I .. -I ../gdk-pixbuf
|
|
DEPCFLAGS = $(GLIB_CFLAGS) $(PANGO_CFLAGS)
|
|
DEFINES = -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 \
|
|
gdkkeyuni.o \
|
|
gdkpango.o \
|
|
gdkpixbuf-drawable.o \
|
|
gdkpixbuf-render.o \
|
|
gdkpixmap.o \
|
|
gdkpolyreg-generic.o \
|
|
gdkrgb.o \
|
|
gdkrectangle.o \
|
|
gdkregion-generic.o \
|
|
gdkwindow.o
|
|
|
|
../config.h : ../config.h.win32
|
|
cp $< $@
|
|
|
|
gdkconfig.h : gdkconfig.h.win32
|
|
cp $< $@
|
|
|
|
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 $(GLIB_LIBS) -lgdi32 -luser32 -limm32 -lshell32 -lole32 -luuid $(LDFLAGS) win32/gdk-win32res.o
|