summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorYing Wang <wangying@google.com>2014-01-09 14:39:41 -0800
committerYing Wang <wangying@google.com>2014-01-09 14:39:41 -0800
commit7fff9a1a560b822be79f47566f43b76111d7aecf (patch)
tree0138b86c56d48a497e7b549d28aa5595f26de647 /core
parentaed499879210c7432c1c5b3869f383b27b17dafc (diff)
downloadbuild-7fff9a1a560b822be79f47566f43b76111d7aecf.zip
build-7fff9a1a560b822be79f47566f43b76111d7aecf.tar.gz
build-7fff9a1a560b822be79f47566f43b76111d7aecf.tar.bz2
Define PRIVATE_TARGET_ variables for only target modules.
Change-Id: I12c54bfffd9acb78a61d1032a087a0edaf3bf12c
Diffstat (limited to 'core')
-rw-r--r--core/binary.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/binary.mk b/core/binary.mk
index cfa9923..c677dea 100644
--- a/core/binary.mk
+++ b/core/binary.mk
@@ -150,6 +150,7 @@ LOCAL_ASFLAGS += -D__ASSEMBLY__
###########################################################
## Define PRIVATE_ variables from global vars
###########################################################
+ifndef LOCAL_IS_HOST_MODULE
ifdef LOCAL_SDK_VERSION
my_target_project_includes :=
my_target_c_includes := $(my_ndk_stl_include_path) $(my_ndk_version_root)/usr/include
@@ -175,7 +176,8 @@ $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_TARGET_GLOBAL_CFLAGS := $(my_target_globa
$(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_TARGET_GLOBAL_CPPFLAGS := $(my_target_global_cppflags)
$(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_TARGET_GLOBAL_LDFLAGS := $(my_target_global_ldflags)
-ifneq ($(strip $(LOCAL_IS_HOST_MODULE)),)
+else # LOCAL_IS_HOST_MODULE
+
ifeq ($(LOCAL_CLANG),true)
my_host_global_cflags := $(CLANG_HOST_GLOBAL_CFLAGS)
my_host_global_cppflags := $(CLANG_HOST_GLOBAL_CPPFLAGS)