GrabBag/GrabBagPrj/pkg_wdremotereceivertest.bat
2026-06-26 17:49:32 +08:00

53 lines
1.5 KiB
Batchfile
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@echo off
setlocal
REM ============================================================
REM WDRemoteReceiver 模块测试工具 - Windows 打包脚本
REM
REM 输出:%PRJ_PATH%\buildwin\WDRemoteReceiverTest\
REM ============================================================
set PRJ_PATH=%~dp0
set PRJ_PATH=%PRJ_PATH:~0,-1%
set OUT_DIR=%PRJ_PATH%\buildwin\WDRemoteReceiverTest
set BUILD_DIR=%PRJ_PATH%\build\Test\WDRemoteReceiverTest\release
set WD_RECEIVER_DIR=%PRJ_PATH%\build\Module\WDRemoteReceiver\release
if not exist "%OUT_DIR%" mkdir "%OUT_DIR%"
cd /d "%OUT_DIR%"
REM 1) 拷贝可执行
copy "%BUILD_DIR%\WDRemoteReceiverTest.exe" .\
if errorlevel 1 (
echo [ERROR] not found: %BUILD_DIR%\WDRemoteReceiverTest.exe
exit /b 1
)
REM 2) Qt 依赖部署
REM 2) WDRemoteReceiver runtime
copy "%WD_RECEIVER_DIR%\WDRemoteReceiver.dll" .\
if errorlevel 1 (
echo [ERROR] not found: %WD_RECEIVER_DIR%\WDRemoteReceiver.dll
exit /b 1
)
"C:\tools\Qt\5.15.2\msvc2019_64\bin\windeployqt.exe" "WDRemoteReceiverTest.exe"
REM 3) 拷贝 ZeroMQ Runtime
copy "%PRJ_PATH%\..\SDK\ZeroMQ\Windows\x64\Release\libzmq*.dll" .\
REM 4) 拷贝 Protobuf Runtime如果需要
REM 5) OpenCV runtime used by WDRemoteReceiver
copy "%PRJ_PATH%\..\SDK\OpenCV320\Windows\vc14\Release\opencv_world320.dll" .\
copy "%PRJ_PATH%\..\SDK\Protobuf_3_20\Windows\x64\Release\libprotobuf*.dll" .\ 2>nul
cd /d "%PRJ_PATH%"
echo.
echo === WDRemoteReceiverTest Windows 打包完成 ===
echo 输出目录: %OUT_DIR%
echo.
endlocal