summary refs log tree commit diff stats
path: root/src/common/common.vcxproj
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2014-02-05 20:42:48 -0500
committerTingPing <tingping@tingping.se>2014-02-06 20:17:08 -0500
commit34cf164aa28c45c15ecf39b855f2de833a9b7c2d (patch)
tree059c5235b0974f2b8bbd2a6d5188425e882e6fd6 /src/common/common.vcxproj
parent5f7321280e2dfaa097fbd4855b547069ee96edc2 (diff)
Use a single marshal file for entire project
Diffstat (limited to 'src/common/common.vcxproj')
-rw-r--r--src/common/common.vcxproj11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/common/common.vcxproj b/src/common/common.vcxproj
index 720faae7..17a8d829 100644
--- a/src/common/common.vcxproj
+++ b/src/common/common.vcxproj
@@ -24,6 +24,7 @@
     <ClInclude Include="ignore.h" />

     <ClInclude Include="inbound.h" />

     <ClInclude Include="inet.h" />

+    <ClInclude Include="marshal.h" />

     <ClInclude Include="modes.h" />

     <ClInclude Include="msproxy.h" />

     <ClInclude Include="network.h" />

@@ -56,6 +57,7 @@
     <ClCompile Include="identd.c" />

     <ClCompile Include="ignore.c" />

     <ClCompile Include="inbound.c" />

+    <ClCompile Include="marshal.c" />

     <ClCompile Include="modes.c" />

     <ClCompile Include="msproxy.c" />

     <ClCompile Include="network.c" />

@@ -156,15 +158,16 @@
   </ImportGroup>

   <ItemDefinitionGroup>

     <PreBuildEvent>

-      <Command>

-      <![CDATA[

+      <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"

 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';"

-      ]]>

-      </Command>

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

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

+

+      ]]></Command>

     </PreBuildEvent>

   </ItemDefinitionGroup>

 </Project>
\ No newline at end of file