diff options
author | Ying Wang <wangying@google.com> | 2011-11-08 09:31:21 -0800 |
---|---|---|
committer | Ying Wang <wangying@google.com> | 2011-11-17 10:52:32 -0800 |
commit | 5f074803fbc14d091fb83208b81b3ffa10f54f90 (patch) | |
tree | 8c9985059abb5cbf84d2faeda8a261e4c42b704d /core/static_library.mk | |
parent | 1985846eb07757451a6e9f5d4c838e64397b5540 (diff) | |
download | build-5f074803fbc14d091fb83208b81b3ffa10f54f90.zip build-5f074803fbc14d091fb83208b81b3ffa10f54f90.tar.gz build-5f074803fbc14d091fb83208b81b3ffa10f54f90.tar.bz2 |
Build system support to export include paths
Bug: 5573756
With this change, we can set LOCAL_EXPORT_C_INCLUDE_DIRS in the module
definition to export include dir paths.
Paths in LOCAL_EXPORT_C_INCLUDE_DIRS should be relative to the top dir
of the source tree.
If a library (shared or static) exports some include paths, any module
using it will import the include paths and add them to the compiler
command line.
Change-Id: I49aabc589d2cf214044d13ccd5532ef68209adf0
Diffstat (limited to 'core/static_library.mk')
-rw-r--r-- | core/static_library.mk | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/static_library.mk b/core/static_library.mk index 4ff5a34..66e091b 100644 --- a/core/static_library.mk +++ b/core/static_library.mk @@ -14,6 +14,9 @@ ifeq ($(strip $(LOCAL_MODULE_SUFFIX)),) LOCAL_MODULE_SUFFIX := .a endif LOCAL_UNINSTALLABLE_MODULE := true +ifneq ($(strip $(LOCAL_MODULE_STEM)$(LOCAL_BUILT_MODULE_STEM)),) +$(error $(LOCAL_PATH): Can not set module stem for a library) +endif include $(BUILD_SYSTEM)/binary.mk |