aboutsummaryrefslogtreecommitdiff
path: root/Android.mk
blob: 2d3e44c43ef46aa98de671cc542f828a608fb989 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# 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