Add post-build events

This commit is contained in:
Changhua 2022-10-16 09:11:50 +08:00
parent 412b95c9b7
commit 7e0f899fe9
3 changed files with 17 additions and 4 deletions

View File

@ -118,6 +118,12 @@
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalDependencies>$(OutDir)sdk.lib;iphlpapi.lib;wsock32.lib;ws2_32.lib;crypt32.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
<PostBuildEvent>
<Command>xcopy /y $(OutDir)cpp.exe $(OutDir)out\cpp</Command>
</PostBuildEvent>
<PostBuildEvent>
<Message>Copy files</Message>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>

View File

@ -126,9 +126,12 @@
<ModuleDefinitionFile>sdk.def</ModuleDefinitionFile>
</Link>
<PostBuildEvent>
<Command>xcopy /y $(OutDir)sdk.dll $(SolutionDir)python
xcopy /y $(SolutionDir)TEQuant.jpeg $(SolutionDir)python
xcopy /y $(SolutionDir)TEQuant.jpeg $(SolutionDir)Release</Command>
<Command>xcopy /y $(OutDir)sdk.dll $(OutDir)out\cpp
xcopy /y $(OutDir)sdk.dll $(OutDir)out\python\wcf
xcopy /y $(SolutionDir)TEQuant.jpeg $(OutDir)out\cpp
xcopy /y $(SolutionDir)TEQuant.jpeg $(OutDir)out\python
xcopy /y $(SolutionDir)python\demo.py $(OutDir)out\python
xcopy /y $(SolutionDir)python\wcf\*.py $(OutDir)out\python\wcf</Command>
</PostBuildEvent>
<PostBuildEvent>
<Message>Copy files</Message>

View File

@ -131,7 +131,11 @@
<ModuleDefinitionFile>spy.def</ModuleDefinitionFile>
</Link>
<PostBuildEvent>
<Command>xcopy /y $(OutDir)spy.dll $(SolutionDir)python</Command>
<Command>cd $(OutDir)
md out\cpp
md out\python\wcf
xcopy /y $(OutDir)spy.dll $(OutDir)out\cpp
xcopy /y $(OutDir)spy.dll $(OutDir)out\python\wcf</Command>
</PostBuildEvent>
<PostBuildEvent>
<Message>Copy spy.dll</Message>