summaryrefslogtreecommitdiffstats
path: root/core/host_shared_library.mk
diff options
context:
space:
mode:
authorYing Wang <wangying@google.com>2011-11-08 09:31:21 -0800
committerYing Wang <wangying@google.com>2011-11-17 10:52:32 -0800
commit5f074803fbc14d091fb83208b81b3ffa10f54f90 (patch)
tree8c9985059abb5cbf84d2faeda8a261e4c42b704d /core/host_shared_library.mk
parent1985846eb07757451a6e9f5d4c838e64397b5540 (diff)
downloadbuild-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/host_shared_library.mk')
-rw-r--r--core/host_shared_library.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/host_shared_library.mk b/core/host_shared_library.mk
index f78b17b..976a942 100644
--- a/core/host_shared_library.mk
+++ b/core/host_shared_library.mk
@@ -18,6 +18,9 @@ endif
ifneq ($(strip $(OVERRIDE_BUILT_MODULE_PATH)),)
$(error $(LOCAL_PATH): Illegal use of OVERRIDE_BUILT_MODULE_PATH)
endif
+ifneq ($(strip $(LOCAL_MODULE_STEM)$(LOCAL_BUILT_MODULE_STEM)),)
+$(error $(LOCAL_PATH): Can not set module stem for a library)
+endif
# Put the built modules of all shared libraries in a common directory
# to simplify the link line.