diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2020-06-16 15:16:57 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2020-06-16 15:27:22 +0800 |
commit | 31766b449c4f87ba31ad85002e8ba9c48327f953 (patch) | |
tree | 851d2bbbd08dc2f6d854bc569d0f1a8c37a29006 /README.win32 | |
parent | b078cdb597ebe9d1d52ab0a5a25397d25da91967 (diff) | |
download | glibmm-31766b449c4f87ba31ad85002e8ba9c48327f953.tar.gz |
NMake Makefiles: Use Toolset version in DLL names by default
This updates the build to use the toolset version in the final DLL
and .lib filenames, similar to what is done in Boost, instead of
the Visual Studio version.
This means that by default, we will use 'vc141' instead of 'vc150'
in Visual Studio 2017 builds, and 'vc142' instead of 'vc160' in
Visual Studio 2019 builds.
If using the former naming is desired, use 'USE_COMPAT_LIBS=1' in
the NMake command line, albeit all such binaries will now be named
with 'vc150' in the DLL and library bames
Diffstat (limited to 'README.win32')
-rw-r--r-- | README.win32 | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/README.win32 b/README.win32 index b4ef3a9e..1852bc53 100644 --- a/README.win32 +++ b/README.win32 @@ -57,6 +57,19 @@ it must be specified via passing in GLIB_COMPILE_SCHEMAS. If using C++ dependencies that are built with Meson, specify USE_MESON_LIBS=1 in your NMake command line.
+Note that $(VSVER) refers to 15 for Visual Studio 2017 and 16 for Visual
+Studio 2019. Note that it is recommended and possibly required to build
+glibmm and anything that depends on glibmm with the same Visual Studio
+version, even for Visual Studio 2017 and 2019 which Microsoft tried
+very hard to make the binaries API and ABI compatible between these versions.
+
+The build now creates DLLs and .lib's based on the toolset version (i.e.
+'vc141' for Visual Studio 2017 builds and 'vc142' for Visual Studio 2019
+builds instead of vc$(VSVER)0 as before, to be consistent across the board).
+Since it might be desired to use the old naming scheme, a 'USE_COMPAT_LIBS=1'
+may be used for such situations, such as when re-building dependent code is
+inconvenient.
+
A 'tests' target will build the test programs for glibmm and giomm, an
'install' target is provided to copy the built DLLs and LIBs, along with
with the public headers to appropriate subdirs of $(PREFIX). A 'clean'
|