快乐虾
http://blog.csdn.net/lights_joy/
欢迎转载,但请保留作者信息
原来以为要生成静态库只需要重载<Lib>任务就可以了:
<Target
Name="Lib"
>
<Message Text="lib target" Importance="High" />
<EmbedLinuxLinkTask
TargetName="ImpLib"
ProjectDir="$(ProjectDir)"
OutDir="$(OutDir)"
TargetFileName="$(TargetFileName)"
HostIp="$(HostIp)"
HostUser="$(HostUser)"
HostPasswd="$(HostPasswd)"
Python2="$(Python2Exe)"
PythonFile="$(PythonFile)"
HostShareRoot="$(HostShareRoot)"
HostShareRootWin="$(HostShareRootWin)"
ToolchainRoot="$(ToolchainRoot)"
CrossCompile="$(CrossCompile)"
Platform="$(Platform)"
Configuration="$(Configuration)"
ProjectFiles="@(Link)"
AdditionalDependencies="%(Link.AdditionalDependencies)"
/>
</Target>
结果在生成时死活不调用重载的任务!
放弃这种方式,直接在BuildCompile的末尾加上打包操作,搞定。
原文地址:http://blog.csdn.net/lights_joy/article/details/41654719