Skip to content

Commit a66bdbc

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 79b74f8 commit a66bdbc

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 = 3
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
LIBSIGCPP_DEFINES = /DSIGC_BUILD /D_WINDLL
@@ -27,9 +27,15 @@ LIBSIGCPP_CFLAGS = $(SIGCPP_CFLAGS) $(LIBSIGCPP_DEFINES)
2727
# We build sigc-vc$(VSVER_LIB)-$(LIBSIGC_MAJOR_VERSION)_$(LIBSIGC_MINOR_VERSION).dll or
2828
# sigc-vc$(VSVER_LIB)d-$(LIBSIGC_MAJOR_VERSION)_$(LIBSIGC_MINOR_VERSION).dll at least
2929

30-
LIBSIGC_LIBNAME = sigc-vc$(VSVER_LIB)$(LIBSIGC_DEBUG_SUFFIX)-$(LIBSIGC_MAJOR_VERSION)_$(LIBSIGC_MINOR_VERSION)
30+
!ifdef USE_MESON_LIBS
31+
LIBSIGC_LIBNAME = sigc-$(LIBSIGC_MAJOR_VERSION).$(LIBSIGC_MINOR_VERSION)
32+
LIBSIGC_DLLNAME = $(LIBSIGC_LIBNAME)-0
33+
!else
34+
LIBSIGC_LIBNAME = sigc-vc$(VSVER_LIB)$(DEBUG_SUFFIX)-$(LIBSIGC_MAJOR_VERSION)_$(LIBSIGC_MINOR_VERSION)
35+
LIBSIGC_DLLNAME = $(LIBSIGC_LIBNAME)
36+
!endif
3137

32-
LIBSIGC_DLL = vs$(VSVER)\$(CFG)\$(PLAT)\$(LIBSIGC_LIBNAME).dll
38+
LIBSIGC_DLL = vs$(VSVER)\$(CFG)\$(PLAT)\$(LIBSIGC_DLLNAME).dll
3339
LIBSIGC_LIB = vs$(VSVER)\$(CFG)\$(PLAT)\$(LIBSIGC_LIBNAME).lib
3440

3541
# If your Boost libraries are built as DLLs, use BOOST_DLL=1 in your NMake command line

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