multilib.mk revision dc941379272b92b4b151ae619a561a86ce13c1d4
1# Translate LOCAL_32_BIT_ONLY to LOCAL_MULTILIB, 2# and check LOCAL_MULTILIB is a valid value. Returns module's multilib 3# setting in my_module_multilib, or empty if not set. 4 5my_module_multilib := $(strip $(LOCAL_MULTILIB)) 6 7ifndef my_module_multilib 8ifeq ($(LOCAL_32_BIT_ONLY),true) 9my_module_multilib := 32 10endif 11else # my_module_multilib defined 12ifeq (,$(filter 32 64 first both none,$(my_module_multilib))) 13$(error $(LOCAL_PATH): Invalid LOCAL_MULTILIB specified for module $(LOCAL_MODULE)) 14endif 15endif # my_module_multilib defined 16 17# Windows is a special case. Linux and Darwin are both multilib builds, but we 18# don't have a 64-bit Windows build, so make sure it's not a multilib build. 19ifdef LOCAL_IS_HOST_MODULE 20ifeq ($(HOST_OS),windows) 21my_module_multilib := 32 22endif 23endif 24