blob: 2b96c393c2f482465ec4d336f95d4950e8058c14 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
# NMake Makefile portion for enabling features for Windows builds
# These are the base minimum libraries required for building cairomm.
BASE_INCLUDES = /I$(PREFIX)\include
# Please do not change anything beneath this line unless maintaining the NMake Makefiles
CAIROMM_MAJOR_VERSION = 1
CAIROMM_MINOR_VERSION = 0
LIBSIGC_MAJOR_VERSION = 2
LIBSIGC_MINOR_VERSION = 0
!if "$(CFG)" == "debug" || "$(CFG)" == "Debug"
DEBUG_SUFFIX = -d
!else
DEBUG_SUFFIX =
!endif
CAIROMM_BASE_CFLAGS = \
/D_CRT_SECURE_NO_WARNINGS \
/D_CRT_NONSTDC_NO_WARNINGS \
/I.. /I.\cairomm \
/D_USE_MATH_DEFINES \
/EHsc
!if $(VSVER) > 12
CAIROMM_BASE_CFLAGS = $(CAIROMM_BASE_CFLAGS) /utf-8
!endif
!ifdef BUILD_COMPAT_LIB
CAIROMM_BASE_CFLAGS = $(CAIROMM_BASE_CFLAGS) /DCAIROMM_USE_GENDEF
EXTRA_CAIROMM_DEPENDENCIES = \
vs$(VSVER)\$(CFG)\$(PLAT)\cairomm\cairomm.def
EXTRA_CAIROMM_LDFLAG = /def:vs$(VSVER)\$(CFG)\$(PLAT)\cairomm\cairomm.def
!else
EXTRA_CAIROMM_DEPENDENCIES =
EXTRA_CAIROMM_LDFLAG =
!endif
CAIROMM_EXTRA_INCLUDES = \
/I$(PREFIX)\include\sigc++-$(LIBSIGC_MAJOR_VERSION).$(LIBSIGC_MINOR_VERSION) \
/I$(PREFIX)\lib\sigc++-$(LIBSIGC_MAJOR_VERSION).$(LIBSIGC_MINOR_VERSION)\include \
/I$(PREFIX)\include
LIBCAIROMM_CFLAGS = /DCAIROMM_BUILD $(CAIROMM_BASE_CFLAGS) $(CAIROMM_EXTRA_INCLUDES)
CAIROMM_EX_CFLAGS = $(CAIROMM_BASE_CFLAGS) $(CAIROMM_EXTRA_INCLUDES)
CAIROMM_TEST_CFLAGS = \
$(CAIROMM_EX_CFLAGS) \
/DBOOST_TEST_MODULE=$(<B:test-=) \
/DPNG_STREAM_FILE=\"$(MAKEDIR:\=/)/../tests/png-stream-test.png\"
CAIROMM_INT_SOURCES = $(cairomm_cc:/=\)
CAIROMM_INT_HDRS = $(cairomm_public_h:/=\)
# We build cairomm-vc$(VSVER_LIB)-$(CAIROMM_MAJOR_VERSION)_$(CAIROMM_MINOR_VERSION).dll or
# cairomm-vc$(VSVER_LIB)-d-$(CAIROMM_MAJOR_VERSION)_$(CAIROMM_MINOR_VERSION).dll at least
!if $(VSVER) > 14 && "$(USE_COMPAT_LIBS)" != ""
VSVER_LIB = $(PDBVER)0
MESON_VSVER_LIB =
!else
VSVER_LIB = $(PDBVER)$(VSVER_SUFFIX)
MESON_VSVER_LIB = -vc$(VSVER_LIB)
!endif
!ifdef USE_MESON_LIBS
LIBSIGC_LIBNAME = sigc-$(LIBSIGC_MAJOR_VERSION).$(LIBSIGC_MINOR_VERSION)
CAIROMM_LIBNAME = cairomm$(MESON_VSVER_LIB)-$(CAIROMM_MAJOR_VERSION).$(CAIROMM_MINOR_VERSION)
CAIROMM_DLLNAME = $(CAIROMM_LIBNAME)-1
!else
LIBSIGC_LIBNAME = sigc-vc$(PDBVER)0$(DEBUG_SUFFIX)-$(LIBSIGC_MAJOR_VERSION)_$(LIBSIGC_MINOR_VERSION)
CAIROMM_LIBNAME = cairomm-vc$(VSVER_LIB)$(DEBUG_SUFFIX)-$(CAIROMM_MAJOR_VERSION)_$(CAIROMM_MINOR_VERSION)
CAIROMM_DLLNAME = $(CAIROMM_LIBNAME)
!endif
LIBSIGC_LIB = $(LIBSIGC_LIBNAME).lib
CAIROMM_DLL = vs$(VSVER)\$(CFG)\$(PLAT)\$(CAIROMM_DLLNAME).dll
CAIROMM_LIB = vs$(VSVER)\$(CFG)\$(PLAT)\$(CAIROMM_LIBNAME).lib
CAIRO_LIB = cairo.lib
GENDEF = vs$(VSVER)\$(CFG)\$(PLAT)\gendef.exe
!ifdef BOOST_DLL
CAIROMM_EX_CFLAGS = $(CAIROMM_EX_CFLAGS) /DBOOST_ALL_DYN_LINK
!endif
|