Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CyanogenMod or AOSP: Compile a single project

I am trying to MAKE / Compile a single AOSP project from the repository - specifically packages/apps/Email.

Does anyone know how to do it? (I have no problem compiling the entire repository, but I really would like to be able to compile a single project as well).

like image 661
Erez A. Korn Avatar asked Feb 20 '11 13:02

Erez A. Korn


People also ask

What is AOSP android 11?

Android Open Source Project (AOSP) is a project maintained by Google from where we can get the source code for the Android operating system. Since it is an open-source project anyone can download the android source code, compile it onto their machine, and can easily make some modifications to the source code.

What is lunch in android?

lunch. Choose which target to build with lunch . lunch product_name - build_variant selects product_name as the product to build, and build_variant as the variant to build, and stores those selections in the environment to be read by subsequent invocations of m and other similar commands.


2 Answers

If your environment has been configured by build/envsetup.sh in your android tree, you can run mmm [project_path] to build only a specific subproject. (This will require that you've built its dependencies from the tree before.)

As CommonsWare pointed out, if you're trying to build the Email app using the SDK there's more porting work to do.

like image 63
adamp Avatar answered Sep 28 '22 08:09

adamp


make Email also works (and generally make [appname] for all apps)

like image 37
Conley Owens Avatar answered Sep 28 '22 07:09

Conley Owens