widevine: support multilib builds

Support builds for multiple architectures the same time:
Use LOCAL_MODULE_TARGET_ARCH to restrict building to specific arches
Use LOCAL_C_INCLUDES_x86 to set the include path for only x86 builds

Change-Id: I7c33c27f1c9bfb6e3318a07514698992482f6cd7
This commit is contained in:
Colin Cross
2014-02-13 17:07:58 -08:00
parent ccecfd7192
commit d6b79557ab
21 changed files with 32 additions and 73 deletions

View File

@@ -6,6 +6,4 @@ LOCAL_C_INCLUDES:= \
vendor/widevine/proprietary/streamcontrol/include \
vendor/widevine/proprietary/wvm/include
ifeq ($(TARGET_ARCH),x86)
LOCAL_C_INCLUDES += $(TOP)/system/core/include/arch/linux-x86
endif
LOCAL_C_INCLUDES_x86 += $(TOP)/system/core/include/arch/linux-x86