blob: 22bba0142e6d1ecd9cc1518cd3eb592c43e737ac [file] [log] [blame]
Kenny Roota91203b2012-02-15 15:00:46 -08001#
2# Copyright (C) 2009 The Android Open Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17LOCAL_PATH := $(call my-dir)
18
19include $(CLEAR_VARS)
Kenny Rootda1ed9a2012-04-10 12:34:07 -070020LOCAL_CFLAGS := -Wall -Wextra -Werror
Kenny Root822c3a92012-03-23 16:34:39 -070021LOCAL_SRC_FILES := keystore.cpp keyblob_utils.cpp
Kenny Roota91203b2012-02-15 15:00:46 -080022LOCAL_C_INCLUDES := external/openssl/include
Kenny Root17208e02013-09-04 13:56:03 -070023LOCAL_SHARED_LIBRARIES := \
24 libbinder \
25 libcutils \
26 libcrypto \
27 libhardware \
28 libkeystore_binder \
29 liblog \
30 libsoftkeymaster \
Riley Spahneaabae92014-06-30 12:39:52 -070031 libutils \
32 libselinux
Kenny Roota91203b2012-02-15 15:00:46 -080033LOCAL_MODULE := keystore
Kenny Root70e3a862012-02-15 17:20:23 -080034LOCAL_MODULE_TAGS := optional
Kenny Root6a9cafc2012-11-16 12:53:42 -080035LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
Kenny Roota91203b2012-02-15 15:00:46 -080036include $(BUILD_EXECUTABLE)
37
38include $(CLEAR_VARS)
Kenny Rootda1ed9a2012-04-10 12:34:07 -070039LOCAL_CFLAGS := -Wall -Wextra -Werror
Kenny Roota91203b2012-02-15 15:00:46 -080040LOCAL_SRC_FILES := keystore_cli.cpp
41LOCAL_C_INCLUDES := external/openssl/include
Ying Wanga6fe6202013-04-09 22:05:12 -070042LOCAL_SHARED_LIBRARIES := libcutils libcrypto libkeystore_binder libutils liblog libbinder
Kenny Roota91203b2012-02-15 15:00:46 -080043LOCAL_MODULE := keystore_cli
44LOCAL_MODULE_TAGS := debug
Kenny Root6a9cafc2012-11-16 12:53:42 -080045LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
Kenny Roota91203b2012-02-15 15:00:46 -080046include $(BUILD_EXECUTABLE)
Kenny Root51878182012-03-13 12:53:19 -070047
48# Library for keystore clients
49include $(CLEAR_VARS)
Kenny Rootda1ed9a2012-04-10 12:34:07 -070050LOCAL_CFLAGS := -Wall -Wextra -Werror
Kenny Root07438c82012-11-02 15:41:02 -070051LOCAL_SRC_FILES := IKeystoreService.cpp keystore_get.cpp keyblob_utils.cpp
Ying Wanga6fe6202013-04-09 22:05:12 -070052LOCAL_SHARED_LIBRARIES := libbinder libutils liblog
Kenny Root07438c82012-11-02 15:41:02 -070053LOCAL_MODULE := libkeystore_binder
Kenny Root51878182012-03-13 12:53:19 -070054LOCAL_MODULE_TAGS := optional
Kenny Root07438c82012-11-02 15:41:02 -070055LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
56LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
Kenny Root6a9cafc2012-11-16 12:53:42 -080057LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
Kenny Root822c3a92012-03-23 16:34:39 -070058include $(BUILD_SHARED_LIBRARY)