Updates.
2001-10-29 Tor Lillqvist <tml@iki.fi>
* README.win32: Updates.
* gtk-zip.sh.in: New file, used to build distribution package for
Windows.
* gdk/gdkglobals.c: Mark gdk_threads_mutex for DLL export when
applicable with GDKVAR.
* gtk/gtk.def: Update.
* gtk/gtkfilesel.c: Include <winsock.h> (if available) for
gethostname().
* gtk/gtkmain.c
* gtk/gtkrc.c: (Win32) Save actual DLL name for later use in DLL
entry function. Avoid hardcoded paths GTK_LIBDIR, GTK_SYSCONFDIR,
GTK_DATA_PREFIX and GTK_LOCALEDIR, instead add functions that call
g_win32_get_package_installation_subdirectory() with the actual
DLL name saved above. Redefine above directory name macros to call
these functions. Remove some ifdefs.
* gtk/maketypes.awk: Output GTKTYPEBUILTINS_VAR (that marks
variable for export on Win32) also to the _vars file.
Changes for autoconfiscated build on Win32, and addition of Win32
backend to the related files:
* configure.in: Like in GLib, set LT_CURRENT_MINUS_AGE for use
when forming DLL name in some files. Set MS_LIB_AVAILABLE is
lib.exe is available. Call AC_LIBTOOL_WIN32_DLL. Set
PLATFORM_WIN32, OS_WIN32 and USE_WIN32 automake conditionals. Add
win32 target, using pangowin32. Don't use the
-export-symbols-regex option on Win32, we use .def files to list
exported symbols. Check <winsock.h> (for gethostname() in
gtkfilesel.c). Enclose nested AC_CHECK_* macros in brackets to
prevent premature m4 expansion.
* acconfig.h: Add HAVE_WINTAB.
* gdk/Makefile.am: Add libgdk-win32-1.3.la target and associated
macros and rules. Use -no-undefined on Win32. Use gdk.def file. If
MS_LIB_AVAILABLE, build MS import library. Install the import
libraries. If HAVE_WINTAB, link with the Wintab library.
* gtk/Makefile.am: Add libgtk-win32-1.3.la target and associated
macros and rules. Use -no-undefined on Win32. Use gtk-win32.def
file. Install import libraries.
2001-10-29 07:06:37 +00:00
|
|
|
####
|
|
|
|
#### Out of order! Use autoconfiscation.
|
|
|
|
####
|
|
|
|
|
2000-07-23 01:18:34 +00:00
|
|
|
## Makefile for building the GDK DLL with gcc on Win32
|
|
|
|
## Use: make -f makefile.mingw
|
|
|
|
|
|
|
|
## There is no install target, you have to decide where and
|
|
|
|
## how to install for yourself.
|
|
|
|
|
|
|
|
TOP = ../..
|
|
|
|
|
|
|
|
include ../build/win32/make.mingw
|
|
|
|
|
2000-10-03 21:00:49 +00:00
|
|
|
# Possibly override versions from build/win32/module.defs
|
2000-07-23 01:18:34 +00:00
|
|
|
GTK_VER = @GTK_MAJOR_VERSION@.@GTK_MINOR_VERSION@
|
2000-10-03 21:00:49 +00:00
|
|
|
GDK_PIXBUF_VER = @GDK_PIXBUF_MAJOR@.@GDK_PIXBUF_MINOR@
|
|
|
|
|
|
|
|
GDK_PIXBUF_LIBS = -L ../gdk-pixbuf -lgdk_pixbuf-$(GDK_PIXBUF_VER)
|
2000-07-23 01:18:34 +00:00
|
|
|
|
|
|
|
OPTIMIZE = -g
|
|
|
|
|
|
|
|
INCLUDES = -I . -I .. -I ../gdk-pixbuf
|
|
|
|
DEPCFLAGS = $(GLIB_CFLAGS) $(PANGO_CFLAGS)
|
2000-07-25 17:31:05 +00:00
|
|
|
DEFINES = -DG_ENABLE_DEBUG -DHAVE_CONFIG_H -DGDK_VERSION=\"$(GTK_VER)\" -DGDK_COMPILATION
|
2000-07-23 01:18:34 +00:00
|
|
|
|
|
|
|
all: \
|
|
|
|
../config.h \
|
|
|
|
gdkconfig.h \
|
|
|
|
win32/libgdk-win32.a \
|
|
|
|
win32/gdk-win32res.o \
|
|
|
|
gdk-win32-$(GTK_VER).dll
|
|
|
|
|
|
|
|
gdk_OBJECTS = \
|
|
|
|
gdk.o \
|
|
|
|
gdkcolor.o \
|
|
|
|
gdkcursor.o \
|
|
|
|
gdkdraw.o \
|
|
|
|
gdkevents.o \
|
|
|
|
gdkfont.o \
|
|
|
|
gdkgc.o \
|
|
|
|
gdkglobals.o \
|
|
|
|
gdkimage.o \
|
2000-12-14 23:14:18 +00:00
|
|
|
gdkkeys.o \
|
2000-07-23 01:18:34 +00:00
|
|
|
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 $< $@
|
|
|
|
|
|
|
|
win32/libgdk-win32.a : FRC
|
|
|
|
cd win32 && $(MAKE) -f makefile.mingw libgdk-win32.a
|
|
|
|
|
|
|
|
win32/gdk-win32res.o : FRC
|
|
|
|
cd win32 && $(MAKE) -f makefile.mingw gdk-win32res.o
|
|
|
|
|
|
|
|
gdk-win32-$(GTK_VER).dll : $(gdk_OBJECTS) gdk.def win32/libgdk-win32.a win32/gdk-win32res.o win32/libwntab32x.a
|
2000-10-03 21:00:49 +00:00
|
|
|
$(GLIB)/build-dll gdk-win32 $(GTK_VER) gdk.def $(gdk_OBJECTS) win32/libgdk-win32.a win32/libwntab32x.a $(GDK_PIXBUF_LIBS) $(GLIB_LIBS) $(PANGOWIN32_LIBS) -lgdi32 -luser32 -limm32 -lshell32 -lole32 -luuid $(LDFLAGS) win32/gdk-win32res.o
|
2000-07-23 01:18:34 +00:00
|
|
|
|
|
|
|
win32/libwntab32x.a : FRC
|
|
|
|
cd win32 && $(MAKE) -f makefile.mingw libwntab32x.a
|
|
|
|
|
|
|
|
# Hack to get an updated makefile.mingw automatically after updating
|
|
|
|
# makefile.mingw.in. Only for developer use.
|
|
|
|
makefile.mingw: makefile.mingw.in
|
|
|
|
sed -e 's,@GTK_MAJOR[_]VERSION@,@GTK_MAJOR_VERSION@,' \
|
2000-10-03 21:00:49 +00:00
|
|
|
-e 's,@GTK_MINOR[_]VERSION@,@GTK_MINOR_VERSION@,' \
|
|
|
|
-e 's,@GDK_PIXBUF[_]MAJOR@,@GDK_PIXBUF_MAJOR@,' \
|
|
|
|
-e 's,@GDK_PIXBUF[_]MINOR@,@GDK_PIXBUF_MINOR@,' <$< >$@
|
2000-07-23 01:18:34 +00:00
|
|
|
|
|
|
|
.PHONY: FRC
|