• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Inputs:
2#   LOCAL_MODULE_CLASS, LOCAL_MODULE, LOCAL_MODULE_MAKEFILE, LOCAL_BUILT_MODULE
3#   from base_rules.mk: my_kind, my_host_cross
4#   my_common: empty or COMMON, like the argument to intermediates-dir-for
5#   my_2nd_arch_prefix: usually LOCAL_2ND_ARCH_VAR_PREFIX, separate for JNI installation
6#
7#   my_link_type: the tags to apply to this module
8#   my_warn_types: the tags to warn about in our dependencies
9#   my_allowed_types: the tags to allow in our dependencies
10#   my_link_deps: the dependencies, in the form of <MODULE_CLASS>:<name>
11#
12
13my_link_prefix := LINK_TYPE:$(call find-idf-prefix,$(my_kind),$(my_host_cross)):$(if $(my_common),$(my_common):_,_:$(if $(my_2nd_arch_prefix),$(my_2nd_arch_prefix),_))
14link_type := $(my_link_prefix):$(LOCAL_MODULE_CLASS):$(LOCAL_MODULE)
15ALL_LINK_TYPES += $(link_type)
16$(link_type).TYPE := $(my_link_type)
17$(link_type).MAKEFILE := $(LOCAL_MODULE_MAKEFILE)
18$(link_type).WARN := $(my_warn_types)
19$(link_type).ALLOWED := $(my_allowed_types)
20$(link_type).DEPS := $(addprefix $(my_link_prefix):,$(my_link_deps))
21$(link_type).BUILT := $(LOCAL_BUILT_MODULE)
22
23link_type :=
24my_allowed_types :=
25my_link_prefix :=
26my_link_type :=
27my_warn_types :=
28