summaryrefslogtreecommitdiffstats
path: root/core/binary.mk
diff options
context:
space:
mode:
authorJeff Davidson <jpd@google.com>2015-01-09 02:51:41 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-01-09 02:51:41 +0000
commitee65f03b3c35e481d1bd1a6f4e8374953d20fe98 (patch)
tree9fd992076e50ee273026191c76cb8d462788dcef /core/binary.mk
parent7a864af1b72a278d7e83f2f1f6ac6da587d658c8 (diff)
parentdd198b77a1bae9974b741cc7d1dad328dce3c3b6 (diff)
downloadbuild-ee65f03b3c35e481d1bd1a6f4e8374953d20fe98.zip
build-ee65f03b3c35e481d1bd1a6f4e8374953d20fe98.tar.gz
build-ee65f03b3c35e481d1bd1a6f4e8374953d20fe98.tar.bz2
am dd198b77: Merge "Move installed module dependency setup after proto handling."
* commit 'dd198b77a1bae9974b741cc7d1dad328dce3c3b6': Move installed module dependency setup after proto handling.
Diffstat (limited to 'core/binary.mk')
-rw-r--r--core/binary.mk48
1 files changed, 25 insertions, 23 deletions
diff --git a/core/binary.mk b/core/binary.mk
index 4aa4a44..685f732 100644
--- a/core/binary.mk
+++ b/core/binary.mk
@@ -221,29 +221,6 @@ endif
my_asflags += -D__ASSEMBLY__
-##########################################################
-## Set up installed module dependency
-## We cannot compute the full path of the LOCAL_SHARED_LIBRARIES for
-## they may cusomize their install path with LOCAL_MODULE_PATH
-##########################################################
-# Get the list of INSTALLED libraries as module names.
-ifdef LOCAL_SDK_VERSION
- installed_shared_library_module_names := \
- $(my_shared_libraries)
-else
- installed_shared_library_module_names := \
- $(my_shared_libraries) $(my_system_shared_libraries)
-endif
-
-# The real dependency will be added after all Android.mks are loaded and the install paths
-# of the shared libraries are determined.
-ifdef LOCAL_INSTALLED_MODULE
-ifdef installed_shared_library_module_names
-$(LOCAL_2ND_ARCH_VAR_PREFIX)$(my_prefix)DEPENDENCIES_ON_SHARED_LIBRARIES += \
- $(my_register_name):$(LOCAL_INSTALLED_MODULE):$(subst $(space),$(comma),$(sort $(installed_shared_library_module_names)))
-endif
-endif
-
###########################################################
## Define PRIVATE_ variables from global vars
###########################################################
@@ -835,6 +812,31 @@ asm_objects += $(asm_objects_asm)
endif
endif
+
+##########################################################
+## Set up installed module dependency
+## We cannot compute the full path of the LOCAL_SHARED_LIBRARIES for
+## they may cusomize their install path with LOCAL_MODULE_PATH
+##########################################################
+# Get the list of INSTALLED libraries as module names.
+ifdef LOCAL_SDK_VERSION
+ installed_shared_library_module_names := \
+ $(my_shared_libraries)
+else
+ installed_shared_library_module_names := \
+ $(my_shared_libraries) $(my_system_shared_libraries)
+endif
+
+# The real dependency will be added after all Android.mks are loaded and the install paths
+# of the shared libraries are determined.
+ifdef LOCAL_INSTALLED_MODULE
+ifdef installed_shared_library_module_names
+$(LOCAL_2ND_ARCH_VAR_PREFIX)$(my_prefix)DEPENDENCIES_ON_SHARED_LIBRARIES += \
+ $(my_register_name):$(LOCAL_INSTALLED_MODULE):$(subst $(space),$(comma),$(sort $(installed_shared_library_module_names)))
+endif
+endif
+
+
####################################################
## Import includes
####################################################