2013-04-14 2 views
2

명령 줄을 사용하여 지역화 된 프로젝트 (RCN 및 DFN 파일)를 컴파일하는 방법을 알고 있습니까? cgrc.exe를 사용했지만 DFN 양식을 컴파일하지 않으면 RCN 파일 만 처리합니다 ... processmonitor를 통해보고 dds/DFN 파일을로드하는 bds.exe를 봅니다. 가능한. 사람이 알고 있다면 ...DELPHI XE 명령 줄을 사용하여 현지화 된 파일

감사

답변

0

는 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도 마찬가지라고 가정합니다.

+0

BAT 파일, 이것은 내가 생각한 것입니다. 그러나 ressources 파일을 컴파일하고 DFN을 다른 언어로 번역하면이 파일에 대한 문서를 찾을 수 없습니다. – user1816813

+0

배치 파일에서 msbuild를 호출하는 것이 훨씬 좋습니다. –

+0

@Warren Right. 이것은 msBuild 이전 델피 버전이었습니다 ;-) –