Skip to content

Commit 6c07676

Browse files
committed
NMake Makefiles: Use Meson-style DLL and .lib naming if requested
To make things more consistent and less prone to confusion, if 'USE_MESON_LIBS' is specified in the NMake command line, build the DLLs and .lib's that are named like the Meson counterparts. Binaries built with Meson+Visual Studio and the ones that are built via NMake using 'USE_MESON_LIBS' are interchangeable.
1 parent c1f0474 commit 6c07676

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

MSVC_NMake/config-msvc.mak

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ LIBSIGC_MAJOR_VERSION = 2
99
LIBSIGC_MINOR_VERSION = 0
1010

1111
!if "$(CFG)" == "debug" || "$(CFG)" == "Debug"
12-
LIBSIGC_DEBUG_SUFFIX = -d
12+
DEBUG_SUFFIX = -d
1313
!else
14-
LIBSIGC_DEBUG_SUFFIX =
14+
DEBUG_SUFFIX =
1515
!endif
1616

1717
!ifndef M4
@@ -34,9 +34,15 @@ LIBSIGCPP_CFLAGS = $(SIGCPP_CFLAGS) $(LIBSIGCPP_DEFINES)
3434
# We build sigc-vc$(PDBVER)0-$(LIBSIGC_MAJOR_VERSION)_$(LIBSIGC_MINOR_VERSION).dll or
3535
# sigc-vc$(PDBVER)0d-$(LIBSIGC_MAJOR_VERSION)_$(LIBSIGC_MINOR_VERSION).dll at least
3636

37-
LIBSIGC_LIBNAME = sigc-vc$(PDBVER)0$(LIBSIGC_DEBUG_SUFFIX)-$(LIBSIGC_MAJOR_VERSION)_$(LIBSIGC_MINOR_VERSION)
37+
!ifdef USE_MESON_LIBS
38+
LIBSIGC_LIBNAME = sigc-$(LIBSIGC_MAJOR_VERSION).$(LIBSIGC_MINOR_VERSION)
39+
LIBSIGC_DLLNAME = $(LIBSIGC_LIBNAME)-0
40+
!else
41+
LIBSIGC_LIBNAME = sigc-vc$(PDBVER)0$(DEBUG_SUFFIX)-$(LIBSIGC_MAJOR_VERSION)_$(LIBSIGC_MINOR_VERSION)
42+
LIBSIGC_DLLNAME = $(LIBSIGC_LIBNAME)
43+
!endif
3844

39-
LIBSIGC_DLL = vs$(VSVER)\$(CFG)\$(PLAT)\$(LIBSIGC_LIBNAME).dll
45+
LIBSIGC_DLL = vs$(VSVER)\$(CFG)\$(PLAT)\$(LIBSIGC_DLLNAME).dll
4046
LIBSIGC_LIB = vs$(VSVER)\$(CFG)\$(PLAT)\$(LIBSIGC_LIBNAME).lib
4147

4248
# Note that building the benchmark requires Boost!

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy