blob: 2d3e44c43ef46aa98de671cc542f828a608fb989 [file] [log] [blame]
# Copyright 2008 The Android Open Source Project
#
LOCAL_PATH := $(call my-dir)
# Determine whether to build mincrypt from system/core or from
# external/libmincrypt. The mincrypt source is temporarily present in both
# locations during the process of moving mincrypt to external/libmincrypt.
# TODO(mnissler): Remove this after the transition is complete.
ifndef MINCRYPT_STANDALONE
MINCRYPT_STANDALONE := true
endif
ifeq ($(MINCRYPT_STANDALONE),true)
include $(CLEAR_VARS)
LOCAL_MODULE := libmincrypt
LOCAL_SRC_FILES := dsa_sig.c p256.c p256_ec.c p256_ecdsa.c rsa.c sha.c sha256.c
LOCAL_CFLAGS := -Wall -Werror
include $(BUILD_STATIC_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE := libmincrypt
LOCAL_SRC_FILES := dsa_sig.c p256.c p256_ec.c p256_ecdsa.c rsa.c sha.c sha256.c
LOCAL_CFLAGS := -Wall -Werror
include $(BUILD_HOST_STATIC_LIBRARY)
include $(LOCAL_PATH)/test/Android.mk
endif # MINCRYPT_STANDALONE == true