您的位置:首页 > 其它

LOCAL_LDLIBS 与 LOCAL_SHARED_LIBRARIES的区别

2013-05-21 09:10 453 查看
RaviY

thanks for your explanation

also i found that LOCAL_LDLIBS in mydroid can only work for

HOST_SHARED_LIBS

but not for TARGET SHARED LIBS

thanks

On Nov 30, 11:52 am, RaviY <yend...@xxxxxx> wrote:

> Libraries that are linked via LOCAL_LDLIBS will not have any

> dependencies generated for them. So, typically, LOCAL_LDLIBS should be

> used when you don't want to or don't have the resources to build the

> specific library. So, if you are using a library provided by the NDK,

> you *technically* don't need to rebuild the provided libraries.

>

> So, in your case, in your "mydrdoid", if you use:

> LOCAL_LDLIBS := -lskia" ...then, libskia.so *need not* be rebuilt.

> whereas, if you use:

> LOCAL_SHARED_LIBRARIES := libskia ... then libskia.so *will* be

> rebuilt if there are any changes in it's dependencies.

>

> -Ravi

>

> On Nov 30, 7:20 am, allstars <allstars....@xxxxxxxxx> wrote:

>

> > hello

> > i would like to ask the differences between

> > LOCAL_SHARED_LIBRARIES and LOCAL_LDLIBS

>

> > for example , i try to link skia

>

> > in mydroid

>

> >  i need to use LOCAL_SHARED_LIBRARIES = libskia

>

> > but in NDK

> > i need to use LOCAL_LDLIBS = -lskia

>

> > so i am wondering what's the differences

> > and why do i need to two different ways for my Android.mk

>

> > thanks

>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: