summary refs log tree commit diff stats
path: root/src/common/common.vcxproj
diff options
context:
space:
mode:
authorArnavion <arnavion@gmail.com>2014-03-18 10:44:53 -0700
committerArnavion <arnavion@gmail.com>2014-03-18 10:44:53 -0700
commit4cc764256c55c7b1da3f43750e76a45e6a593d94 (patch)
tree934fa575c919b104ea24938ed1718f3c3a724ab5 /src/common/common.vcxproj
parent36950c0d46da62b4c5a8d272f2fd0945c0c866e1 (diff)
win32: Powershell.exe absolutely needs "-File" when running scripts or else it parses arguments with spaces as separate parameters.
Diffstat (limited to 'src/common/common.vcxproj')
-rw-r--r--src/common/common.vcxproj4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/common.vcxproj b/src/common/common.vcxproj
index 17a8d829..3ae891d5 100644
--- a/src/common/common.vcxproj
+++ b/src/common/common.vcxproj
@@ -160,8 +160,8 @@
     <PreBuildEvent>

       <Command><![CDATA[

 SET SOLUTIONDIR=$(SolutionDir)..\

-powershell "$(SolutionDir)..\version-template.ps1" "$(SolutionDir)..\config-win32.h.tt" "$(SolutionDir)..\config-win32.h"

-powershell "$(SolutionDir)..\version-template.ps1" "$(SolutionDir)..\win32\version.txt.tt" "$(SolutionDir)..\win32\version.txt.tmp"

+powershell -File "$(SolutionDir)..\version-template.ps1" "$(SolutionDir)..\config-win32.h.tt" "$(SolutionDir)..\config-win32.h"

+powershell -File "$(SolutionDir)..\version-template.ps1" "$(SolutionDir)..\win32\version.txt.tt" "$(SolutionDir)..\win32\version.txt.tmp"

 REM version.txt must be in UTF-8 without trailing newline

 powershell "[string] $content = Get-Content '$(SolutionDir)..\win32\version.txt.tmp' -Encoding UTF8; [System.IO.File]::WriteAllText('$(SolutionDir)..\win32\version.txt', $content); Remove-Item '$(SolutionDir)..\win32\version.txt.tmp';"

 "$(DepsRoot)\bin\glib-genmarshal.exe" --prefix=_hexchat_marshal --header "$(ProjectDir)marshalers.list" > "$(ProjectDir)marshal.h"