summaryrefslogtreecommitdiff
path: root/MSVC_NMake/config-msvc.mak
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2020-02-26 10:50:24 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2020-02-26 11:13:51 +0800
commit9ec8f10bd5aec50f8acecbc41a6f918c4a151ec0 (patch)
tree8732f47334d5c8ca22ee6568311c3e8c3727f670 /MSVC_NMake/config-msvc.mak
parent8a7e8e86a4456564fd9e91e048c3e8f114488acf (diff)
downloadglibmm-9ec8f10bd5aec50f8acecbc41a6f918c4a151ec0.tar.gz
MSVC_NMake: Add rules to generate and build sources
...from a GIT checkout, from the various .ccg/.hg and the *.[cc|h].m4 sources, as well as the wrap_init.cc sources. This will obviously require PERL, as well as a Cygwin or MSYS installation that has a working m4 executable for Windows for this to work. Note that release tarballs continue to build on Visual Studio as they did before, without the need for PERL nor m4. Note that this does not yet support generating [glib|gio]mmconfig.h nor [glib|gio]mm.rc from their .in counterparts, as well as tools\gmmproc and tools\generate_wrap_init.pl, which will be done in a later commit.
Diffstat (limited to 'MSVC_NMake/config-msvc.mak')
-rw-r--r--MSVC_NMake/config-msvc.mak12
1 files changed, 10 insertions, 2 deletions
diff --git a/MSVC_NMake/config-msvc.mak b/MSVC_NMake/config-msvc.mak
index 2c058ea7..53ab1aa1 100644
--- a/MSVC_NMake/config-msvc.mak
+++ b/MSVC_NMake/config-msvc.mak
@@ -18,12 +18,20 @@ DEBUG_SUFFIX = -d
DEBUG_SUFFIX =
!endif
+!ifndef M4
+M4 = m4
+!endif
+
GLIBMM_BASE_CFLAGS = \
- /I..\glib /I.\glibmm \
+ /Ivs$(VSVER)\$(CFG)\$(PLAT) \
+ /I..\glib /I..\glib\glibmm /I.\glibmm \
/wd4530 /std:c++17 \
/FImsvc_recommended_pragmas.h
-GIOMM_BASE_CFLAGS = /I..\gio /I.\giomm $(GLIBMM_BASE_CFLAGS)
+GIOMM_BASE_CFLAGS = \
+ /Ivs$(VSVER)\$(CFG)\$(PLAT) \
+ /I..\gio /I..\gio\giomm /I.\giomm \
+ $(GLIBMM_BASE_CFLAGS)
GLIBMM_EXTRA_INCLUDES = \
/I$(PREFIX)\include\gio-win32-$(GLIB_API_VERSION) \