力为的技术博客

联系 聚合 管理
  154 Posts :: 1 Stories :: 561 Comments :: 0 Trackbacks
If you want to build your project on the command line,
If you want to change your build config easily,
There is a method to help.
Maybe this is not the best one, but it really works. Any good methods  are welcome if you have.

*********************************************
BuildAll.bat for whole solution
-------------------------------
@echo off
set DEV="C:\VC8\common7\IDE\devenv.com"
set BUILDCFG=build
set BUILDTYPE=Debug
set LOGERR=error.txt
if exist %LOGERR% del %LOGERR%

for %%in (ProjOne ProjTwo ProjN) Do (
 pushd 
%%i
 call Build.bat
 popd
)


*******************************************
Build.bat for every project
-----------------------------
@echo off
 call 
%DEV% ProjOne.vcproj /%BUILDCFG% "%BUILDTYPE% /out %LOGERR%

posted on 2006-08-24 14:28 力为 阅读(486) 评论(0)  编辑 收藏 引用 所属分类: 3. VC&MFC&Qt

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理