File tree Expand file tree Collapse file tree 3 files changed +24
-4
lines changed Expand file tree Collapse file tree 3 files changed +24
-4
lines changed Original file line number Diff line number Diff line change 1
1
# NMake Makefile portion for enabling features for Windows builds
2
2
3
3
# These are the base minimum libraries required for building glibmm.
4
- BASE_INCLUDES = /I$(PREFIX ) \include
4
+ !ifndef INCLUDEDIR
5
+ INCLUDEDIR = $(PREFIX ) \include
6
+ !endif
7
+ !ifndef LIBDIR
8
+ LIBDIR = $(PREFIX ) \lib
9
+ !endif
10
+
11
+ BASE_INCLUDES = /I$(INCLUDEDIR )
5
12
6
13
# Please do not change anything beneath this line unless maintaining the NMake Makefiles
7
14
LIBXMLXX_MAJOR_VERSION = 5
@@ -19,8 +26,8 @@ LIBXMLXX_BASE_CFLAGS = \
19
26
/std:c++17
20
27
21
28
LIBXMLXX_EXTRA_INCLUDES = \
22
- /I$(PREFIX ) \include \libxml2 \
23
- /I$(PREFIX ) \include
29
+ /I$(INCLUDEDIR ) \libxml2 \
30
+ /I$(INCLUDEDIR )
24
31
25
32
LIBXMLXX_CFLAGS = /DLIBXMLPP_BUILD $(LIBXMLXX_BASE_CFLAGS ) $(LIBXMLXX_EXTRA_INCLUDES )
26
33
LIBXMLXX_EX_CFLAGS = $(LIBXMLXX_BASE_CFLAGS ) $(LIBXMLXX_EXTRA_INCLUDES )
Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ LDFLAGS_ARCH = /machine:x86
160
160
CFLAGS_NOGL = $(CFLAGS_ADD_NO_GL ) /W3 /Zi
161
161
CFLAGS = $(CFLAGS_ADD ) /W3 /Zi
162
162
163
- LDFLAGS_BASE = $(LDFLAGS_ARCH ) /libpath:$(PREFIX ) \lib /DEBUG
163
+ LDFLAGS_BASE = $(LDFLAGS_ARCH ) /libpath:$(LIBDIR ) /DEBUG
164
164
165
165
!if "$(CFG)" == "debug" || "$(CFG)" == "Debug"
166
166
ARFLAGS_NOLTCG = $(LDFLAGS_ARCH )
Original file line number Diff line number Diff line change 32
32
@echo.
33
33
@echo USE_MESON_LIBS: Use DLLs and LIBs of C++ dependencies that are built with Meson,
34
34
@echo as applicable.
35
+ @echo.
36
+ @echo PERL: Full path to PERL interpreter, if not already in PATH, needed to generate
37
+ @echo libxml++config.h and libxml++.rc if not already present in .\l ibxml++.
38
+ @echo.
39
+ @echo PREFIX: Base directory to look for dependencies and location for where the
40
+ @echo build results are copied, default is in ..\. .\^ $(short_vs_ver ) \^ $(platform )
41
+ @echo.
42
+ @echo INCLUDEDIR: Base include directory to look for dependenct headers,
43
+ @echo such as libxml2, default is in ^$(PREFIX ) \i nclude.
44
+ @echo.
45
+ @echo LIBDIR: Base directory to look for dependent libraries, such as libxml2,
46
+ @echo default is in ^$(PREFIX ) \l ib.
47
+ @echo.
35
48
@echo ======
36
49
@echo A ' clean' target is supported to remove all generated files, intermediate
37
50
@echo object files and binaries for the specified configuration.
You can’t perform that action at this time.
0 commit comments