는 DCC 명령 줄 컴파일러에 대한 설명서를 살펴보고 모든 컴파일을하는 배치 파일을 작성합니다. 여기
은 예입니다 :
@echo off
cd eng_core
call build.bat
if errorlevel 1 goto finalerr
rem Errorlevel test needs to come directly after call.
rem If error occurs code at finalerr will back up one dir.
cd ..
cd eng_coreweb
call build.bat FINAL
if errorlevel 1 goto finalerr
cd ..
cd eng_lspconfig
call build.bat FINAL
if errorlevel 1 goto finalerr
cd ..
cd eng_pvcc
call build.bat
if errorlevel 1 goto finalerr
cd ..
cd eng_tasks
call build.bat
if errorlevel 1 goto finalerr
cd ..
cd gui_block
call build.bat
if errorlevel 1 goto finalerr
cd ..
cd gui_login
call build.bat
if errorlevel 1 goto finalerr
cd ..
cd gui_profman
call build.bat
if errorlevel 1 goto finalerr
cd ..
cd gui_uconsole
call build.bat
if errorlevel 1 goto finalerr
cd ..
cd gui_uninst
call build.bat
if errorlevel 1 goto finalerr
cd ..
cd gui_update
call build.bat
if errorlevel 1 goto finalerr
cd ..
cd gui_updcheck
call build.bat
if errorlevel 1 goto finalerr
cd ..
cd gui_vmigrate
call build.bat
if errorlevel 1 goto finalerr
cd ..
cd gui_visereg
call build.bat
if errorlevel 1 goto finalerr
cd ..
cd gui_vssview
call build.bat
if errorlevel 1 goto finalerr
cd ..
cd instreq
call build.bat
if errorlevel 1 goto finalerr
cd ..
cd gui_vtray
call build.bat
if errorlevel 1 goto finalerr
cd ..
cd gui_wizard
call build.bat
if errorlevel 1 goto finalerr
cd ..
cd svc_pvcc
call build.bat
if errorlevel 1 goto finalerr
cd ..
cd svc_vlaunch
call build.bat
if errorlevel 1 goto finalerr
cd ..
cd svc_vservice
call build.bat
if errorlevel 1 goto finalerr
cd ..
goto off
:finalerr
cd ..
:off
과 seprate 하위 디렉토리에
:
@ECHO OFF
echo .
echo ***************************
echo ***Compiling profman.exe***
echo ***************************
if FINAL!==%1! ..\ResetTestFase
if errorlevel 1 goto :err
dcc32 -B -GD profman.dpr
if errorlevel 1 goto :err
copy profman.exe D:\source\output
goto off
:err
if FINAL!==%1! ..\RestoreTestFase
pause
:off
if FINAL!==%1! ..\RestoreTestFase
나는이 명시 적으로 DFN 파일에 대한 당신의 발언을 해결하는 방법/알고 있지만하지 않는 IDE 경우 이 과정을 거치면 DCC32도 마찬가지라고 가정합니다.
BAT 파일, 이것은 내가 생각한 것입니다. 그러나 ressources 파일을 컴파일하고 DFN을 다른 언어로 번역하면이 파일에 대한 문서를 찾을 수 없습니다. – user1816813
배치 파일에서 msbuild를 호출하는 것이 훨씬 좋습니다. –
@Warren Right. 이것은 msBuild 이전 델피 버전이었습니다 ;-) –