单独编译Android源代码中的模块
2016-05-31 16:15
465 查看
$ . ./build/envsetup.sh
- croot: Changes directory to the top of the tree.
- m: Makes from the top of the tree.
- mm: Builds all of the modules in the current directory.
- mmm: Builds all of the modules in the supplied directories.
- cgrep: Greps on all local C/C++ files.
- jgrep: Greps on all local Java files.
- resgrep: Greps on all local res/*.xml files.
- godir: Go to the directory containing a file.
这里我们只关注mmm命令,也就是可以用它来编译指定目录的所有模块,通常这个目录只包含一个模块。
$ mmm packages/apps/Email/
编译完成之后,就可以在out/target/product/generic/system/app目录下看到Email.apk文件了。Android系统自带的App都放在这个目录下。
Android系统的一些可执行文件,例如C编译的可执行文件,放在out/target/product/generic/system/bin目录下,
动态链接库文件放在 out/target/product/generic/system/lib目录下,
硬件抽象层(HAL)接口文件放在 out/target/product/generic/system/lib/hw目录下。
编译好模块后,还要重新打包一下system.img文件
$ make snod
- croot: Changes directory to the top of the tree.
- m: Makes from the top of the tree.
- mm: Builds all of the modules in the current directory.
- mmm: Builds all of the modules in the supplied directories.
- cgrep: Greps on all local C/C++ files.
- jgrep: Greps on all local Java files.
- resgrep: Greps on all local res/*.xml files.
- godir: Go to the directory containing a file.
这里我们只关注mmm命令,也就是可以用它来编译指定目录的所有模块,通常这个目录只包含一个模块。
$ mmm packages/apps/Email/
编译完成之后,就可以在out/target/product/generic/system/app目录下看到Email.apk文件了。Android系统自带的App都放在这个目录下。
Android系统的一些可执行文件,例如C编译的可执行文件,放在out/target/product/generic/system/bin目录下,
动态链接库文件放在 out/target/product/generic/system/lib目录下,
硬件抽象层(HAL)接口文件放在 out/target/product/generic/system/lib/hw目录下。
编译好模块后,还要重新打包一下system.img文件
$ make snod
相关文章推荐
- Android提高第三篇之SurfaceView与多线程的混搭
- Android Studio SVN配置忽略文件
- Android百度地图开发(一)之初体验
- LeakCanary: 让内存泄露无所遁形
- 在Android Studio中使用Android Tests(Junit)
- 深入Android MediaPlayer的使用方法详解
- android动画之逐帧动画
- 使用TabLayout、ViewPager和Fragment实现顶部菜单可滑动切换
- Android 对话框封装(确认/取消 )
- 关于Android xml 绘图
- Android 反编译工具 jadx
- Android 自定义View (四) 视频音量调控
- 基于Service的播放器,Activity,Service,BroadcastReceiver综合使用
- android工程下assets与raw文件夹的区别
- 菜鸟的安卓开发之路 --- android studio 的安装配置
- Android选择弹窗(自定义可扩展)
- android源码编译sdk
- ndk-stack 分析 android crash stack
- android动画之补间动画
- Android序列化之Parcelable接口的用法