VS生成事件

rd $(TargetDir)\config /s /q 
xcopy $(SolutionDir)..\..\JXPInclude\thirdlib $(TargetDir)\thirdlib /e /i /y
xcopy $(SolutionDir)..\..\JXPInclude\Images $(TargetDir)\Images /e /i /y
xcopy $(SolutionDir)..\..\JXPInclude\edit $(TargetDir)\edit /e /i /y
xcopy $(SolutionDir)..\..\JXPInclude\Resources $(TargetDir)\Resources /e /i /y
xcopy $(SolutionDir)..\..\JXPFramework_1.1.0\JXP.Bin\Release\JXP.Subprocess.exe $(TargetDir)JXP.Subprocess.exe* /Y
xcopy $(SolutionDir)..\..\JXPFramework_1.1.0\JXP.Bin\Release\JXP.Subprocess.exe.config $(TargetDir)JXP.Subprocess.exe.config* /Y
xcopy $(SolutionDir)..\..\JXPFramework_1.1.0\JXP.Bin\Release\JXP.ReleaseUpdate.exe $(TargetDir)JXP.ReleaseUpdate.exe* /Y
xcopy $(SolutionDir)..\..\JXPFramework_1.1.0\JXP.Bin\Release\JXP.ReleaseUpdate.exe.config $(TargetDir)JXP.ReleaseUpdate.exe.config* /Y
rd $(TargetDir)\thirdlib\cef /s /q
rd $(TargetDir)\thirdlib\vlc /s /q
xcopy $(SolutionDir)..\..\JXPInclude\thirdlib2 $(TargetDir)\thirdlib /e /i /y
if not exist  "$(TargetDir)\teacher.bin" (
    if $(ConfigurationName) == Release (
          xcopy $(SolutionDir)\JXP.PepDtp\DB\Release\teacher.bin  $(TargetDir) /e /i /y
    ) else (
          xcopy $(SolutionDir)\JXP.PepDtp\DB\Debug\teacher.bin  $(TargetDir) /e /i /y
    )
)


if exist "$(DevEnvDir)" call "$(DevEnvDir)..\tools\vsdevcmd.bat"
if exist "$(VS140COMNTOOLS)" call "$(VS140COMNTOOLS)..\tools\vsvars32.bat"
if exist "$(VS120COMNTOOLS)" call "$(VS120COMNTOOLS)..\tools\vsvars32.bat"
if exist "$(VS110COMNTOOLS)" call "$(VS110COMNTOOLS)..\tools\vsvars32.bat"
if exist "$(VS100COMNTOOLS)" call "$(VS100COMNTOOLS)..\tools\vsvars32.bat"
editbin /largeaddressaware $(TargetPath)
View Code

 

posted @ 2020-12-10 16:16  慧由心生  阅读(76)  评论(0编辑  收藏  举报