# Copyright (C) 2016 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

LOCAL_DIR := $(GET_LOCAL_DIR)
COMMON_DIR := $(LOCAL_DIR)/../common
STORAGE_DIR := $(LOCAL_DIR)/../..

HOST_TEST := storage_block_test

include $(STORAGE_DIR)/common.mk

HOST_SRCS := \
	$(STORAGE_COMMON_SRCS) \
	$(LOCAL_DIR)/block_test.c \
	$(LOCAL_DIR)/super_block_mac_storage_fake.c \
	$(COMMON_DIR)/error_reporting_mock.c \

HOST_FLAGS := -DBUILD_STORAGE_TEST=1

HOST_INCLUDE_DIRS += \
	$(COMMON_DIR) \
	$(STORAGE_DIR) \
	$(STORAGE_DIR)/lib_internal/include \
	trusty/kernel/lib/libc-ext/include \

HOST_LIBS := \
	m \
	c++ \

HOST_DEPS := \
	trusty/user/base/host/boringssl

undefine STORAGE_COMMON_SRCS

include make/host_test.mk
