summaryrefslogtreecommitdiff
path: root/Android.mk
diff options
context:
space:
mode:
Diffstat (limited to 'Android.mk')
-rw-r--r--Android.mk12
1 files changed, 12 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index 09fbbb1..2d3e44c 100644
--- a/Android.mk
+++ b/Android.mk
@@ -2,6 +2,16 @@
#
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
@@ -15,3 +25,5 @@ LOCAL_CFLAGS := -Wall -Werror
include $(BUILD_HOST_STATIC_LIBRARY)
include $(LOCAL_PATH)/test/Android.mk
+
+endif # MINCRYPT_STANDALONE == true