Happy Shrimp
http://blog.csdn.net/lights_joy/
Welcome reprint, but please keep the author information
originally thought to build a static library requires only overloading <Lib> the task would be:
< Target
Name= "Lib"
>
<MessageText="Lib Target"Importance=" High"/>
< Embedlinuxlinktask
TargetName= "implib"
&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; projectdir =" $ (ProjectDir) "
&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; outdir = " $ (OutDir) "
&NBSP;&NBSP;&NBSP;&NBSP; targetfilename =" $ (targetfilename) "
&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; hostip = " $ (hostip) "
&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; hostuser =" $ (hostuser) "
&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; hostpasswd =" $ (hostpasswd) "
&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; python2 = " $ (python2exe) "
&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; pythonfile =" $ (pythonfile) "
&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; hostshareroot =" $ (hostshareroot) "
&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; hostsharerootwin =" $ (hostsharerootwin) "
&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; toolchainroot =" $ (toolchainroot) "
&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; crosscompile =" $ (crosscompile) "
&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; platform =" $ (Platform) "
&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; configuration =" $ (Configuration) "
&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; projectfiles =" @ (Link)
additionaldependencies= "% (link.additionaldependencies)"
/>
</ Target>
The result is that the overloaded task is not invoked at the time of generation!
abandon this way, directly in Buildcompile the end of the package operation, done.
Application of Vs2012 in Linux development (12): Compiling a static library