blob: 724d64f46e8b089a5dfc5b15bd6e12216ae748c3 [file] [log] [blame]
# Copyright 2018 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
LOCAL_DIR := $(GET_LOCAL_DIR)
fit_tests := \
$(LOCAL_DIR)/function_tests.cpp \
$(LOCAL_DIR)/main.c \
# Userspace tests.
# Disabled for now because libstdc++ isn't available for Zircon targets yet.
ifeq (0,1)
MODULE := $(LOCAL_DIR)
MODULE_TYPE := usertest
MODULE_NAME := fit-test
MODULE_SRCS := $(fit_tests)
MODULE_STATIC_LIBS := \
system/ulib/zxcpp \
system/ulib/fit
MODULE_LIBS := \
system/ulib/c \
system/ulib/fdio \
system/ulib/unittest \
system/ulib/zircon \
include make/module.mk
endif
# Host tests.
MODULE := $(LOCAL_DIR).hostapp
MODULE_TYPE := hosttest
MODULE_NAME := fit-test
MODULE_SRCS := $(fit_tests)
MODULE_COMPILEFLAGS := \
-Isystem/ulib/fit/include \
-Isystem/ulib/unittest/include \
MODULE_HOST_LIBS := \
system/ulib/fit.hostlib \
system/ulib/pretty.hostlib \
system/ulib/unittest.hostlib \
include make/module.mk
# Clear local variables.
fit_tests :=