summaryrefslogtreecommitdiff
path: root/gio
diff options
context:
space:
mode:
authorHans Breuer <hans@breuer.org>2009-05-30 15:29:23 +0200
committerHans Breuer <hans@breuer.org>2009-05-30 15:29:23 +0200
commit75ef01824803c70f42d412c19d4e61904702e461 (patch)
treedf4c650b96d390d4713e732b349c2b34258db799 /gio
parent780185449fadcbc5d79d9dea245067c16f475a92 (diff)
downloadglib-75ef01824803c70f42d412c19d4e61904702e461.tar.gz
glib-75ef01824803c70f42d412c19d4e61904702e461.tar.bz2
glib-75ef01824803c70f42d412c19d4e61904702e461.zip
Updated msvc build files
Diffstat (limited to 'gio')
-rw-r--r--gio/makefile.msc82
-rw-r--r--gio/win32/makefile.msc35
2 files changed, 74 insertions, 43 deletions
diff --git a/gio/makefile.msc b/gio/makefile.msc
index 906ec40d9..57656c518 100644
--- a/gio/makefile.msc
+++ b/gio/makefile.msc
@@ -5,7 +5,7 @@ PACKAGE = gio
PKG_VER = 2.0
!INCLUDE $(TOP)\glib\build\win32\make.msc
-# SUBDIRS = fam
+SUBDIRS = win32
sub-all:
for %d in ($(SUBDIRS)) do nmake -nologo -f makefile.msc sub-one THIS=%d
@@ -38,6 +38,7 @@ gio_headers = \
gdatainputstream.h \
gdataoutputstream.h \
gdrive.h \
+ gemblem.h \
gemblemedicon.h \
gfile.h \
gfileattribute.h \
@@ -76,6 +77,7 @@ gio_headers = \
OBJECTS = \
gappinfo.obj \
gasynchelper.obj \
+ gasyncinitable.obj \
gasyncresult.obj \
gbufferedinputstream.obj \
gbufferedoutputstream.obj \
@@ -86,6 +88,7 @@ OBJECTS = \
# gdesktopappinfo.obj \
gdrive.obj \
gdummyfile.obj \
+ gemblem.obj \
gemblemedicon.obj \
gfile.obj \
gfileattribute.obj \
@@ -93,29 +96,51 @@ OBJECTS = \
gfileicon.obj \
gfileinfo.obj \
gfileinputstream.obj \
+ gfileiostream.obj \
gfilemonitor.obj \
gfilenamecompleter.obj \
gfileoutputstream.obj \
gfilterinputstream.obj \
gfilteroutputstream.obj \
gicon.obj \
+ ginetaddress.obj \
+ ginetsocketaddress.obj \
+ ginitable.obj \
ginputstream.obj \
gioenumtypes.obj \
gioerror.obj \
giomodule.obj \
gioscheduler.obj \
+ giostream.obj \
gloadableicon.obj \
+ glocalfileiostream.obj \
gmemoryinputstream.obj \
gmemoryoutputstream.obj \
gmount.obj \
gmountoperation.obj \
gnativevolumemonitor.obj \
+ gnetworkaddress.obj \
+ gnetworkservice.obj \
goutputstream.obj \
gpollfilemonitor.obj \
+ gresolver.obj \
gseekable.obj \
gsimpleasyncresult.obj \
-# gsocketinputstream.obj \
-# gsocketoutputstream.obj \
+ gsocket.obj \
+ gsocketaddress.obj \
+ gsocketaddressenumerator.obj \
+ gsocketclient.obj \
+ gsocketconnectable.obj \
+ gsocketconnection.obj \
+ gsocketcontrolmessage.obj \
+ gsocketlistener.obj \
+ gsocketservice.obj \
+ gsocketinputstream.obj \
+ gsocketoutputstream.obj \
+ gsrvtarget.obj \
+ gtcpconnection.obj \
+ gthreadedresolver.obj \
+ gthreadedsocketservice.obj \
gthemedicon.obj \
gunionvolumemonitor.obj \
gvfs.obj \
@@ -133,10 +158,9 @@ OBJECTS = \
gwin32appinfo.obj \
\
gio-marshal.obj \
- gwin32directorymonitor.obj \
gwin32mount.obj \
-# gwin32volume.obj \
- gwin32volumemonitor.obj
+ gwin32volumemonitor.obj \
+ gwin32resolver.obj
libgio_2_0_la_LIBADD = \
$(top_builddir)/glib/libglib-2.0.la \
@@ -159,39 +183,9 @@ unix_sources = \
gunixvolumemonitor.h \
$(NULL)
-NULL = \
-
-
-libgio_2_0_la_LDFLAG = \
- -export-dynamic \
- $(no_undefined) \
- -export-symbols-regex \
- '^g_.*'
-
-giounixincludedi = \
- $(includedir)/gio-unix-2.0/gio
-
-platform_libadd = \
- -lshlwapi
-
marshal_sources = \
gio-marshal.h gio-marshal.c $(NULL)
-gioincludedi = \
- $(includedir)/glib-2.0/gio/
-
-EXTRA_DIST = \
- gio-marshal.list $(NULL)
-
-CLEANFILES = \
- $(marshal_sources) $(NULL)
-
-no_undefined = \
- -no-undefined
-
-giounixinclude_HEADERS = \
- gunixmounts.h $(NULL)
-
GLIB_GEN_MARSHAL = ..\gobject\glib-genmarshal.exe
gio-marshal.h: gio-marshal.list
@@ -226,12 +220,13 @@ local_sources = \
all : \
$(PRJ_TOP)\config.h \
+ sub-all \
gioalias.h \
gioaliasdef.c \
gio-marshal.c \
gioenumtypes.h \
gioenumtypes.c \
- libgio-$(PKG_VER).dll
+ libgio-$(PKG_VER)-0.dll
$(PRJ_TOP)\config.h: $(PRJ_TOP)\config.h.win32
@@ -255,16 +250,17 @@ gio.def: gio.symbols
-DG_GNUC_MALLOC= -DG_GNUC_CONST= -DG_GNUC_NULL_TERMINATED= -DG_GNUC_NORETURN= \
-DG_GNUC_PRINTF=;G_GNUC_PRINTF gio.symbols >> gio.def
-gwin32directorymonitor.obj : win32\gwin32directorymonitor.c
- $(CC) $(CFLAGS) -I win32 -c win32\gwin32directorymonitor.c
-
RESOURCE = $(PACKAGE).res
-libgio-$(PKG_VER).dll : $(OBJECTS) $(PACKAGE).def
- $(CC) $(CFLAGS) -LD -Felibgio-$(PKG_VER).dll $(OBJECTS) \
+$(PACKAGE).res : $(PACKAGE).rc
+ rc -DBUILDNUMBER=0 -r -fo $(PACKAGE).res $(PACKAGE).rc
+
+libgio-$(PKG_VER)-0.dll : $(OBJECTS) win32\giowin32.lib $(PACKAGE).def $(RESOURCE)
+ $(CC) $(CFLAGS) -LD -Felibgio-$(PKG_VER)-0.dll $(OBJECTS) $(RESOURCE) \
..\glib\glib-2.0.lib ..\gobject\gobject-2.0.lib ..\gmodule\gmodule-2.0.lib \
+ win32\giowin32.lib \
$(INTL_LIBS) \
- kernel32.lib user32.lib advapi32.lib shell32.lib wsock32.lib mpr.lib $(LDFLAGS) \
+ kernel32.lib user32.lib advapi32.lib shell32.lib wsock32.lib ws2_32.lib dnsapi.lib mpr.lib $(LDFLAGS) \
/implib:gio-2.0.lib /def:$(PACKAGE).def
.c.obj :
diff --git a/gio/win32/makefile.msc b/gio/win32/makefile.msc
new file mode 100644
index 000000000..d3946a2a2
--- /dev/null
+++ b/gio/win32/makefile.msc
@@ -0,0 +1,35 @@
+TOP = ..\..\..
+PRJ_TOP = ..\..
+PACKAGE = giowin32
+PKG_VER = 2.0
+!INCLUDE $(TOP)\glib\build\win32\make.msc
+
+INCLUDES = \
+ -FImsvc_recommended_pragmas.h \
+ -I .. -I ..\.. -I ..\..\glib -I ..\..\gmodule -I . \
+ $(INTL_CFLAGS)
+
+DEFINES = \
+ -DG_LOG_DOMAIN=\"GLib-GIO\" \
+ -DGIO_MODULE_DIR=\"$(libdir)/gio/modules\" \
+ -DGIO_COMPILATION
+
+OBJECTS = \
+ gwin32directorymonitor.obj \
+ gwinhttpfile.obj \
+ gwinhttpfileinputstream.obj \
+ gwinhttpfileoutputstream.obj \
+ gwinhttpvfs.obj \
+
+all : \
+ $(PRJ_TOP)\config.h \
+ $(PACKAGE).lib
+
+$(PRJ_TOP)\config.h: $(PRJ_TOP)\config.h.win32
+ copy $(PRJ_TOP)\config.h.win32 $(PRJ_TOP)\config.h
+
+$(PACKAGE).lib : $(OBJECTS)
+ lib /out:$(PACKAGE).lib $(OBJECTS)
+
+.c.obj :
+ $(CC) $(CFLAGS) -c $(PKG_CFLAGS) $<