Home | History | Annotate | Download | only in keystore
      1 #
      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 
     17 LOCAL_PATH := $(call my-dir)
     18 
     19 include $(CLEAR_VARS)
     20 ifeq ($(USE_32_BIT_KEYSTORE), true)
     21 LOCAL_MULTILIB := 32
     22 endif
     23 LOCAL_CFLAGS := -Wall -Wextra -Werror
     24 LOCAL_SRC_FILES := keystore.cpp keyblob_utils.cpp
     25 LOCAL_C_INCLUDES := external/openssl/include
     26 LOCAL_SHARED_LIBRARIES := \
     27 	libbinder \
     28 	libcutils \
     29 	libcrypto \
     30 	libhardware \
     31 	libkeystore_binder \
     32 	liblog \
     33 	libsoftkeymaster \
     34 	libutils \
     35 	libselinux
     36 LOCAL_MODULE := keystore
     37 LOCAL_MODULE_TAGS := optional
     38 LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
     39 include $(BUILD_EXECUTABLE)
     40 
     41 include $(CLEAR_VARS)
     42 ifeq ($(USE_32_BIT_KEYSTORE), true)
     43 LOCAL_MULTILIB := 32
     44 endif
     45 LOCAL_CFLAGS := -Wall -Wextra -Werror
     46 LOCAL_SRC_FILES := keystore_cli.cpp
     47 LOCAL_C_INCLUDES := external/openssl/include
     48 LOCAL_SHARED_LIBRARIES := libcutils libcrypto libkeystore_binder libutils liblog libbinder
     49 LOCAL_MODULE := keystore_cli
     50 LOCAL_MODULE_TAGS := debug
     51 LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
     52 include $(BUILD_EXECUTABLE)
     53 
     54 # Library for keystore clients
     55 include $(CLEAR_VARS)
     56 ifeq ($(USE_32_BIT_KEYSTORE), true)
     57 LOCAL_MULTILIB := 32
     58 endif
     59 LOCAL_CFLAGS := -Wall -Wextra -Werror
     60 LOCAL_SRC_FILES := IKeystoreService.cpp keystore_get.cpp keyblob_utils.cpp
     61 LOCAL_SHARED_LIBRARIES := libbinder libutils liblog
     62 LOCAL_MODULE := libkeystore_binder
     63 LOCAL_MODULE_TAGS := optional
     64 LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
     65 LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
     66 LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
     67 include $(BUILD_SHARED_LIBRARY)
     68