diff options
author | Kito Cheng <kito@0xlab.org> | 2012-06-15 15:15:50 +0800 |
---|---|---|
committer | Kito Cheng <kito@0xlab.org> | 2012-06-15 15:16:50 +0800 |
commit | 70dc3e1d3d58647a7c9e4173d7a7fefd28ad81e3 (patch) | |
tree | 4358a82576c5dcaa64a6d1df77313f7ee0f08403 /core/executable.mk | |
parent | 3f8ff030e0c693ca0b1758612ecb571711ec2667 (diff) | |
download | build-70dc3e1d3d58647a7c9e4173d7a7fefd28ad81e3.zip build-70dc3e1d3d58647a7c9e4173d7a7fefd28ad81e3.tar.gz build-70dc3e1d3d58647a7c9e4173d7a7fefd28ad81e3.tar.bz2 |
Profiling use aprof, enable by LOCAL_ENABLE_APROF or LOCAL_ENABLE_APROF_JNI
Change-Id: Ia95dc7318e17c0804867b22e239edccc5cbec0af
Diffstat (limited to 'core/executable.mk')
-rw-r--r-- | core/executable.mk | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/core/executable.mk b/core/executable.mk index 6138adb..baebc3b 100644 --- a/core/executable.mk +++ b/core/executable.mk @@ -12,6 +12,18 @@ ifeq ($(strip $(LOCAL_MODULE_SUFFIX)),) LOCAL_MODULE_SUFFIX := $(TARGET_EXECUTABLE_SUFFIX) endif +#################################################### +## Add profiling libraries if aprof is turned +#################################################### +ifeq ($(strip $(LOCAL_ENABLE_APROF)),true) + ifeq ($(LOCAL_FORCE_STATIC_EXECUTABLE), true) + LOCAL_STATIC_LIBRARIES += libaprof libaprof_static libc libcutils + else + LOCAL_SHARED_LIBRARIES += libaprof libaprof_runtime libc + endif + LOCAL_WHOLE_STATIC_LIBRARIES += libaprof_aux +endif + include $(BUILD_SYSTEM)/dynamic_binary.mk ifeq ($(LOCAL_FORCE_STATIC_EXECUTABLE),true) |