当前位置:  编程技术>c/c++/嵌入式

基于C++自动化编译工具的使用详解

    来源: 互联网  发布时间:2014-10-14

    本文导语:  @echo off  title=HYTradingGateway自动化编译打包工具mode con cols=80 lines=40echo -------------------------------------------------------------echo 使用说明echo.                                                             ec...

@echo off 
title=HYTradingGateway自动化编译打包工具
mode con cols=80 lines=40
echo -------------------------------------------------------------
echo 使用说明
echo.                                                            
echo HYTradingGateway自动化编译打包工具、修改
echo 使用前提:
echo 1、安装VS2008
echo 2、安装好压
echo 3、ReleaseHYTradingGateway.bat路径修改
echo.                                                            
echo 1、版本发布前删除debug下所有的,临时文件,具体类型如下
echo *.aps *.idb *.ncp *.obj *.pch *.sbr *.tmp *.pdb *.bsc
echo *.ilk *.res *.ncb *.opt *.suo *.manifest *.dep *.htm
echo.                                                            
echo 2、版本发布前删除所有bin目录下的*.pdb *.ilk *.dll *.exe文件
echo.                                                            
echo 3、HYTradingGateway项目编译,一共包含21个子项目
echo.                                                            
echo 4、编译后进行打包,并存放到ReleaseHYTradingGateway目录下
echo.                                                            
echo 5、发布版本者将文件上传svn就可以自动完成整个发布过程
echo.                                                            
echo 6、支持打包后文件定位
echo.                                                            
echo 7、目前不支持svn自动上传、补丁命名,后续完善
echo.                                                            
echo Visual c++ 2008
echo.                                                            
echo shaoming 2012-04-13
echo -----------------------------------------------------------
pause

mode con cols=120 lines=60

color 8A
cls

echo -----------------------------------------------------------
echo 开始清除无效文件
del /F /Q /S *.aps *.idb *.ncp *.obj *.pch *.sbr *.tmp *.pdb *.bsc *.ilk *.res *.ncb *.opt *.suo *.manifest *.dep *.htm

SET VSCMD=C:Program FilesMicrosoft Visual Studio 9.0Common7IDEdevenv
SET ProjectCMD="F:HyCodeHYTradingGateway

del /F /Q /S %ProjectCMD%bin*.pdb
del /F /Q /S %ProjectCMD%bin*.ilk
del /F /Q /S %ProjectCMD%binunipackage*.dll
del /F /Q /S %ProjectCMD%bintools.dll
del /F /Q /S %ProjectCMD%binactivemqTool.dll
del /F /Q /S %ProjectCMD%binsqliteTool.dll
del /F /Q /S %ProjectCMD%binMJSExchangeAPI.dll
del /F /Q /S %ProjectCMD%binSJSExchangeAPI.dll
del /F /Q /S %ProjectCMD%bin*.exe

echo 清除无效文件完成
echo -----------------------------------------------------------
echo -----------------------------------------------------------
echo 开始编译HYTradingGateway
"%VSCMD%" %ProjectCMD%toolstools.sln" /Rebuild
"%VSCMD%" %ProjectCMD%activemqToolactivemqTool.sln" /Rebuild
"%VSCMD%" %ProjectCMD%sqliteToolsqliteTool.sln" /Rebuild
"%VSCMD%" %ProjectCMD%MJSExchangeAPIMJSExchangeAPI.sln" /Rebuild
"%VSCMD%" %ProjectCMD%SJSExchangeAPISJSExchangeAPI.sln" /Rebuild

"%VSCMD%" %ProjectCMD%unipackage_baseunipackage_base.sln" /Rebuild
"%VSCMD%" %ProjectCMD%unipackage_cffexunipackage_cffex.sln" /Rebuild
"%VSCMD%" %ProjectCMD%unipackage_ctpunipackage_ctp.sln" /Rebuild
"%VSCMD%" %ProjectCMD%unipackage_czceunipackage_czce.sln" /Rebuild
"%VSCMD%" %ProjectCMD%unipackage_dceunipackage_dce.sln" /Rebuild
"%VSCMD%" %ProjectCMD%unipackage_ibunipackage_ib.sln" /Rebuild
"%VSCMD%" %ProjectCMD%unipackage_mjsunipackage_mjs.sln" /Rebuild
"%VSCMD%" %ProjectCMD%unipackage_shfeunipackage_shfe.sln" /Rebuild
"%VSCMD%" %ProjectCMD%unipackage_szseunipackage_szse.sln" /Rebuild
"%VSCMD%" %ProjectCMD%unipackageunipackage.sln" /Rebuild

"%VSCMD%" %ProjectCMD%unipackageBank_baseunipackageBank_base.sln" /Rebuild
"%VSCMD%" %ProjectCMD%unipackage_bocunipackage_boc.sln" /Rebuild
"%VSCMD%" %ProjectCMD%unipackage_bbcunipackage_bbc.sln" /Rebuild
"%VSCMD%" %ProjectCMD%unipackageBankunipackageBank.sln" /Rebuild

"%VSCMD%" %ProjectCMD%HYTradingGatewayHYTradingGateway.sln" /Rebuild
"%VSCMD%" %ProjectCMD%TestTradeTestTrade.sln" /Rebuild

del /F /Q /S %ProjectCMD%bin*.pdb
del /F /Q /S %ProjectCMD%bin*.ilk

echo 编译HYTradingGateway完成
echo -----------------------------------------------------------

echo -----------------------------------------------------------
echo 开始HYTradingGateway打包

Xcopy %ProjectCMD%\bin" "E:HYTradingGatewaybin" /e /s /h /d /c /y
Xcopy %ProjectCMD%\config" "E:HYTradingGatewayconfig" /e /s /h /d /c /y

rd /S /Q E:HYTradingGatewayconfig.svn
del /F /Q /S E:HYTradingGatewaybin*.txt
del /F /Q /S E:HYTradingGatewaybin*.lib
del /F /Q /S E:HYTradingGatewaybin*.dat

SET zipCMD=C:Program FilesHaoZip
"%zipCMD%HaoZipC.exe" -r -tzip a E:HYTradingGateway-�te:~0,10%.zip E:HYTradingGateway
copy "E:HYTradingGateway-�te:~0,10%.zip" "F:ReleaseHYTradingGateway"

echo HYTradingGateway打包完成
echo -----------------------------------------------------------

echo 自动打开打包后存放文件夹
start "HYTradingGateway自动化编译打包工具" "F:ReleaseHYTradingGateway"
pause

    
 
 
 
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。












  • 相关文章推荐
  • 为Android应用增加渠道信息 自动化不同渠道的打包过程的使用详解
  • docker应用之利用Docker构建自动化运维
  • 自动化工具 AutoHotKey
  • 移动自动化测试平台 Athrun
  • NOSQL iis7站长之家
  • Android自动化测试框架 Cafe
  • 自动化测试任务调度平台 TOAST
  • 家庭自动化解决方案 OpenMotics
  • 安全内容自动化协议 OpenSCAP
  • 电子设计自动化软件 Fritzing
  • 楼宇自动化和控制网络 BACnet
  • 自动化控制 OpenAPC
  • 虚拟主机自动化管理 VHCS
  • 自动化测试工具 Cucumber
  • 自动化测试管理平台 TestMP
  • SWT的自动化测试框架 SWTBot
  • 服务自动化解决方案 allocPSA
  • 文件自动化工具 Inforama
  • Web应用自动化开发框架 WaveMaker
  • 自动化工具脚本 AutoIt
  • 移动应用自动化测试 Appium
  • 自动化计算数学建模 DOLFIN


  • 站内导航:


    特别声明:169IT网站部分信息来自互联网,如果侵犯您的权利,请及时告知,本站将立即删除!

    ©2012-2021,,E-mail:www_#163.com(请将#改为@)

    浙ICP备11055608号-3