1. 01 Jun, 2013 1 commit
    • Allison Karlitskaya's avatar
      Rework the build system for a new tests approach · f9eb9eed
      Allison Karlitskaya authored
      Perform a substantial cleanup of the build system with respect to
      building and installing testcases.
      
      First, Makefile.decl has been renamed glib.mk and substantially
      expanded.  We intend to add more stuff here in the future, like canned
      rules for mkenums, marshallers, resources, etc.
      
      By default, tests are no longer compiled as part of 'make'.  They will
      be built when 'make check' is run.  The old behaviour can be obtained
      with --enable-always-build-tests.
      
      --disable-modular-tests is gone (because tests are no longer built by
      default).  There is no longer any way to cause 'make check' to be a
      no-op, but that's not very useful anyway.
      
      A new glibtests.m4 file is introduced.  Along with glib.mk, this
      provides for consistent handling of --enable-installed-tests and
      --enable-always-build-tests (mentioned above).
      
      Port our various test-installing Makefiles to the new framework.
      
      This patch substantially improves the situation in the toplevel tests/
      directory.  Things are now somewhat under control there.  There were
      some tests being built that weren't even being run and we run those now.
      The long-running GObject performance tests in this directory have been
      removed from 'make check' because they take too long.
      
      As an experiment, 'make check' now runs the testcases on win32 builds,
      by default.  We can't run them under gtester (since it uses a pipe to
      communicate with the subprocess) so just toss them in TESTS.  Most of
      them are passing on win32.
      
      Things are not quite done here, but this patch is already a substantial
      improvement.  More to come.
      f9eb9eed
  2. 18 Jan, 2013 1 commit
    • Allison Karlitskaya's avatar
      Fix visibility for glib/ and gio/ submodules · 346aa683
      Allison Karlitskaya authored
      We have various sub directories in glib/ and gio/ (eg: inotify, gnulib,
      pcre, xdgmime, etc.) that build convenience libraries that are then
      included into libglib and libgio.  The files in these directories need
      to be built with the same visibility policy as the files in the first
      level directories, so add CFLAGS for them all.
      
      This wasn't a problem when the visibility flags were set directly in
      CFLAGS but then we had to deal with some modules that we built that we
      explicitly wanted to export symbols from.
      
      For now, we can keep things the way they are because it's less hacky and
      although it's a theoretical hazard to forget these CFLAGS, we rarely add
      new subdirectories to the build.
      346aa683
  3. 15 Nov, 2012 2 commits
  4. 17 Aug, 2012 1 commit
  5. 02 Sep, 2010 1 commit
    • Tor Lillqvist's avatar
      Recuce DLL hijack risk on Windows · 6ddef375
      Tor Lillqvist authored
      Don't call LoadLibrary() on shell32.dll or kernel32.dll. kernel32.dll
      is always loaded. Shell32.dll is also already loaded as glib links to
      functions in it. So just call GetModuleHandle() on them.
      
      For mlang.dll in win_iconv.c and winhttp.dll in gwinhttpvfs.c, always
      try loading them from a complete path, from the Windows system
      directory.
      
      Use the "tool help" API to enumerate modules in gmodule-win32.c. It is
      present in all Windows versions since Windows 2000, which is all we
      support anyway. Thus no need to look that API up dynamically. Just
      link to it normally. We can bin the fallback code that attempts to use
      the psapi API.
      6ddef375
  6. 10 Aug, 2010 1 commit
  7. 06 Aug, 2010 1 commit
  8. 07 Jul, 2010 1 commit
  9. 30 Nov, 2009 1 commit
  10. 22 Oct, 2009 1 commit
    • Tor Lillqvist's avatar
      Fix GWin32DirectoryMonitor · d105f431
      Tor Lillqvist authored
      GWin32DirectoryMonitor was quite broken, but nobody had apparently
      noticed, or at least not filed any bug. Only now with a bleeding edge
      GTK+ file chooser does the code get exercised in common programs like
      gtk-demo or GIMP, apparently. Bug #598899.
      d105f431
  11. 19 Sep, 2009 1 commit
  12. 14 Aug, 2009 1 commit
  13. 30 May, 2009 1 commit
  14. 28 May, 2009 1 commit
  15. 27 May, 2009 1 commit
  16. 12 Nov, 2008 1 commit
    • Tor Lillqvist's avatar
      Bug 556415 - Crash on Windows 2000 in g_winhttp_vfs_init() · 2f575b95
      Tor Lillqvist authored
      2008-11-12  Tor Lillqvist  <tml@novell.com>
      
      	Bug 556415 - Crash on Windows 2000 in g_winhttp_vfs_init()
      
      	* win32/gwinhttpvfs.h: Move the set of function pointers to
      	winhttp.dll into a separate struct GWinHttpDllFuncs. Just have a
      	pointer to that in the GWinHttpVfsClass.
      	
      	* win32/gwinhttpvfs.c: Move the lookup of functions from
      	winhttp.dll into a function of its own, that stores the pointers
      	in a separate GWinHttpDllFuncs variable. Add two bookeeping
      	booleans lookup_done and funcs_found.
      
      	Don't call g_io_extension_point_implement() to register the
      	winhttp extension unless winhttp.dll has been successfully loaded
      	and the required functions found in it.
      
      	* win32/gwinhttp*.c: Adjust calls of the functions looked up from
      	winhttp.dll correspondingly.
      
      
      svn path=/trunk/; revision=7648
      2f575b95
  17. 27 Oct, 2008 1 commit
    • Tor Lillqvist's avatar
      Bug 557592 - Missing include in gwinhttpfile.c · 6b2d7a53
      Tor Lillqvist authored
      2008-10-27  Tor Lillqvist  <tml@novell.com>
      
      	Bug 557592 - Missing include in gwinhttpfile.c
      
      	* win32/gwinhttpfile.c: Include <wchar.h> to make it compile with
      	MSVC2008.
      
      
      svn path=/trunk/; revision=7628
      6b2d7a53
  18. 13 Aug, 2008 2 commits
    • Tor Lillqvist's avatar
      win32/gwinhttpvfs.c win32/gwinhttpvfs.h win32/gwinhttpfile.c · d5863830
      Tor Lillqvist authored
      2008-08-13  Tor Lillqvist  <tml@novell.com>
      
      	* win32/gwinhttpvfs.c
      	* win32/gwinhttpvfs.h
      	* win32/gwinhttpfile.c
      	* win32/gwinhttpfileinputstream.c
      	* win32/gwinhttpfileoutputstream.c: Refactor some common code
      	snippets into helper functions. Check HTTP response status
      	codes. Implement g_winhttp_file_query_info(), looking at
      	Content-Length, Content-Type and Last-Modified.
      
      	* win32/winhttp.h: Add some symbolic constants that are not
      	publicly documented. Just a handful, so it should be OK to use
      	information from the Windows SDK's headers.
      
      
      svn path=/trunk/; revision=7350
      d5863830
    • Tor Lillqvist's avatar
      Bug 546582 - Callbacks from GFileMonitor present a GFile in the wrong · 7ffb2b33
      Tor Lillqvist authored
      2008-08-13  Tor Lillqvist  <tml@novell.com>
      
      	Bug 546582 - Callbacks from GFileMonitor present a GFile in the
      	wrong folder
      
      	* win32/gwin32directorymonitor.c
      	(g_win32_directory_monitor_callback): Patch by Erik van Pienbroek.
      
      
      svn path=/trunk/; revision=7347
      7ffb2b33
  19. 12 Aug, 2008 2 commits
    • Tor Lillqvist's avatar
      Don't write the Content-Length header ourselves, WinHttpSendRequest() · af8ebc9e
      Tor Lillqvist authored
      2008-08-13  Tor Lillqvist  <tml@novell.com>
      
      	* win32/gwinhttpfileoutputstream.c
      	(g_winhttp_file_output_stream_write): Don't write the
      	Content-Length header ourselves, WinHttpSendRequest() takes care
      	of that when the dwTotalLength parameter is non-zero. Increment
      	offset by the number of actual bytes sent, although I wonder if
      	such a scenario is possible where less than requested would be
      	sent and accepted by the server without errors.
      
      
      svn path=/trunk/; revision=7345
      af8ebc9e
    • Tor Lillqvist's avatar
      win32/gwinhttpvfs.c win32/gwinhttpvfs.h win32/gwinhttpfile.c · 7261372b
      Tor Lillqvist authored
      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
      7261372b
  20. 03 Aug, 2008 2 commits
    • Tor Lillqvist's avatar
      win32/gwin32directorymonitor.h Whitespace cleanup to match GLib style. · 506eed4e
      Tor Lillqvist authored
      2008-08-03  Tor Lillqvist  <tml@novell.com>
      
      	* win32/gwin32directorymonitor.h
      	* win32/gwin32directorymonitor.c: Whitespace cleanup to match GLib
      	style.
      
      
      svn path=/trunk/; revision=7291
      506eed4e
    • Tor Lillqvist's avatar
      Make prototype match LPOVERLAPPED_COMPLETION_ROUTINE to avoid warning. · 3bf84fb1
      Tor Lillqvist authored
      2008-08-03  Tor Lillqvist  <tml@novell.com>
      
      	* win32/gwin32directorymonitor.c
      	(g_win32_directory_monitor_callback): Make prototype match
      	LPOVERLAPPED_COMPLETION_ROUTINE to avoid warning. Cast
      	LPOVERLAPPED parameter to local GWin32DirectoryMonitorPrivate
      	pointer.
      
      	(g_win32_directory_monitor_constructor):
      	GLocalDirectoryMonitor::dirname is in UTF-8 like all other file
      	names in the GLib API on Windows, so convert to UTF-16 and open
      	with CreateFileW().
      
      
      svn path=/trunk/; revision=7290
      3bf84fb1
  21. 02 Aug, 2008 1 commit
    • Tor Lillqvist's avatar
      Bug 541036 - Gnumeric crashes when trying to open Desktop or user's folder · 8258d686
      Tor Lillqvist authored
      2008-08-03  Tor Lillqvist  <tml@novell.com>
      
      	Bug 541036 - Gnumeric crashes when trying to open Desktop or
      	user's folder under Windows
      
      	* win32/gwin32directorymonitor.c
      	(g_win32_directory_monitor_constructor): Ignore error from
      	CreateFile() when opening directory. Instead of asserting, just
      	store INVALID_HANDLE_VALUE then in
      	GWin32DirectoryMonitorPrivate::hDirectory. Also ignore error from
      	ReadDirectoryChangesW().
      	(g_win32_directory_monitor_cancel): Don't attempt to close
      	directory handle if it is INVALID_HANDLE_VALUE.
      
      
      svn path=/trunk/; revision=7289
      8258d686
  22. 16 May, 2008 1 commit
  23. 12 Mar, 2008 1 commit
    • Tor Lillqvist's avatar
      Expand gio/win32/Makefile. · 367d7723
      Tor Lillqvist authored
      2008-03-12  Tor Lillqvist  <tml@novell.com>
      
      	* configure.in: Expand gio/win32/Makefile.
      
      2008-03-12  Tor Lillqvist  <tml@novell.com>
      
      	Bug 517419 - gio win32 directory monitor
      	Implementation by Vlad Grecescu.
      	
      	* win32/Makefile.am
      	* win32/gwin32directorymonitor.h
      	* win32/gwin32directorymonitor.c: New files.
      
      	* giomodule.c: Set up the GWin32DirectoryMonitor plumbing.
      
      	* Makefile.am: Add the win32 subdirectory.
      
      
      svn path=/trunk/; revision=6698
      367d7723