From ae17d277f917a27e08f79658c7011f42ea2c36be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=B5=B7?= Date: Mon, 2 Mar 2026 11:04:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E4=BB=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/build_resource_file.bat | 13 +++++++++++++ tools/clean_vs_tmp.bat | 18 ++++++++++++++++++ tools/generate_vc_project.bat | 16 ++++++++++++++++ 3 files changed, 47 insertions(+) create mode 100644 tools/build_resource_file.bat create mode 100644 tools/clean_vs_tmp.bat create mode 100644 tools/generate_vc_project.bat diff --git a/tools/build_resource_file.bat b/tools/build_resource_file.bat new file mode 100644 index 0000000..e094649 --- /dev/null +++ b/tools/build_resource_file.bat @@ -0,0 +1,13 @@ +@echo off + +set PROJECTDIR=%~dp0.. +cd %PROJECTDIR%/bin + +if exist style.rcc ( + del /s /f /q theme.rcc +) + +set QTDIR=C:/Qt/Qt5.13.0/5.13.0/msvc2017_64/bin +%QTDIR%/rcc --binary %PROJECTDIR%/style/Resources.qrc -o %PROJECTDIR%/bin/theme.rcc + +pause diff --git a/tools/clean_vs_tmp.bat b/tools/clean_vs_tmp.bat new file mode 100644 index 0000000..d8a47eb --- /dev/null +++ b/tools/clean_vs_tmp.bat @@ -0,0 +1,18 @@ +@echo off + +set PROJECTDIR=%~dp0.. +cd %PROJECTDIR% + +for /r %%i in (vcproject,debug,release,ipch,.vs,tmp) do ( + if exist %%i ( + rd /s /q %%i + ) +) + +for /r %%i in (*.sln,*.vcxproj,*.vcxproj.filters,*.pdb,*.sdf,*.ncb,*.suo,*.exp,*.user,*.aps,*.idb,*.dep,*.opt,*.plg,*.bsc,*.ilk,*.trg) do ( + if exist %%i ( + del /s /f /q %%i + ) +) + +pause diff --git a/tools/generate_vc_project.bat b/tools/generate_vc_project.bat new file mode 100644 index 0000000..05be1b5 --- /dev/null +++ b/tools/generate_vc_project.bat @@ -0,0 +1,16 @@ +@echo off + +set PROJECTDIR=%~dp0.. +cd %PROJECTDIR% + +if exist vcproject ( + rd /s /q vcproject +) + +mkdir vcproject +cd vcproject + +set QTDIR=C:/Qt/Qt5.13.0/5.13.0/msvc2017_64/bin +%QTDIR%/qmake -tp vc -recursive %PROJECTDIR%/EnergySpectrumAnalyer.pro + +pause