让VC不再编译帮助文件的方法[3]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 kind_li 的 blog

 

祸根二、making help include file...

source=.\resource.h

 

!if  "$(cfg)" == "test - win32 release"

 

# prop ignore_default_tool 1

# begin custom build - making help include file...

targetname=test

inputpath=.\resource.h

 

"hlp\$(targetname).hm" : $(source) "$(intdir)" "$(outdir)"

       echo. >"hlp\$(targetname).hm"

       echo // commands (id_* and idm_*) >>"hlp\$(targetname).hm"

       makehm id_,hid_,0x10000 idm_,hidm_,0x10000 resource.h >>"hlp\$(targetname).hm"

       echo. >>"hlp\$(targetname).hm"

       echo // prompts (idp_*) >>"hlp\$(targetname).hm"

       makehm idp_,hidp_,0x30000 resource.h >>"hlp\$(targetname).hm"

       echo. >>"hlp\$(targetname).hm"

       echo // resources (idr_*) >>"hlp\$(targetname).hm"

       makehm idr_,hidr_,0x20000 resource.h >>"hlp\$(targetname).hm"

       echo. >>"hlp\$(targetname).hm"

       echo // dialogs (idd_*) >>"hlp\$(targetname).hm"

       makehm idd_,hidd_,0x20000 resource.h >>"hlp\$(targetname).hm"

       echo. >>"hlp\$(targetname).hm"

       echo // frame controls (idw_*) >>"hlp\$(targetname).hm"

       makehm idw_,hidw_,0x50000 resource.h >>"hlp\$(targetname).hm"

      

# end custom build

 

!elseif  "$(cfg)" == "test - win32 debug"

 

# prop ignore_default_tool 1

# begin custom build - making help include file...

targetname=test

inputpath=.\resource.h

 

"hlp\$(targetname).hm" : $(source) "$(intdir)" "$(outdir)"

       echo. >"hlp\$(targetname).hm"

       echo // commands (id_* and idm_*) >>"hlp\$(targetname).hm"

       makehm id_,hid_,0x10000 idm_,hidm_,0x10000 resource.h >>"hlp\$(targetname).hm"

       echo. >>"hlp\$(targetname).hm"

       echo // prompts (idp_*) >>"hlp\$(targetname).hm"

       makehm idp_,hidp_,0x30000 resource.h >>"hlp\$(targetname).hm"

       echo. >>"hlp\$(targetname).hm"

       echo // resources (idr_*) >>"hlp\$(targetname).hm"

       makehm idr_,hidr_,0x20000 resource.h >>"hlp\$(targetname).hm"

       echo. >>"hlp\$(targetname).hm"

       echo // dialogs (idd_*) >>"hlp\$(targetname).hm"

       makehm idd_,hidd_,0x20000 resource.h >>"hlp\$(targetname).hm"

       echo. >>"hlp\$(targetname).hm"

       echo // frame controls (idw_*) >>"hlp\$(targetname).hm"

       makehm idw_,hidw_,0x50000 resource.h >>"hlp\$(targetname).hm"

      

本文关键:编译帮助 帮助制作
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top