+2000-10-28 Tor Lillqvist <tml@iki.fi>
+
+ * makefile.{mingw,msc}.in: Make glib-genmarshal.exe.
+
+ * glib-genmarshal.c: Conditionalise include of unistd.h.
+ Include <io.h> on Win32.
+
+ * gobject.def: Add some missing entry points.
+
Fri Oct 27 16:33:41 2000 Tim Janik <timj@gtk.org>
* gsignal.[hc]: publically define GSignalInvocationHint structure
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
+#include "config.h"
+
#include <glib-object.h>
#include <stdio.h>
+#include <stdlib.h>
#include <fcntl.h>
#include <string.h>
#include <errno.h>
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
+#endif
#include <sys/types.h>
#include <sys/stat.h>
+#ifdef G_OS_WIN32
+#include <io.h>
+#endif
/* --- defines --- */
#define PRG_NAME "glib-genmarshal"
g_bsearch_array_remove
g_bsearch_array_remove_node
g_cclosure_new
+ g_cclosure_new_object
+ g_cclosure_new_object_swap
g_cclosure_new_swap
g_closure_add_fnotify
g_closure_add_inotify
g_object_set_valist
g_object_steal_qdata
g_object_unref
+ g_object_watch_closure
g_param_spec_boolean
g_param_spec_char
g_param_spec_double
g_value_dup_boxed
g_value_dup_object
g_value_dup_string
+ g_value_get_as_pointer
g_value_get_boolean
g_value_get_boxed
g_value_get_char
g_value_get_int
g_value_get_long
g_value_get_object
+ g_value_get_pointer
g_value_get_string
g_value_get_uchar
g_value_get_uint
g_value_set_int
g_value_set_long
g_value_set_object
+ g_value_set_pointer
g_value_set_static_boxed
+ g_value_set_static_string
g_value_set_string
g_value_set_uchar
g_value_set_uint
BUILD_DLL = ../build-dll
-all : \
- gobject-$(GLIB_VER).dll
+all : \
+ gobject-$(GLIB_VER).dll \
+ glib-genmarshal.exe
makefile.mingw: makefile.mingw.in
sed -e 's,@GLIB[_]MAJOR_VERSION@,@GLIB_MAJOR_VERSION@,' \
gobject-$(GLIB_VER).dll : $(gobject_OBJECTS) gobject.def
$(BUILD_DLL) gobject $(GLIB_VER) gobject.def $(gobject_OBJECTS) -L .. -lglib-$(GLIB_VER)
+
+glib-genmarshal.exe : glib-genmarshal.c
+ $(CC) -o $@ $(CFLAGS) -UGOBJECT_COMPILATION -DG_LOG_DOMAIN=\"glib-genmarshal\" $< -L .. -lglib-$(GLIB_VER) -L . -lgobject-$(GLIB_VER)
INCLUDES = -I .. -I .
DEFINES = -DHAVE_CONFIG_H -DGOBJECT_COMPILATION -DG_LOG_DOMAIN=g_log_domain_gobject
-all : \
- gobject-$(GLIB_VER).dll
+all : \
+ gobject-$(GLIB_VER).dll \
+ glib-genmarshal.exe
gobject_OBJECTS = \
gboxed.obj \
gobject-$(GLIB_VER).dll : $(gobject_OBJECTS) gobject.def
$(CC) $(CFLAGS) -LD -Fegobject-$(GLIB_VER).dll $(gobject_OBJECTS) ..\glib-$(GLIB_VER).lib $(LDFLAGS) /def:gobject.def
+
+glib-genmarshal.exe : glib-genmarshal.c
+ $(CC) -Fe$@ $(CFLAGS) -UGOBJECT_COMPILATION -DG_LOG_DOMAIN=\"glib-genmarshal\" glib-genmarshal.c ..\glib-$(GLIB_VER).lib gobject-$(GLIB_VER).lib