Update Visual Studio README.txt's

-The VS2010 README.txt should have Windows CRLF EOL.
-Tell people about the added dependency on LibFFI
This commit is contained in:
Chun-wei Fan 2011-06-29 14:07:38 +08:00
parent 1777614600
commit d1e26c51c8
2 changed files with 78 additions and 56 deletions

View File

@ -1,56 +1,67 @@
Note that all this is rather experimental. Note that all this is rather experimental.
This VS10 solution and the projects it includes are intented to be used 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 in a GLib source tree unpacked from a tarball. In a git checkout you
first need to use some Unix-like environment or manual work to expand first need to use some Unix-like environment or manual work to expand
the .in files needed, mainly config.h.win32.in into config.h.win32 and the .in files needed, mainly config.h.win32.in into config.h.win32 and
glibconfig.h.win32.in into glibconfig.h.win32. You will also need to glibconfig.h.win32.in into glibconfig.h.win32. You will also need to
expand the .vcprojin files here into .vcproj files. expand the .vcprojin files here into .vcproj files.
The required dependencies are zlib and proxy-libintl. Fetch the latest The required dependencies are zlib, proxy-libintl and LibFFI. Fetch the latest
proxy-libintl-dev and zlib-dev zipfiles from proxy-libintl-dev and zlib-dev zipfiles from
http://ftp.gnome.org/pub/GNOME/binaries/win32/dependencies/ for 32-bit http://ftp.gnome.org/pub/GNOME/binaries/win32/dependencies/ for 32-bit
builds, and correspondingly builds, and correspondingly
http://ftp.gnome.org/pub/GNOME/binaries/win64/dependencies/ for 64-bit http://ftp.gnome.org/pub/GNOME/binaries/win64/dependencies/ for 64-bit
builds. builds.
One may wish to build his/her own ZLib-It is recommended that ZLib is 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 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. to avoid linking problems-see win32/Makefile.msc in ZLib for more details.
One may optionally use his/her own PCRE installation by selecting the For LibFFI, please get version 3.0.10rc8 or later, as Visual C++ build support
(BuildType)_ExtPCRE configuration, but please note the PCRE must be built was added in the 3.0.10(rc) release series. Please see the README file that
with VS10 with unicode support using the /MD (release) or /MDd (debug) comes with the LibFFI source package for more details on how to build LibFFI
runtime option which corresponds to your GLib build flavour (release, debug). on Visual C++-please note that the mozilla-build package from Mozilla is needed
(These are the defaults set by CMAKE, which is used in recent versions of PCRE.) in order to build LibFFI on Windows.
Not doing so will most probably result in unexpected crashes in
your programs due to the use of different CRTs. If using a static PCRE One may optionally use his/her own PCRE installation by selecting the
build, add PCRE_STATIC to the "preprocessor definitions". (BuildType)_ExtPCRE configuration, but please note the PCRE must be built
Note that one may still continue to build with the bundled PCRE by selecting with VS10 with unicode support using the /MD (release) or /MDd (debug)
the (BuildType) configuration. runtime option which corresponds to your GLib build flavour (release, debug).
(These are the defaults set by CMAKE, which is used in recent versions of PCRE.)
Set up the source tree as follows under some arbitrary top Not doing so will most probably result in unexpected crashes in
folder <root>: your programs due to the use of different CRTs. If using a static PCRE
build, add PCRE_STATIC to the "preprocessor definitions".
<root>\<this-glib-source-tree> Note that one may still continue to build with the bundled PCRE by selecting
<root>\vs10\<PlatformName> the (BuildType) configuration.
*this* file you are now reading is thus located at Set up the source tree as follows under some arbitrary top
<root>\<this-glib-source-tree>\build\win32\vs10\README. folder <root>:
<PlatformName> is either Win32 or x64, as in VS10 project files. <root>\<this-glib-source-tree>
<root>\vs10\<PlatformName>
You should unpack the proxy-libintl-dev zip file into
<root>\vs10\<PlatformName>, so that for instance libintl.h end up at *this* file you are now reading is thus located at
<root>\vs10\<PlatformName>\include\libintl.h. <root>\<this-glib-source-tree>\build\win32\vs10\README.
The "install" project will copy build results and headers into their <PlatformName> is either Win32 or x64, as in VS10 project files.
appropriate location under <root>\vs10\<PlatformName>. For instance,
built DLLs go into <root>\vs10\<PlatformName>\bin, built LIBs into You should unpack the proxy-libintl-dev zip file into
<root>\vs10\<PlatformName>\lib and GLib headers into <root>\vs10\<PlatformName>, so that for instance libintl.h end up at
<root>\vs10\<PlatformName>\include\glib-2.0. This is then from where <root>\vs10\<PlatformName>\include\libintl.h.
project files higher in the stack are supposed to look for them, not
from a specific GLib source tree. For LibFFI, one should also put the generated ffi.h and ffitarget.h
into <root>\vs10\<PlatformName>\include\ and the compiled static libffi.lib
--Tor Lillqvist <tml@iki.fi> (or copy libffi-convenience.lib into libffi.lib) into
--Updated by Chun-wei Fan <fanc999@gmail.com> <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.
--Tor Lillqvist <tml@iki.fi>
--Updated by Chun-wei Fan <fanc999@gmail.com>

View File

@ -18,6 +18,12 @@ One may wish to build his/her own ZLib-It is recommended that ZLib is
built using the win32/Makefile.msc makefile with VS9 with the ASM routines built using the win32/Makefile.msc makefile with VS9 with the ASM routines
to avoid linking problems-see win32/Makefile.msc in ZLib for more details. to avoid linking problems-see win32/Makefile.msc in ZLib for more details.
For LibFFI, please get version 3.0.10rc8 or later, as Visual C++ build support
was added in the 3.0.10(rc) release series. Please see the README file that
comes with the LibFFI source package for more details on how to build LibFFI
on Visual C++-please note that the mozilla-build package from Mozilla is needed
in order to build LibFFI on Windows.
One may optionally use his/her own PCRE installation by selecting the One may optionally use his/her own PCRE installation by selecting the
(BuildType)_ExtPCRE configuration, but please note the PCRE must be built (BuildType)_ExtPCRE configuration, but please note the PCRE must be built
with VS9 with unicode support using the /MD (release) or /MDd (debug) with VS9 with unicode support using the /MD (release) or /MDd (debug)
@ -44,6 +50,11 @@ You should unpack the proxy-libintl-dev zip file into
<root>\vs9\<PlatformName>, so that for instance libintl.h end up at <root>\vs9\<PlatformName>, so that for instance libintl.h end up at
<root>\vs9\<PlatformName>\include\libintl.h. <root>\vs9\<PlatformName>\include\libintl.h.
For LibFFI, one should also put the generated ffi.h and ffitarget.h
into <root>\vs9\<PlatformName>\include\ and the compiled static libffi.lib
(or copy libffi-convenience.lib into libffi.lib) into
<root>\vs9\<PlatformName>\lib\.
The "install" project will copy build results and headers into their The "install" project will copy build results and headers into their
appropriate location under <root>\vs9\<PlatformName>. For instance, appropriate location under <root>\vs9\<PlatformName>. For instance,
built DLLs go into <root>\vs9\<PlatformName>\bin, built LIBs into built DLLs go into <root>\vs9\<PlatformName>\bin, built LIBs into