summaryrefslogtreecommitdiffstats
path: root/core/static_library.mk
diff options
context:
space:
mode:
authorJean-Baptiste Queru <jbq@google.com>2012-06-22 14:31:05 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-06-22 14:31:05 -0700
commit4a65f812373e1ecfa6e7058d635e998429a4cf17 (patch)
tree23eec6f45a1db6fd684f7d9a43a8bf2580c6d5cf /core/static_library.mk
parentec0f69a81a4a8ce1c424ec5f4768e86548300891 (diff)
parent6e587f53152127370c6b45204f6529dd7b0ce32a (diff)
downloadbuild-4a65f812373e1ecfa6e7058d635e998429a4cf17.zip
build-4a65f812373e1ecfa6e7058d635e998429a4cf17.tar.gz
build-4a65f812373e1ecfa6e7058d635e998429a4cf17.tar.bz2
am 6e587f53: Merge "Profiling use aprof, enable by LOCAL_ENABLE_APROF or LOCAL_ENABLE_APROF_JNI"
* commit '6e587f53152127370c6b45204f6529dd7b0ce32a': Profiling use aprof, enable by LOCAL_ENABLE_APROF or LOCAL_ENABLE_APROF_JNI
Diffstat (limited to 'core/static_library.mk')
-rw-r--r--core/static_library.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/static_library.mk b/core/static_library.mk
index 66e091b..2a8edfd 100644
--- a/core/static_library.mk
+++ b/core/static_library.mk
@@ -18,6 +18,13 @@ ifneq ($(strip $(LOCAL_MODULE_STEM)$(LOCAL_BUILT_MODULE_STEM)),)
$(error $(LOCAL_PATH): Can not set module stem for a library)
endif
+####################################################
+## Add profiling libraries if aprof is turned
+####################################################
+ifeq ($(strip $(LOCAL_ENABLE_APROF)),true)
+ LOCAL_WHOLE_STATIC_LIBRARIES += libaprof
+endif
+
include $(BUILD_SYSTEM)/binary.mk
ifeq ($(LOCAL_RAW_STATIC_LIBRARY),true)