Yes, you can, you the following:

- define LOCAL_PATH *once* at the start of the Android.mk, e.g.:

LOCAL_PATH := $(call my-dir)

- to start a module, use CLEAR_VARS to clear all global variables related to
module-specific definitions

include $(CLEAR_VARS)

- define your module's variable (e.g. LOCAL_MODULE, LOCAL_SRC_FILES, etc...)

- then call the appropriate include to build either a static library, a
shared one, or an executable, e.g.

include $(BUILD_SHARED_LIBRARY)

- You can then start another module by including CLEAR_VARS again, and
following the same instructions



On Mon, Mar 30, 2009 at 3:02 PM, jerryfan2000 <jerryfan1...@gmail.com>wrote:

>
> Hi,
> Can I build more than one module from single Android.mk? e.g writing
> more than one local_module in Android.mk ? Thanks
> >
>

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---

Reply via email to