Only build the msm8996 camera HAL if we're not building the VR impl.
Introduce a makefile conditional that prevents the generic msm8996 camera HAL
being pulled in if we're building for a VR product.
Test: none
Bug: none
Change-Id: Ic35f9ae25248ba29b0eb234d7e916dd397d13523
diff --git a/Android.mk b/Android.mk
index 39255be..38c4251 100644
--- a/Android.mk
+++ b/Android.mk
@@ -2,8 +2,10 @@
ifneq ($(TARGET_BOARD_AUTO),true)
ifneq ($(strip $(USE_CAMERA_STUB)),true)
ifneq ($(BUILD_TINY_ANDROID),true)
- ifneq ($(filter msm8996,$(TARGET_BOARD_PLATFORM)),)
- include $(addsuffix /Android.mk, $(addprefix $(call my-dir)/, mm-image-codec QCamera2))
+ ifneq ($(USE_VR_CAMERA_HAL), true)
+ ifneq ($(filter msm8996,$(TARGET_BOARD_PLATFORM)),)
+ include $(addsuffix /Android.mk, $(addprefix $(call my-dir)/, mm-image-codec QCamera2))
+ endif
endif
ifneq ($(filter msm8998,$(TARGET_BOARD_PLATFORM)),)
include $(call all-makefiles-under,$(call my-dir)/msm8998)