summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Gao2016-08-05 17:47:57 -0500
committerJosh Gao2016-08-05 20:07:36 -0500
commit47763c3a09e8581338c307c5a5de4ae359c3b6e7 (patch)
tree520a46b484eb9b4843ccff539c68358749a74cf2 /libcrypto_utils
parent5b7e3b9a2a703642de18dcb4869c58ac93be3205 (diff)
downloadplatform-system-core-47763c3a09e8581338c307c5a5de4ae359c3b6e7.tar.gz
platform-system-core-47763c3a09e8581338c307c5a5de4ae359c3b6e7.tar.xz
platform-system-core-47763c3a09e8581338c307c5a5de4ae359c3b6e7.zip
libcrypto_utils: convert to Soong.
Bug: http://b/30708454 Change-Id: Iaad64272ced766f87e67f2877e990afccc558065
Diffstat (limited to 'libcrypto_utils')
-rw-r--r--libcrypto_utils/Android.bp37
-rw-r--r--libcrypto_utils/Android.mk56
2 files changed, 37 insertions, 56 deletions
diff --git a/libcrypto_utils/Android.bp b/libcrypto_utils/Android.bp
new file mode 100644
index 000000000..ca7bd3119
--- /dev/null
+++ b/libcrypto_utils/Android.bp
@@ -0,0 +1,37 @@
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
17cc_library {
18 name: "libcrypto_utils",
19 host_supported: true,
20 srcs: [
21 "android_pubkey.c",
22 ],
23 cflags: [
24 "-Wall",
25 "-Wextra",
26 "-Werror",
27 "-std=c99",
28 ],
29 local_include_dirs: ["include"],
30 export_include_dirs: ["include"],
31 shared_libs: ["libcrypto"],
32 target: {
33 windows: {
34 enabled: true,
35 },
36 },
37}
diff --git a/libcrypto_utils/Android.mk b/libcrypto_utils/Android.mk
deleted file mode 100644
index b6d220443..000000000
--- a/libcrypto_utils/Android.mk
+++ /dev/null
@@ -1,56 +0,0 @@
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
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
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
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))