build.debug.bat

本文介绍了一个用于构建和调试项目的批处理脚本。该脚本通过命令行参数配置构建平台、配置类型、构建操作及子产品,实现了针对不同需求的自动化构建流程。脚本涵盖了配置环境变量、清理旧文件、生成项目文件、执行构建命令等功能。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

@echo on
rem Usage
rem build.debug.bat
rem build.debug.bat -c Release
rem build.debug.bat -r build
rem build.debug.bat -r rebuild
rem build.debug.bat -s b-total-video-converter -r rebuild
rem build.debug.bat -s b-total-video-converter -c Release -r rebuild

set platf=Win32
set conf=Debug
set build=build
set subproduct=b-youtube-downloader

:CheckOpts
if "%1"=="-c" (set conf=%2) & shift & shift & goto CheckOpts
if "%1"=="-p" (set platf=%2) & shift & shift & goto CheckOpts
if "%1"=="-r" (set build=%2) & shift & shift & goto CheckOpts
if "%1"=="-s" (set subproduct=%2) & shift & shift & goto CheckOpts

%0\
cd %0\..
cd /d %0\..

call "%ProgramFiles%\Microsoft Visual Studio .NET 2003\Common7\Tools\vsvars32.bat"

rename vc.pro vc.pro.bak
for /r %%d in (*.pro) DO if exist %%d (
pushd %%~dpd
rem lupdate -noobsolete %%d
lrelease "%%d"
popd
)
rename vc.pro.bak vc.pro

for /r %%d in (*.ts) DO if exist %%d (
lrelease "%%d"
)

for /r %%d in (*.vcproj;*.sln) DO if exist %%d (
del /q %%d
)

rem pushd qtpropertybrowser
rem qmake -tp vc
rem popd

pushd main
qmake "CONFIG+=%subproduct%" -tp vc
popd

for /R %%d in (*.vcproj) DO if exist %%d (
devenv "%%d" /%build% %conf%
)

copy /y import\bin\*.* main\%conf%\
mkdir main\%conf%\ffpresets & copy /y import\bin\ffpresets\*.* main\%conf%\ffpresets
mkdir main\%conf%\plugin & copy /y import\bin\*_plugin.dll main\%conf%\plugin


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值