Kenny Root | 70e3a86 | 2012-02-15 17:20:23 -0800 | [diff] [blame] | 1 | # 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 | |
| 15 | LOCAL_PATH := $(call my-dir) |
| 16 | |
| 17 | include $(CLEAR_VARS) |
| 18 | |
Adam Langley | 72b2bfb | 2015-01-22 17:21:34 -0800 | [diff] [blame^] | 19 | |
| 20 | ifneq (,$(wildcard $(TOP)/external/boringssl/flavor.mk)) |
| 21 | include $(TOP)/external/boringssl/flavor.mk |
| 22 | else |
| 23 | include $(TOP)/external/openssl/flavor.mk |
| 24 | endif |
Adam Langley | 1fb0583 | 2014-09-23 17:42:36 -0700 | [diff] [blame] | 25 | ifeq ($(OPENSSL_FLAVOR),BoringSSL) |
| 26 | LOCAL_MODULE := libkeystore-engine |
Kenny Root | 70e3a86 | 2012-02-15 17:20:23 -0800 | [diff] [blame] | 27 | |
Adam Langley | 1fb0583 | 2014-09-23 17:42:36 -0700 | [diff] [blame] | 28 | LOCAL_SRC_FILES := \ |
| 29 | android_engine.cpp |
Adam Langley | 1fb0583 | 2014-09-23 17:42:36 -0700 | [diff] [blame] | 30 | else |
| 31 | LOCAL_MODULE := libkeystore |
Kenny Root | 70e3a86 | 2012-02-15 17:20:23 -0800 | [diff] [blame] | 32 | |
Adam Langley | 1fb0583 | 2014-09-23 17:42:36 -0700 | [diff] [blame] | 33 | LOCAL_SRC_FILES := \ |
Kenny Root | 9d422a5 | 2013-06-27 09:14:46 -0700 | [diff] [blame] | 34 | eng_keystore.cpp \ |
| 35 | keyhandle.cpp \ |
Kenny Root | 77acaa0 | 2013-09-06 22:47:54 -0700 | [diff] [blame] | 36 | ecdsa_meth.cpp \ |
Kenny Root | 6071179 | 2013-08-16 14:02:41 -0700 | [diff] [blame] | 37 | dsa_meth.cpp \ |
Kenny Root | 9d422a5 | 2013-06-27 09:14:46 -0700 | [diff] [blame] | 38 | rsa_meth.cpp |
Kenny Root | 70e3a86 | 2012-02-15 17:20:23 -0800 | [diff] [blame] | 39 | |
Adam Langley | 1fb0583 | 2014-09-23 17:42:36 -0700 | [diff] [blame] | 40 | LOCAL_C_INCLUDES += \ |
Kenny Root | 77acaa0 | 2013-09-06 22:47:54 -0700 | [diff] [blame] | 41 | external/openssl/include \ |
| 42 | external/openssl |
Adam Langley | 1fb0583 | 2014-09-23 17:42:36 -0700 | [diff] [blame] | 43 | endif |
| 44 | |
| 45 | LOCAL_MODULE_TAGS := optional |
| 46 | LOCAL_CFLAGS := -fvisibility=hidden -Wall -Werror |
Kenny Root | 70e3a86 | 2012-02-15 17:20:23 -0800 | [diff] [blame] | 47 | |
| 48 | LOCAL_SHARED_LIBRARIES += \ |
| 49 | libcrypto \ |
| 50 | liblog \ |
| 51 | libcutils \ |
Kenny Root | 07438c8 | 2012-11-02 15:41:02 -0700 | [diff] [blame] | 52 | libutils \ |
| 53 | libbinder \ |
| 54 | libkeystore_binder |
Kenny Root | 70e3a86 | 2012-02-15 17:20:23 -0800 | [diff] [blame] | 55 | |
Kenny Root | 6a9cafc | 2012-11-16 12:53:42 -0800 | [diff] [blame] | 56 | LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk |
| 57 | |
Kenny Root | 70e3a86 | 2012-02-15 17:20:23 -0800 | [diff] [blame] | 58 | include $(BUILD_SHARED_LIBRARY) |