1、debug和release运行时依赖库的windows环境的脚本完成;

feature/menu-20241017
simonyan 4 weeks ago
parent 682cd5702a
commit 3a107cab22

8
.gitignore vendored

@ -1,2 +1,10 @@
Tools Tools
output output
generate
.qmake.stash
.vs
**/*.sln
**/*.vcxproj
**/*.vcxproj.filters
**/*.vcxproj.user
FlowApp/FlowApp_resource.rc

@ -0,0 +1,36 @@
@echo off
setlocal enabledelayedexpansion
set "sourceDir=Tools\Win64"
:: 定义源目录列表
set "sourceDirs=cgns;hdf5;OCC;Python37;PythonQt;QT5;qwt;SARibbon;VTK"
:: 定义目标文件夹
set "destDir=output"
:: 创建目标文件夹如果它不存在
if not exist "%destDir%" mkdir "%destDir%"
if not exist "%destDir%\bin" mkdir "%destDir%\bin"
if not exist "%destDir%\bin_d" mkdir "%destDir%\bin_d"
:: 循环遍历每个源目录并拷贝文件
for %%d in (%sourceDirs%) do (
@REM echo Copying files from %%d to %destDir%
@REM xcopy "%%d\*.*" "%destDir%" /E /I /Y /Q
:: 如果是python则直接拷贝
if "%%d"=="Python37" (
xcopy "%sourceDir%\%%d\*.*" "%destDir%\bin" /E /I /Y /Q
xcopy "%sourceDir%\%%d\*.*" "%destDir%\bin_d" /E /I /Y /Q
) else (
@REM echo "%sourceDir%\%%d\bind\*.dll"
xcopy "%sourceDir%\%%d\bind\*.dll" "%destDir%\bin_d" /E /I /Y /Q
xcopy "%sourceDir%\%%d\bin\*.dll" "%destDir%\bin" /E /I /Y /Q
)
@REM echo "%sourceDir%\%%d\bind\*.dll"
@REM xcopy "%sourceDir%\%%d\*.dll" "%destDir%" /E /I /Y /Q
)
echo All files have been copied.
pause
endlocal
Loading…
Cancel
Save