Application of Vs2012 in Linux development (12): Compiling a static library

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.