如何在SOURCELIBS中提供路径 [英] How to provide a path in SOURCELIBS

查看:94
本文介绍了如何在SOURCELIBS中提供路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们假设我需要链接位于以下路径的库:

Let's suppose I need to link against a library that is located on the following path:

C:\ WINCE700 \OSDesigns\MYOSDESIGN \ MYOSDESIGN \Wince700 \ myplatformname_ARMV7_Retail\cesysgen\platform\myplatformname \ lib\ARMV7 \retail

C:\WINCE700\OSDesigns\MYOSDESIGN\MYOSDESIGN\Wince700\myplatformname_ARMV7_Retail\cesysgen\platform\myplatformname\lib\ARMV7\retail

如果我写  $(SG_OUTPUT_ROOT)\ $(_ CPUINDPATH)\ mylibrary.lib      \我只会得到C:\ WINCE700 \OSDesigns \ MYOSDESIGN \MYOSDESIGN \Wince700 \ myplatformname_ARMV7_Retail \cesysgen\ARMV7 \ verytail。如何插入myplatformname,每种情况下
可以不同?例如

If I write  $(SG_OUTPUT_ROOT)\$(_CPUINDPATH)\mylibrary.lib      \ I will get only C:\WINCE700\OSDesigns\MYOSDESIGN\MYOSDESIGN\Wince700\myplatformname_ARMV7_Retail\cesysgen\ARMV7\retail. How to insert myplatformname, which can be different in each case? eg

$(SG_OUTPUT_ROOT)\platform\SOMETHING\lib\ $(_ CPUINDPATH)\mylibrary.lib      \

$(SG_OUTPUT_ROOT)\platform\SOMETHING\lib\$(_CPUINDPATH)\mylibrary.lib      \

谢谢

推荐答案

看看
http://www.microsoft.com/windowsembedded/ en-us / develop / Build-Porting-Guide-for-Windows-Embedded-Compact-7.aspx
 其中记录了构建路径的更改。

Take a look at http://www.microsoft.com/windowsembedded/en-us/develop/Build-Porting-Guide-for-Windows-Embedded-Compact-7.aspx where the changes to build paths are documented.

具体: 

例如,在从Platform Builder打开的构建窗口中,SG_OUTPUT_ROOT设置为%_OSDESIGNROOT%\Wince700 \\ \\%_TGTPLAT%_%TGTCPU%_%WINCEDEBUG%\\\ nysysgen

For example, in a build window opened from Platform Builder, SG_OUTPUT_ROOT is set to %_OSDESIGNROOT%\Wince700\%_TGTPLAT%_%TGTCPU%_%WINCEDEBUG%\cesysgen


这篇关于如何在SOURCELIBS中提供路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆