💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
在默认情况下,在Android源代码工程环境中,mmm命令是不可用的。我们需要在当前终端中执行Android源代码目录下的build/envsetup.sh脚本文件,然后才可以使用mmm命令。 ~~~ USER@MACHINE:~/Android$ source ./build/envsetup.sh ~~~ 执行完成这个命令之后,除了获得单独编译某个模块的mmm命令之外,还有其他一些命令可以使用,如下所示。 ~~~ - 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. ~~~ 我们可以通过指定-help选项来运行这些命令,以便可以查看它们的具体使用方法。例如,执行下面的命令就可以看到mmm命令的用法。 USER@MACHINE:~/Android$ mmm -help Usage: make [options] [target] ... Options: . . . . . . mmm命令的用法比较丰富,但是一般情况下,我们只要在该命令后面加上要编译的模块所在的目录就可以了。