与 dogprotect / linux-build 分支同一次改名,等价内容:
- 产品名/展示串、SDK 与运行时导出 API、.NET 命名空间全部换为 DogProtect
- 文件名与目录改名(dogprotect.sln / DogProtect/ / DogProtectCon/ / sdk/DogProtect.SDK/ /
sdk/DogProtectSDK.{h,pas,bas,inc} / runtime/DogProtect.Runtime/ / core/dogprotect.rc /
app/dogprotect_gui.app)
- 项目文件扩展名 .vmp → .dog;VM 代码节名默认 .dog(产物节 .dog0/.dog1/...)
- 授权数据/配置: DogProtect.dat、DogProtectLicense.ini、Global\\DogProtect.dat
- 域名占位 dogprotect.example、bundle id com.dogprotect.dogprotect
- 保留 VMP_* 内部宏与 third-party/
31 lines
721 B
Batchfile
31 lines
721 B
Batchfile
echo res.bat: generating QT resources...
|
|
SET RC_DIR=%~dp0
|
|
|
|
set rc_out=%RC_DIR%resources.cc
|
|
set rc=%rc_out%
|
|
set check_rc=0
|
|
if exist %rc_out% (
|
|
set rc_out=%RC_DIR%resources.cc.tmp
|
|
set check_rc=1
|
|
)
|
|
%QTDIR%/msvc2015_64/bin/rcc.exe %RC_DIR%application.qrc -o %rc_out%
|
|
|
|
call :ReplaceOld %check_rc% %rc_out% %rc%
|
|
goto :EOF
|
|
|
|
:ReplaceOld
|
|
setlocal enableextensions enabledelayedexpansion
|
|
if "%1" == "1" (
|
|
fc %2 %3 /B>>nul 2>&1
|
|
if !ERRORLEVEL! == 1 (
|
|
copy /y %2 %3>>nul 2>&1
|
|
del %2>>nul 2>&1
|
|
echo res.bat: QT resources '%3' are updated
|
|
) else (
|
|
echo res.bat: QT resources '%3' are up to date
|
|
)
|
|
) else (
|
|
echo res.bat: QT resources '%3' are generated
|
|
)
|
|
endlocal
|
|
goto :EOF |