summary refs log tree commit diff stats
path: root/plugins/python/python2.vcxproj
diff options
context:
space:
mode:
authorPatrick Griffis <tingping@tingping.se>2017-09-02 17:52:25 -0400
committerPatrick Griffis <tingping@tingping.se>2018-11-09 18:36:59 -0500
commit706f9bca82d463f6f1bd17d5dc609807e4a1e8a9 (patch)
tree09f849421105e4202b436af97a94d777c96aa378 /plugins/python/python2.vcxproj
parent643269445530edd0ee6a308f771767ec3f9a1919 (diff)
python: Rewrite with CFFI
Diffstat (limited to 'plugins/python/python2.vcxproj')
-rw-r--r--plugins/python/python2.vcxproj8
1 files changed, 7 insertions, 1 deletions
diff --git a/plugins/python/python2.vcxproj b/plugins/python/python2.vcxproj
index f914a865..0b098112 100644
--- a/plugins/python/python2.vcxproj
+++ b/plugins/python/python2.vcxproj
@@ -37,6 +37,9 @@
       <AdditionalDependencies>"$(Python2Lib).lib";$(DepLibs);%(AdditionalDependencies)</AdditionalDependencies>

       <AdditionalLibraryDirectories>$(DepsRoot)\lib;$(Python2Path)\libs;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>

     </Link>

+    <PreBuildEvent>

+      <Command>"$(Python3Path)\python.exe" generate_plugin.py ..\..\src\common\hexchat-plugin.h python.py "$(IntDir)python.c"</Command>

+    </PreBuildEvent>

   </ItemDefinitionGroup>

   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">

     <ClCompile>

@@ -48,12 +51,15 @@
       <AdditionalDependencies>"$(Python2Lib).lib";$(DepLibs);%(AdditionalDependencies)</AdditionalDependencies>

       <AdditionalLibraryDirectories>$(DepsRoot)\lib;$(Python2Path)\libs;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>

     </Link>

+    <PreBuildEvent>

+      <Command>"$(Python3Path)\python.exe" generate_plugin.py ..\..\src\common\hexchat-plugin.h python.py "$(IntDir)python.c"</Command>

+    </PreBuildEvent>

   </ItemDefinitionGroup>

   <ItemGroup>

     <None Include="python.def" />

   </ItemGroup>

   <ItemGroup>

-    <ClCompile Include="python.c" />

+    <ClCompile Include="$(IntDir)python.c" />

   </ItemGroup>

   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />

 </Project>