glib/win32/vs10
Chun-wei Fan 213c31a49d build: Change DLL naming in Visual Studio projects
The previous commit to glib/glibconfig.h.win32.in, though it improves
the state of GLib and fixes bugs, cannot be used as a drop-in
replacement for code that builds against the previous
glib/glibconfig.h(.win32.in) that were build using the Visual Studio
projects.  Change the DLL names as a result so that the likelihood of
problems caused by replacing existing GLib DLLs can be reduced--code
that was built against previous GLib MSVC builds should be rebuilt, so
that things will work with the newer DLLs, instead of depending on the
older DLLs.

Note that if Visual Studio builds are done through Meson, existing code
that link against GLib should be rebuilt as well, for the same reason.
DLLs built with the Visual Studio projects from 2.55.0 onwards should be
compatible with the ones that are built with Visual Studio via Meson.
2017-09-15 12:56:40 +08:00
..
.gitignore Visual Studio builds: Move project files to win32/ 2017-01-09 14:00:46 +08:00
gdbus.vcxproj Visual Studio builds: Move project files to win32/ 2017-01-09 14:00:46 +08:00
gdbus.vcxproj.filters Visual Studio builds: Move project files to win32/ 2017-01-09 14:00:46 +08:00
gio-querymodules.vcxproj Visual Studio builds: Move project files to win32/ 2017-01-09 14:00:46 +08:00
gio-querymodules.vcxproj.filters Visual Studio builds: Move project files to win32/ 2017-01-09 14:00:46 +08:00
gio-tool.vcxproj.filtersin Visual Studio builds: Move project files to win32/ 2017-01-09 14:00:46 +08:00
gio-tool.vcxprojin Visual Studio builds: Move project files to win32/ 2017-01-09 14:00:46 +08:00
gio.vcxproj.filtersin Visual Studio builds: Move project files to win32/ 2017-01-09 14:00:46 +08:00
gio.vcxprojin Visual Studio 201x builds: Fix GIO x64 Debug builds 2017-04-05 00:15:26 +08:00
glib-build-defines.props Visual Studio builds: Use the Centricular fork of libffi 2017-06-14 10:51:55 +08:00
glib-compile-resources.vcxproj.filtersin Visual Studio builds: Move project files to win32/ 2017-01-09 14:00:46 +08:00
glib-compile-resources.vcxprojin Visual Studio builds: Move project files to win32/ 2017-01-09 14:00:46 +08:00
glib-compile-schemas.vcxproj.filtersin Visual Studio builds: Move project files to win32/ 2017-01-09 14:00:46 +08:00
glib-compile-schemas.vcxprojin Visual Studio builds: Move project files to win32/ 2017-01-09 14:00:46 +08:00
glib-gen-srcs.props Visual Studio builds: Redo utility script generation 2017-05-24 15:43:59 +08:00
glib-install.propsin Visual Studio builds: Use PythonDir instead of PythonPath 2017-07-13 17:45:44 +08:00
glib-install.vcxproj win32: Update MSVC projects for glib-genmarshal 2017-07-12 18:00:22 +08:00
glib-install.vcxproj.filters win32: Update MSVC projects for glib-genmarshal 2017-07-12 18:00:22 +08:00
glib-version-paths.props.in build: Change DLL naming in Visual Studio projects 2017-09-15 12:56:40 +08:00
glib.sln win32: Update MSVC projects for glib-genmarshal 2017-07-12 18:00:22 +08:00
glib.vcxproj.filtersin Visual Studio builds: Move project files to win32/ 2017-01-09 14:00:46 +08:00
glib.vcxprojin Visual Studio builds: Move project files to win32/ 2017-01-09 14:00:46 +08:00
gmodule.vcxproj Visual Studio builds: Move project files to win32/ 2017-01-09 14:00:46 +08:00
gmodule.vcxproj.filters Visual Studio builds: Move project files to win32/ 2017-01-09 14:00:46 +08:00
gobject.vcxproj.filtersin Visual Studio builds: Redo utility script generation 2017-05-24 15:43:59 +08:00
gobject.vcxprojin Visual Studio builds: Use the Centricular fork of libffi 2017-06-14 10:51:55 +08:00
gresource.vcxproj Visual Studio builds: Move project files to win32/ 2017-01-09 14:00:46 +08:00
gresource.vcxproj.filters Visual Studio builds: Move project files to win32/ 2017-01-09 14:00:46 +08:00
gsettings.vcxproj Visual Studio builds: Move project files to win32/ 2017-01-09 14:00:46 +08:00
gsettings.vcxproj.filters Visual Studio builds: Move project files to win32/ 2017-01-09 14:00:46 +08:00
gspawn-win32-helper-console.vcxproj Visual Studio builds: Move project files to win32/ 2017-01-09 14:00:46 +08:00
gspawn-win32-helper-console.vcxproj.filters Visual Studio builds: Move project files to win32/ 2017-01-09 14:00:46 +08:00
gspawn-win32-helper.vcxproj Visual Studio builds: Move project files to win32/ 2017-01-09 14:00:46 +08:00
gspawn-win32-helper.vcxproj.filters Visual Studio builds: Move project files to win32/ 2017-01-09 14:00:46 +08:00
gthread.vcxproj Visual Studio builds: Move project files to win32/ 2017-01-09 14:00:46 +08:00
gthread.vcxproj.filters Visual Studio builds: Move project files to win32/ 2017-01-09 14:00:46 +08:00
Makefile.am win32: Update MSVC projects for glib-genmarshal 2017-07-12 18:00:22 +08:00
README.txt Visual Studio builds: Use PythonDir instead of PythonPath 2017-07-13 17:45:44 +08:00

Please do not compile this package (GLib) in paths that contain
spaces in them-as strange problems may occur during compilation or during
the use of the library.

Please refer to the following GNOME Live! page for more detailed
instructions on building GLib and its dependencies with Visual C++:

https://wiki.gnome.org/Projects/GTK%2B/Win32/MSVCCompilationOfGTKStack

This VS10 solution and the projects it includes are intented to be used
in a GLib source tree unpacked from a tarball. In a git checkout you
first need to use some Unix-like environment or run build/win32/setup.py, 
which will do the work for you:

$python build/win32/setup.py --perl path_to_your_perl.exe

for more usage on this script, run
$python build/win32/setup.py -h/--help

The required dependencies are zlib, proxy-libintl and LibFFI. Fetch the latest
proxy-libintl-dev and zlib-dev zipfiles from
http://ftp.gnome.org/pub/GNOME/binaries/win32/dependencies/ for 32-bit
builds, and correspondingly
http://ftp.gnome.org/pub/GNOME/binaries/win64/dependencies/ for 64-bit
builds.

A Python 2.7.x or 3.x interpreter is also required, in order to generate
the utility scripts, as well as the pkg-config files for the build.  Please
see the entry "PythonDir" in glib-version-paths.props to verify that
it is correct.

One may wish to build his/her own ZLib-It is recommended that ZLib is
built using the win32/Makefile.msc makefile with VS10 with the ASM routines
to avoid linking problems-see win32/Makefile.msc in ZLib for more details.

For LibFFI, please use the Centricular fork of it, which can be found at
https://github.com/centricular/libffi.  Please refer to the instructions
there on building, as it involves using the Meson build system and possibly
the Ninja build tool if the Visual Studio project generation is not used
or is unavailable.

Please note, although using one's own existing PCRE installation to build GLib
is possible, it is still recommended to build PCRE during the process of building
GLib (i.e. using the Debug or Release configurations), as GLib's bundled PCRE
has been patched to work optimally with GLib.  If building against an existing
PCRE is desired, use the(BuildType)_ExtPCRE configurations, but one needs to ensure
that the existing PCRE is:
-Built with VS10
-Unicode support is built in (please see the CMake options for this)
-It is built with the Multithreaded DLL (/MD, for release builds) or the
 Multithreaded DLL Debug (/MDd, for debug builds)

If using static builds of PCRE, please add PCRE_STATIC to the "Preprocessor
Definitions" of the glib project settings.

Please be aware that the GLib's regex test program will only pass with PCRE directly
built into GLib.

Set up the source tree as follows under some arbitrary top
folder <root>:

<root>\<this-glib-source-tree>
<root>\vs10\<PlatformName>

*this* file you are now reading is thus located at
<root>\<this-glib-source-tree>\build\win32\vs10\README.

<PlatformName> is either Win32 or x64, as in VS10 project files.

You should unpack the proxy-libintl-dev zip file into
<root>\vs10\<PlatformName>, so that for instance libintl.h end up at
<root>\vs10\<PlatformName>\include\libintl.h.

For LibFFI, one should also put the generated ffi.h and ffitarget.h
into <root>\vs10\<PlatformName>\include\ and the compiled static libffi.lib
(or copy libffi-convenience.lib into libffi.lib) into 
<root>\vs10\<PlatformName>\lib\.

The "install" project will copy build results and headers into their
appropriate location under <root>\vs10\<PlatformName>. For instance,
built DLLs go into <root>\vs10\<PlatformName>\bin, built LIBs into
<root>\vs10\<PlatformName>\lib and GLib headers into
<root>\vs10\<PlatformName>\include\glib-2.0. This is then from where
project files higher in the stack are supposed to look for them, not
from a specific GLib source tree.

Note: If you see C4819 errors and you are compiling GLib on a DBCS
(Chinese/Korean/Japanese) version of Windows, you may need to switch
to an English locale in Control Panel->Region and Languages->System->
Change System Locale, reboot and rebuild to ensure GLib, Pango, GDK-Pixbuf,
ATK and GTK+ is built correctly.  This is due to a bug in Visual C++ running
on DBCS locales, and also affects many other opensource projects which are
built with Visual C++, including but not limited to QT and the Mozilla apps.

--Tor Lillqvist <tml@iki.fi>
--Updated by Chun-wei Fan <fanc999@gmail.com>