| Mattias Nissler | b62146d | 2016-03-31 16:31:42 +0200 | [diff] [blame] | 1 | # | 
|  | 2 | # Copyright (C) 2016 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 | LOCAL_MODULE := libcrypto_utils | 
|  | 21 | LOCAL_SRC_FILES := android_pubkey.c | 
|  | 22 | LOCAL_CFLAGS := -Wall -Werror -Wextra -std=c99 | 
|  | 23 | LOCAL_C_INCLUDES := $(LOCAL_PATH)/include | 
|  | 24 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include | 
|  | 25 | LOCAL_SHARED_LIBRARIES := libcrypto | 
|  | 26 | include $(BUILD_SHARED_LIBRARY) | 
|  | 27 |  | 
|  | 28 | include $(CLEAR_VARS) | 
|  | 29 | LOCAL_MODULE := libcrypto_utils | 
|  | 30 | LOCAL_SRC_FILES := android_pubkey.c | 
|  | 31 | LOCAL_CFLAGS := -Wall -Werror -Wextra -std=c99 | 
|  | 32 | LOCAL_C_INCLUDES := $(LOCAL_PATH)/include | 
|  | 33 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include | 
|  | 34 | LOCAL_SHARED_LIBRARIES := libcrypto-host | 
|  | 35 | include $(BUILD_HOST_SHARED_LIBRARY) | 
|  | 36 |  | 
|  | 37 | include $(CLEAR_VARS) | 
|  | 38 | LOCAL_MODULE := libcrypto_utils_static | 
|  | 39 | LOCAL_SRC_FILES := android_pubkey.c | 
|  | 40 | LOCAL_CFLAGS := -Wall -Werror -Wextra -std=c99 | 
|  | 41 | LOCAL_C_INCLUDES := $(LOCAL_PATH)/include | 
|  | 42 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include | 
|  | 43 | LOCAL_STATIC_LIBRARIES := libcrypto_static | 
|  | 44 | include $(BUILD_STATIC_LIBRARY) | 
|  | 45 |  | 
|  | 46 | include $(CLEAR_VARS) | 
|  | 47 | LOCAL_MODULE := libcrypto_utils_static | 
|  | 48 | LOCAL_MODULE_HOST_OS := darwin linux windows | 
|  | 49 | LOCAL_SRC_FILES := android_pubkey.c | 
|  | 50 | LOCAL_CFLAGS := -Wall -Werror -Wextra -std=c99 | 
|  | 51 | LOCAL_C_INCLUDES := $(LOCAL_PATH)/include | 
|  | 52 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include | 
|  | 53 | LOCAL_STATIC_LIBRARIES := libcrypto_static | 
|  | 54 | include $(BUILD_HOST_STATIC_LIBRARY) | 
|  | 55 |  | 
|  | 56 | include $(call all-makefiles-under,$(LOCAL_PATH)) |