这是wince 驱动的一个*.bat文件看不明白到底是什么意思!

[复制链接]
查看11 | 回复2 | 2021-1-27 07:16:23 | 显示全部楼层 |阅读模式
大家请看看:
@echooff
@REM--------------------------------------------------------------------------
@REMCopyright(c)WolfsonMicroelectronicsplc.Allrightsreserved.
@REM
@REMThissoftwareaswellasanyrelateddocumentationmayonlybeusedor
@REMcopiedinaccordancewiththetermsoftheWolfsonMicroelectronicplc's
@REMnon-disclosureagreement(NDA).Theinformationinthisfileisfurnished
@REMforinformationaluseonly,issubjecttochangewithoutnotice,and
@REMshouldnotbeconstruedasacommitmentbyWolfsonMicroelectronicsplc.
@REMWolfsonMicroelectronicsplcassumesnoresponsibilityorliabilityfor
@REManyerrorsorinaccuraciesthatmayappearinthisdocumentoranysoftware
@REMthatmaybeprovidedinassociationwiththisdocument.
@REM
@REMExceptaspermittedbytheNDA,nopartofthisdocumentmaybereproduced,
@REMstoredinaretrievalsystem,ortransmittedinanyformorbyanymeans
@REMwithouttheexpresswrittenconsentofWolfsonMicroelectronicsplc.
@REM
@REM$Id:CopyHeaders.bat28902006-04-1109:33:58Zfb$
@REM
@REMThisfilecopiesthevariousheaderfilestothepublicincludefolders.
@REM
@REMWarning:
@REMThisdriverisspecificallywrittenforWolfsondevices.Itis
@REMnotageneraldevicedriver.
@REM
@REMThisplatformfileisspecificallydesignedtoworkWindowsCE.There
@REMisnoguaranteeofcorrectoperationwithotherplatforms/controllers.
@REM
@REM--------------------------------------------------------------------------
setlocal
@REMMovetotheWolfsondirectory(thedriveandpathofthescriptname)
pushd%~dp0
if"%_WINCEOSVER%Check"=="Check"(
echoerror:PleaserunCopyHeaders.batinabuildwindow.
gotoEND
)
if%_WINCEOSVER%GEQ500(
if"%WM_BSP%"=="INTEL_DBPXA27X"(
echo==MAINSTONEIIWM5IntelBSP==
setINCDIR=%_TARGETPLATROOT%\platform\mainstoneii\src\inc
)elseif"%WM_BSP%"=="TAHITI"(
echo==i.MX21WinCE5.0==
setINCDIR=%_TARGETPLATROOT%\inc
)elseif"%WM_BSP%"=="MAINSTONEII"(
echo==MAINSTONEIIWinCE5.0BSP==
setINCDIR=%_TARGETPLATROOT%\src\inc
)elseif"%WM_BSP%"=="MAINSTONEIII"(
echo==MAINSTONEIIIWM5MSBSP==
setINCDIR=%_TARGETPLATROOT%\src\inc
)else(
echo==UnknownWinCE5.0BSP==
setINCDIR=%_TARGETPLATROOT%\src\inc
)
)else(
echo==PreWinCE5.0BSP==
setINCDIR=%_TARGETPLATROOT%\inc
)
setHEADERDIRS=incinc\Compatibilityinc\RegisterDefs
@REM
@REMThefollowingfilesareneededforinterrupthandling.
@REM
setPLATFORMFILES=WMPlatformDefs.hWMInterrupts_Raw.hWMPlatform_Raw.h
setPLATFORMFILES=%PLATFORMFILES%WMPlatformDeviceContext.hWMPlatformConfig.h
@REM
@REMThefollowingfileisrequiredforOSspecifictypese.g.Mutex_t.
@REM
setOSFILES=WMPlatform_OS.h
@REM
@REMFileswhichgointheplatformrootdirectory.
@REM
setROOTFILES=WMCommonDefinesOS\WMCE.bat
echoCopyingpublicheaderfilesfromtheWolfsonlibraryto%INCDIR%
setCOPY_CMD=xcopy
@REM
@REMNowdothework
@REM
:DO_WORK
@REM
@REMFirstdeletetheexistingfiles(butdon'tcareifthey'renotthere)
@REM
del/f/q%INCDIR%\WM*.h2>NUL
@REM
@REMNowlinkorcopythenewfiles
@REM
for%%din(%HEADERDIRS%)do%COPY_CMD%%%d\*.h%INCDIR%\
for%%fin(%PLATFORMFILES%)do%COPY_CMD%Platform\%%f%INCDIR%\
for%%fin(%OSFILES%)do%COPY_CMD%OS\%%f%INCDIR%\
@REM
@REMCopyourinternalbuildenvironmentvariablebatfileto%_TARGETPLATROOT%
@REM
for%%fin(%ROOTFILES%)doifexist%%f%COPY_CMD%%%f%_TARGETPLATROOT%\
:END
endlocal
@REM
@REMNowrunthebatfilesothataresettingsarepickedupinthe
@REMcurrentenvironment.
@REM
ifexist%_TARGETPLATROOT%\WMCE.batcall%_TARGETPLATROOT%\WMCE.bat
popd
echoon
想这些*.bat文件中格式定义可以查看那些资料!清高手出现!哈
分 -->
回复

使用道具 举报

千问 | 2021-1-27 07:16:23 | 显示全部楼层
你只要搜索一下BAT文件怎么写就能明白了。
回复

使用道具 举报

千问 | 2021-1-27 07:16:23 | 显示全部楼层
没觉得看不懂啊。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行