From 33549086bc0af9e2cbc2910ae2cb9ba67b99ea0c Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Wed, 15 Jun 2016 16:21:03 +0800 Subject: [PATCH] Visual Studio builds: Refine .pc creation We may not have $(CopyDir) created, which the script that generates the .pc files check for, so create it if it is not there. This makes things a bit more convenient for people. --- build/win32/vs10/glib-install.propsin | 2 +- build/win32/vs9/glib-install.vspropsin | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build/win32/vs10/glib-install.propsin b/build/win32/vs10/glib-install.propsin index 81f5e6397..a874f4c96 100644 --- a/build/win32/vs10/glib-install.propsin +++ b/build/win32/vs10/glib-install.propsin @@ -86,7 +86,7 @@ mkdir $(CopyDir)\share\glib-$(ApiVersion)\codegen copy ..\..\..\gio\gdbus-2.0\codegen\*.py $(CopyDir)\share\glib-$(ApiVersion)\codegen ..\gio-windows-2.0.pc;..\gio-2.0.pc;..\gobject-2.0.pc;..\gmodule-no-export-2.0.pc;..\gmodule-export-2.0.pc;..\gmodule-2.0.pc;..\gthread-2.0.pc;..\glib-2.0.pc - if exist $(PythonPath)\python.exe $(PythonPath)\python.exe ..\glibpc.py --prefix=$(CopyDir) --version=$(GlibVersion) + (if not exist $(CopyDir) mkdir $(CopyDir)) & (if exist $(PythonPath)\python.exe $(PythonPath)\python.exe ..\glibpc.py --prefix=$(CopyDir) --version=$(GlibVersion)) <_PropertySheetDisplayName>glibinstallprops diff --git a/build/win32/vs9/glib-install.vspropsin b/build/win32/vs9/glib-install.vspropsin index 24c96485b..41fd26299 100644 --- a/build/win32/vs9/glib-install.vspropsin +++ b/build/win32/vs9/glib-install.vspropsin @@ -85,6 +85,6 @@ copy ..\..\..\gio\gdbus-2.0\codegen\*.py $(CopyDir)\share\glib-$(ApiVersion)\cod />