mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-29 08:56:15 +01:00
7261372b45
2008-08-13 Tor Lillqvist <tml@novell.com> * win32/gwinhttpvfs.c * win32/gwinhttpvfs.h * win32/gwinhttpfile.c * win32/gwinhttpfile.h * win32/gwinhttpfileinputstream.c * win32/gwinhttpfileinputstream.h * win32/gwinhttpfileoutputstream.c * win32/gwinhttpfileoutputstream.h: New files implementing GWinHttpVfs and related classes, a GVfs for HTTP and HTTPS URIs on Windows. The implementation uses the WinHttp API. Both reading and writing are supported, i.e. GET and PUT requests. When writing, each write call is done using a separate PUT request with a Content-Range header. Requests for file URIs and plain pathnames are forwarded to GLocalVfs. * win32/winhttp.h: Reverse engineered <winhttp.h>, borrowed from WINE. Used as there is no <winhttp.h> bundled with mingw, and requiring people to download the Windows SDK just for this one header is not reasonable. * win32/Makefile.am: Add above files. * giomodule.c: Call _g_winhttp_vfs_get_type() on Windows to set up the plumbing for the above. svn path=/trunk/; revision=7344
31 lines
668 B
Makefile
31 lines
668 B
Makefile
include $(top_srcdir)/Makefile.decl
|
|
|
|
NULL =
|
|
|
|
noinst_LTLIBRARIES = libgiowin32.la
|
|
|
|
libgiowin32_la_SOURCES = \
|
|
gwin32directorymonitor.c \
|
|
gwin32directorymonitor.h \
|
|
gwinhttpvfs.c \
|
|
gwinhttpvfs.h \
|
|
gwinhttpfile.c \
|
|
gwinhttpfile.h \
|
|
gwinhttpfileinputstream.c \
|
|
gwinhttpfileinputstream.h \
|
|
gwinhttpfileoutputstream.c \
|
|
gwinhttpfileoutputstream.h \
|
|
winhttp.h \
|
|
$(NULL)
|
|
|
|
libgiowin32_la_CFLAGS = \
|
|
-DG_LOG_DOMAIN=\"GLib-GIO\" \
|
|
-I$(top_srcdir) \
|
|
-I$(top_srcdir)/glib \
|
|
-I$(top_srcdir)/gmodule \
|
|
-I$(top_srcdir)/gio \
|
|
$(GLIB_DEBUG_FLAGS) \
|
|
-DGIO_MODULE_DIR=\"$(GIO_MODULE_DIR)\" \
|
|
-DGIO_COMPILATION \
|
|
-DG_DISABLE_DEPRECATED
|