blob: b33a3477745657a8c80ee607f28c2bfa2679b1dd [file] [log] [blame]
Kenny Root70e3a862012-02-15 17:20:23 -08001# Copyright (C) 2012 The Android Open Source Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15LOCAL_PATH := $(call my-dir)
16
17include $(CLEAR_VARS)
Adam Langley1fb05832014-09-23 17:42:36 -070018include $(TOP)/external/openssl/flavor.mk
Kenny Root70e3a862012-02-15 17:20:23 -080019
Adam Langley1fb05832014-09-23 17:42:36 -070020ifeq ($(OPENSSL_FLAVOR),BoringSSL)
21 LOCAL_MODULE := libkeystore-engine
Kenny Root70e3a862012-02-15 17:20:23 -080022
Adam Langley1fb05832014-09-23 17:42:36 -070023 LOCAL_SRC_FILES := \
24 android_engine.cpp
Kenny Root70e3a862012-02-15 17:20:23 -080025
Adam Langley1fb05832014-09-23 17:42:36 -070026 LOCAL_C_INCLUDES += \
27 external/openssl/src/include
28else
29 LOCAL_MODULE := libkeystore
Kenny Root70e3a862012-02-15 17:20:23 -080030
Adam Langley1fb05832014-09-23 17:42:36 -070031 LOCAL_SRC_FILES := \
Kenny Root9d422a52013-06-27 09:14:46 -070032 eng_keystore.cpp \
33 keyhandle.cpp \
Kenny Root77acaa02013-09-06 22:47:54 -070034 ecdsa_meth.cpp \
Kenny Root60711792013-08-16 14:02:41 -070035 dsa_meth.cpp \
Kenny Root9d422a52013-06-27 09:14:46 -070036 rsa_meth.cpp
Kenny Root70e3a862012-02-15 17:20:23 -080037
Adam Langley1fb05832014-09-23 17:42:36 -070038 LOCAL_C_INCLUDES += \
Kenny Root77acaa02013-09-06 22:47:54 -070039 external/openssl/include \
40 external/openssl
Adam Langley1fb05832014-09-23 17:42:36 -070041endif
42
43LOCAL_MODULE_TAGS := optional
44LOCAL_CFLAGS := -fvisibility=hidden -Wall -Werror
Kenny Root70e3a862012-02-15 17:20:23 -080045
46LOCAL_SHARED_LIBRARIES += \
47 libcrypto \
48 liblog \
49 libcutils \
Kenny Root07438c82012-11-02 15:41:02 -070050 libutils \
51 libbinder \
52 libkeystore_binder
Kenny Root70e3a862012-02-15 17:20:23 -080053
Kenny Root6a9cafc2012-11-16 12:53:42 -080054LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
55
Kenny Root70e3a862012-02-15 17:20:23 -080056include $(BUILD_SHARED_LIBRARY)