在Android源$ C ​​$ C栋某个特定模块 [英] Building a particular module in the android source code

查看:157
本文介绍了在Android源$ C ​​$ C栋某个特定模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的工作,我已经从source.android.com下载的Andr​​oid源$ C ​​$ C。

I am working on an android source code which I have downloaded from source.android.com.

在全力打造我通过这个网站 http://elinux.org/Android_Build_System 这也解释了Android构建系统去了。

After a full build I went through this site http://elinux.org/Android_Build_System which explains the android build system.

当我做出改变外部/ WebKit的code,以

When I make changes in external/webkit code and build it with

使-j4 libwebcore 它编译相应的文件并更新libwebcore.so,并把它保存了我很多时间。 同样的事情适用于应用程序,也为建筑的apk。

make -j4 libwebcore it compiles the corresponding file and updates the libwebcore.so, and it save me a lot of time. The same thing is applied to applications and also for building apks.

当我做出改变的框架,并给出命令,就会出现问题 使-j4框架它不是编译相应的文件。 任何一个可以帮助我!

The problem arises when I make changes in the framework and give the command as make -j4 framework its not compiling the corresponding files. Can any one help me!

推荐答案

文件夹框架包含了很多东西,你必须更明确地告诉make来构建什么。

The folder frameworks contains many things, you have to be more specific about telling make what to build.

例如我做出了改变: 框架/基/命令/输入/ src目录/ COM /安卓/命令/输入/ Input.java 。 现在相应的 Android.mk 文件位于: 框架/基/命令/输入/ Android.mk ,其中包含一个行说: LOCAL_MODULE:=输入

For example I made a change in: frameworks/base/cmds/input/src/com/android/commands/input/Input.java. Now the corresponding Android.mk file is located in: frameworks/base/cmds/input/Android.mk, which contains a line saying: LOCAL_MODULE := input.

这样的模块是建立从源头上被称为输入,所以我呼吁:

Thus the module being build from the source is called input, so I call:

$ make input

这重建的特定模块。

Which rebuilds that specific module.

作为奖励信息,您可以使用 MMM 帮助,您可以指定模块的路径来构建这样的:

As a bonus info, you can use the mmm helper and you can specify the path of the module to build like this:

$ mmm frameworks/base/cmds/input

或者使用毫米刚刚建立的模块中,你当前的工作目录:

or using mm which just builds the module in you current working directory:

$ cd frameworks/base/cmds/input
$ mm

我通常使用 MMM 我的preferred工具。

I normally use mmm as my preferred tool.

更新

呵呵,我看你可能会专门谈论所谓的模块框架

Oh, I see you might be talking specifically about the module called framework

我只是试图修改:框架/基/核心/爪哇/安卓/ APP / Dialog.java ,并做了:使框架

I just tried to modify: frameworks/base/core/java/android/app/Dialog.java, and do a: make framework.

这似乎重新编译框架就好了。哪个文件你到底是在更改之前运行使框架

This seems to recompile the framework just fine. Which file exactly are you making changes in before running make framework ?

在回答您的评论

我只是试图修改框架/基/核心/爪哇/安卓/ WebKit的/ WebView.java MMM框架/基以及使框架工作完全正常的我。

I just tried to modify frameworks/base/core/java/android/webkit/WebView.java. mmm frameworks/base as well as make framework works perfectly fine for me.

如果它不为你工作,你可以用其他信息更新您的问题约其Android版本正在构建,哪些命令你输入准确地,输出您所看到的?

If it does not work for you, can you update your question with additional information about which android version you are building, which commands you are typing exactly, and the output your are seeing?

这篇关于在Android源$ C ​​$ C栋某个特定模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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