安卓:增加prebuild目标文件 [英] Android: add prebuild object files

查看:230
本文介绍了安卓:增加prebuild目标文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我建立的静态库NDK-4和汇编核心转储在我的一些部件文件。我用codesourcery汇编程序来创建这些文件的对象。现在,我不知道如何将这些prebuild目标文件添加到项目中。我试图检查他们的makefile里面,但我没有看到任何东西。我试图将它们添加到LOCAL_OBJECTS

I'm building static library with ndk-4 and assembler coredumps on some of my assembly files. I used codesourcery assembler to create objects for these files. Now, I have no clue how to add these prebuild object files to the project. I tried to check inside their makefiles, but I don't see anything. I tried to add them to LOCAL_OBJECTS

    LOCAL_OBJECTS    += $(NEON_LOCAL_OBJECTS)

,但它不工作。该值LOCAL_OBJECTS被重置为白手起家/内线核心/ build-binary.mk

but it doesn't work. The value LOCAL_OBJECTS is reset to nothing inside build/core/build-binary.mk

最有可能我会能够通过具有结构转换的NDK,以避免这样的问题,或建立工作站(我使用Windows),但现在我只希望通过添加preassembled对象的静态来修复简单的问题库。

Most likely I'd be able to avoid that problem by swithing NDK, or build workstation (I'm using windows), but for now I only want to fix that simple problem by adding preassembled objects to the static library.

如果这是不可能的事,也许有人可以说我可以添加什么样的规则,使我的静态库后建立自己的规则跳入并增加了我的preassembled文件到目标的lib?
任何人?

If that's impossible to do, maybe somebody can say what kind of rule I could add so that after my static library is build my rule kick-in and adds my preassembled files to the target lib? Anybody?

推荐答案

我遇到了同样的问题。很多谷歌上搜索我可能以后只是偶然到了答案,虽然我还没有尝试一下,但时间。 就是一个类似的问题被发布在谷歌网上论坛的问题,海报建议到目标文件归档到库(如libfoo.a中),并链接。 这里是一篇文章我的目标文件归档到库中找到。希望这是有帮助的。

I have run into the same problem. After much googling I may have just stumbled onto the answer, although I haven't had the time to try it out yet. This is the Google Groups question where a similar question is posted, the poster is advised to archive the object files into a library (e.g. libfoo.a) and link that. Here is an article I found on archiving the object files into a library. Hope this is helpful.

这篇关于安卓:增加prebuild目标文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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