summaryrefslogtreecommitdiffstats
path: root/core/main.mk
diff options
context:
space:
mode:
authorYing Wang <wangying@google.com>2014-01-16 12:36:34 -0800
committerYing Wang <wangying@google.com>2014-01-16 15:43:47 -0800
commit791fa6a9094dced42b4b292c163708838a8d059e (patch)
tree58633ff001e2e5d57ec3efae0db7e563ec100bb5 /core/main.mk
parentef204edd5b9f24c301c1dd415a90865f207d6359 (diff)
downloadbuild-791fa6a9094dced42b4b292c163708838a8d059e.zip
build-791fa6a9094dced42b4b292c163708838a8d059e.tar.gz
build-791fa6a9094dced42b4b292c163708838a8d059e.tar.bz2
Set up rules to build shared libraries for TARGET_2ND_ARCH
The rules for the 2nd arch are set up in the second inclusion of shared_library_internal.mk. Intermediate fils of libfoo of the 2nd arch will be built into $(PRODUCT_OUT)/obj_$(TARGET_2ND_ARCH)/SHARED_LIBRARIES/libfoo_intermediates/ and the built libfoo.so will be in $(PRODUCT_OUT)/obj_$(TARGET_2ND_ARCH)/lib. Bug: 11654773 Change-Id: I58bbe5a05a65f63bce6279131552f3792000716e
Diffstat (limited to 'core/main.mk')
-rw-r--r--core/main.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/main.mk b/core/main.mk
index 8b6f444..7892782 100644
--- a/core/main.mk
+++ b/core/main.mk
@@ -608,6 +608,14 @@ $(foreach m,$(HOST_DEPENDENCIES_ON_SHARED_LIBRARIES), \
$(eval r := $(filter $(HOST_OUT_ROOT)/%,$(call module-installed-files,\
$(subst $(comma),$(space),$(lastword $(p)))))) \
$(eval $(call add-required-deps,$(word 2,$(p)),$(r))))
+ifdef TARGET_2ND_ARCH
+$(foreach m,$($(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_DEPENDENCIES_ON_SHARED_LIBRARIES), \
+ $(eval p := $(subst :,$(space),$(m))) \
+ $(eval r := $(filter $(TARGET_OUT_ROOT)/%,$(call module-installed-files,\
+ $(addsuffix $(TARGET_2ND_ARCH_MODULE_SUFFIX), \
+ $(subst $(comma),$(space),$(lastword $(p))))))) \
+ $(eval $(call add-required-deps,$(word 2,$(p)),$(r))))
+endif
m :=
r :=