가 여기에 내가 VS2008와 함께 사용했습니다 예입니다/플랫폼 빌더 7
그것은 지정된 OSDesign에서 하위 프로젝트를 찾습니다. 발견 된 모든 프로젝트는 build -c
으로 작성됩니다.
플랫폼 빌더 버전과 달성하려는 목표에 따라 약간의 조정이 필요할 수 있지만 이는 일반적인 아이디어입니다.
스크립트는 setenv.bat
파일을 남깁니다. 이는 빌드 오류를 진단하는 데 유용하거나 간단하게 삭제할 수 있습니다.
@echo off
set OSDESIGN_NAME=<YourOSDesign>
set BUILD_CONFIG=<Solution Configuration from VS2008, e.g. YourPlatform Release>
set OSDESIGN_DIR=C:\WINCE700\OSDesigns\%OSDESIGN_NAME%\%OSDESIGN_NAME%
rem Set up build environment (equivalent to clicking Build -> "Open Release Directory in Build Window" in VS2008)
"C:\Program Files (x86)\Microsoft Platform Builder\7.00\cepb\IdeVS\pbxmlutils" /getbuildenv /workspace "%OSDESIGN_DIR%\%OSDESIGN_NAME%.pbxml" /config "%BUILD_CONFIG%" > setenv.bat && call setenv.bat
@echo off
rem Ensure any build output is copied to the release directory
set WINCEREL=1
rem Look for subprojects in the OSDesign folder
for /d %%d in (%OSDESIGN_DIR%\*.*) do if exist "%%d\sources" (
cd %%d
build -c
)
pause
고마워, 그것이 내가 찾고 있었던 것이다. OS 배치 빌드를 수정하는 것만으로 충분합니다. "blddemo clean -q"를 "WINCEREL = 1, cd, build -c"로 바꿉니다. –
Doug