From e579245b1dd9e96d85d9c72cfb41fe1325a3b715 Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Mon, 28 Aug 2017 16:15:11 +0800 Subject: [PATCH] build: Prepare NMake Makefiles for MSVC project integration The build/win32/detectenv-msvc.mak needs to be updated for Visual Studio 2017, and we ought to add quotes to surround the copy destination path for the introspection files, so that we do not bail out in the copy process (cmd.exe's copy command does not like '+' in them that are not quoted). --- build/win32/detectenv-msvc.mak | 4 +++- build/win32/gtk-introspection-msvc.mak | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/build/win32/detectenv-msvc.mak b/build/win32/detectenv-msvc.mak index 61f979d4eb..6fd96ccc65 100644 --- a/build/win32/detectenv-msvc.mak +++ b/build/win32/detectenv-msvc.mak @@ -40,8 +40,10 @@ VSVER = 10 VSVER = 11 !elseif $(VCVERSION) > 1799 && $(VCVERSION) < 1900 VSVER = 12 -!elseif $(VCVERSION) > 1899 && $(VCVERSION) < 2000 +!elseif $(VCVERSION) > 1899 && $(VCVERSION) < 1910 VSVER = 14 +!elseif $(VCVERSION) > 1909 && $(VCVERSION) < 2000 +VSVER = 15 !else VSVER = 0 !endif diff --git a/build/win32/gtk-introspection-msvc.mak b/build/win32/gtk-introspection-msvc.mak index 2149650a52..6c44b64323 100644 --- a/build/win32/gtk-introspection-msvc.mak +++ b/build/win32/gtk-introspection-msvc.mak @@ -29,9 +29,9 @@ setgirbuildenv: !include introspection.body.mak -install-introspection: all - @-copy *.gir $(G_IR_INCLUDEDIR) - @-copy /b *.typelib $(G_IR_TYPELIBDIR) +install-introspection: all + @-copy *.gir "$(G_IR_INCLUDEDIR)" + @-copy /b *.typelib "$(G_IR_TYPELIBDIR)" !else all: