大伙或许对编译比较模糊
这是我对explorer编译时的观察记录
Build for Windows CE (Release) (Built on Apr 14 2005 13:54:39)
File names: Build.log Build.wrn Build.err Build.dat
BUILD: [Thrd:Sequence:Type ] Message
BUILD: [00:0000000000:PROGC ] Checking for \WINCE500\sdk\bin\i386\srccheck.exe.
BUILD: [00:0000000001:PROGC ] SrcCheck exit code: 0 (dec).
BUILD: [00:0000000002:PROGC ] Compile and Link for x86.
BUILD: [00:0000000003:PROGC ] Loading F:\WINCE500\PUBLIC\SHELL\Build.dat.
BUILD: [00:0000000004:PROGC ] Done.
BUILD: [00:0000000005:PROGC ] Computing include file dependencies:
BUILD: [00:0000000006:PROGC ] Checking for SDK include directory: F:\WINCE500\sd
k\ce\inc.
BUILD: [00:0000000007:PROGC ] Scan \WINCE500\PUBLIC\SHELL\OAK\HPC\MyEXPLORER\MAI
N\
BUILD: [00:0000000018:PROGC ] Saving F:\WINCE500\PUBLIC\SHELL\Build.dat.
BUILD: [00:0000000020:PROGC ] Compiling \WINCE500\PUBLIC\SHELL\OAK\HPC\MyEXPLORE
R\MAIN\ directory.
BUILD: [01:0000000027:PROGC ] Compiling .\explorer.cpp
BUILD: [01:0000000030:PROGC ] Compiling .\browseobj.cpp
BUILD: [01:0000000033:PROGC ] Compiling .\utils.cpp
BUILD: [01:0000000036:PROGC ] Compiling .\animthrd.cpp
BUILD: [01:0000000039:PROGC ] Compiling .\mainwnd.cpp
BUILD: [01:0000000042:PROGC ] Compiling .\desktop.cpp
BUILD: [01:0000000045:PROGC ] Compiling .\api.cpp
BUILD: [01:0000000048:PROGC ] Compiling .\guid.cpp
BUILD: [01:0000000051:PROGC ] Compiling .\urlmonutils.cpp
BUILD: [01:0000000054:PROGC ] Compiling .\explorerlist.cpp
BUILD: [01:0000000057:PROGC ] Linking F:\WINCE500\public\shell\oak\lib\x86\retai
l\explorer.lib
BUILD: [01:0000000059:PROGC ] Resource Compiling .\explorerbase.rc
BUILD: [01:0000000063:PROGC ] Resource Compiling .\explorer_vgal.rc
BUILD: [01:0000000067:PROGC ] Resource Compiling .\explorer_qvgap.rc
BUILD: [00:0000000073:PROGC ] Linking \WINCE500\PUBLIC\SHELL\OAK\HPC\MyEXPLORER\
MAIN\ directory.
BUILD: [01:0000000080:PROGC ] Linking F:\WINCE500\public\shell\oak\lib\x86\retai
l\explorer.lib
BUILD: [00:0000000083:PROGC ] Done.
BUILD: [00:0000000084:PROGC ] Files Warnings Erro
rs
BUILD: [00:0000000085:PROGC ] Midl 0 0
0
BUILD: [00:0000000086:PROGC ] Resource 3 0
0
BUILD: [00:0000000087:PROGC ] Message 0 0
0
BUILD: [00:0000000088:PROGC ] Precomp Header 0 0
0
BUILD: [00:0000000089:PROGC ] C/Cpp/Cxx 10 0
0
BUILD: [00:0000000090:PROGC ] Assembler 0 0
0
BUILD: [00:0000000091:PROGC ] Static Libraries 2 0
0
BUILD: [00:0000000092:PROGC ] Dll's 0 0
0
BUILD: [00:0000000093:PROGC ] Exe's 0 0
0
BUILD: [00:0000000094:PROGC ] Resx 0 0
0
BUILD: [00:0000000095:PROGC ] Csharp Targets 0 0
0
BUILD: [00:0000000096:PROGC ] Other 0 0
0
BUILD: [00:0000000097:PROGC ]
BUILD: [00:0000000098:PROGC ] Total 15 0
0
BUILD: [00:0000000099:PROGC ]
BUILD: [00:0000000100:PROGC ] 0 Warnings, 0 Errors
比较难理解的地方或者有疑惑的地方在这一块
BUILD: [00:0000000000:PROGC ] Checking for \WINCE500\sdk\bin\i386\srccheck.exe.
BUILD: [00:0000000001:PROGC ] SrcCheck exit code: 0 (dec).
BUILD: [00:0000000002:PROGC ] Compile and Link for x86.
BUILD: [00:0000000003:PROGC ] Loading F:\WINCE500\PUBLIC\SHELL\Build.dat.
BUILD: [00:0000000004:PROGC ] Done.
BUILD: [00:0000000005:PROGC ] Computing include file dependencies:
BUILD: [00:0000000006:PROGC ] Checking for SDK include directory: F:\WINCE500\sd
k\ce\inc.
BUILD: [00:0000000007:PROGC ] Scan \WINCE500\PUBLIC\SHELL\OAK\HPC\MyEXPLORER\MAI
N\
BUILD: [00:0000000018:PROGC ] Saving F:\WINCE500\PUBLIC\SHELL\Build.dat.
接下来编译需要编译哪些文件,链接又是链接什么东西,相信各位都明白。
我把F:\WINCE500\PUBLIC\SHELL\Build.dat这个文件打开,摘录了一部分是下面的内容
V 403
D \WINCE500\public\common\oak\inc\ a000
F aablt.h 44 0 1C45F1FE1322000
I gpe.h 0
F adb.h 44 0 1C45F1FE1322000
F align.h 44 0 1C45F1FE1322000
F allocator.hxx 44 0 1C45F1FE1322000
I new 0
I assert.h 0
I singleton.hxx 1
I auto_xxx.hxx 1
I sync.hxx 1
F atapi.h 44 0 1C45F1FE1322000
F atapi2.h 44 0 1C45F1FE1322000
F audiddsi.h 44 0 1C45F1FE1322000
F audioddi.h 44 0 1C45F1FE1322000
F audiomdd.h 44 0 1C45F1FE1322000
I audiddsi.h 0
F autodial.h 44 0 1C45F1FE1322000
I windows.h 0
I ras.h 0
F auto_xxx.hxx 44 0 1C45F1FE1322000
I assert.h 0
I algorithm 0
I allocator.hxx 1
F battery.h 44 0 1C45F1FE1322000
F battimpl.h 44 0 1C45F1FE1322000
具体这个东西是按照什么规则格式意义所填写的脚本还希望其它同仁多交流多讨论多贡献,我所能作的就是这些了,提出有价值的问题,抛砖引玉。
建议楼主去看何宗健老师的《Windows CE嵌入式系统》一书!