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