#
# Copyright (C) 2015 MediaTek Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#

obj-y := camerawpe_dummy.o
MTK_WPE_COUNT := 1

ifeq ($(CONFIG_MACH_MT6775),y)
  obj-y += $(subst ",,isp_50)/
endif

ifeq ($(CONFIG_MACH_MT6771),y)
  obj-y += $(subst ",,isp_50)/
endif

ifeq ($(CONFIG_MACH_MT6779),y)
  obj-y += $(subst ",,mt6779)/
endif

ifeq ($(CONFIG_MACH_MT6885),y)
  obj-y += $(subst ",,isp_6s)/
  MTK_WPE_COUNT := 2
endif

ifeq ($(CONFIG_MACH_MT6873),y)
  obj-y += $(subst ",,isp_6s)/
  MTK_WPE_COUNT := 1
  subdir-ccflags-y += -DWPE_B_ONLY
endif

subdir-ccflags-y += -DMTK_WPE_COUNT=$(MTK_WPE_COUNT)

