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
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
-rw-r--r--adb/Android.mk18
-rw-r--r--fs_mgr/Android.mk4
-rw-r--r--init/Android.mk4
-rw-r--r--libcrypto_utils/Android.bp37
-rw-r--r--libcrypto_utils/Android.mk56
5 files changed, 50 insertions, 69 deletions
diff --git a/adb/Android.mk b/adb/Android.mk
index 7c029be41..351232344 100644
--- a/adb/Android.mk
+++ b/adb/Android.mk
@@ -111,7 +111,7 @@ LOCAL_SANITIZE := $(adb_target_sanitize)
111 111
112# Even though we're building a static library (and thus there's no link step for 112# Even though we're building a static library (and thus there's no link step for
113# this to take effect), this adds the includes to our path. 113# this to take effect), this adds the includes to our path.
114LOCAL_STATIC_LIBRARIES := libcrypto_utils_static libcrypto_static libbase 114LOCAL_STATIC_LIBRARIES := libcrypto_utils libcrypto libbase
115 115
116include $(BUILD_STATIC_LIBRARY) 116include $(BUILD_STATIC_LIBRARY)
117 117
@@ -134,7 +134,7 @@ LOCAL_SANITIZE := $(adb_host_sanitize)
134 134
135# Even though we're building a static library (and thus there's no link step for 135# Even though we're building a static library (and thus there's no link step for
136# this to take effect), this adds the includes to our path. 136# this to take effect), this adds the includes to our path.
137LOCAL_STATIC_LIBRARIES := libcrypto_utils_static libcrypto_static libbase 137LOCAL_STATIC_LIBRARIES := libcrypto_utils libcrypto libbase
138 138
139LOCAL_C_INCLUDES_windows := development/host/windows/usb/api/ 139LOCAL_C_INCLUDES_windows := development/host/windows/usb/api/
140LOCAL_MULTILIB := first 140LOCAL_MULTILIB := first
@@ -154,7 +154,7 @@ LOCAL_SRC_FILES := \
154 shell_service_test.cpp \ 154 shell_service_test.cpp \
155 155
156LOCAL_SANITIZE := $(adb_target_sanitize) 156LOCAL_SANITIZE := $(adb_target_sanitize)
157LOCAL_STATIC_LIBRARIES := libadbd libcrypto_utils_static libcrypto_static 157LOCAL_STATIC_LIBRARIES := libadbd libcrypto_utils libcrypto
158LOCAL_SHARED_LIBRARIES := liblog libbase libcutils 158LOCAL_SHARED_LIBRARIES := liblog libbase libcutils
159include $(BUILD_NATIVE_TEST) 159include $(BUILD_NATIVE_TEST)
160 160
@@ -194,8 +194,8 @@ LOCAL_SANITIZE := $(adb_host_sanitize)
194LOCAL_SHARED_LIBRARIES := libbase 194LOCAL_SHARED_LIBRARIES := libbase
195LOCAL_STATIC_LIBRARIES := \ 195LOCAL_STATIC_LIBRARIES := \
196 libadb \ 196 libadb \
197 libcrypto_utils_static \ 197 libcrypto_utils \
198 libcrypto_static \ 198 libcrypto \
199 libcutils \ 199 libcutils \
200 libdiagnose_usb \ 200 libdiagnose_usb \
201 201
@@ -257,8 +257,8 @@ LOCAL_SANITIZE := $(adb_host_sanitize)
257LOCAL_STATIC_LIBRARIES := \ 257LOCAL_STATIC_LIBRARIES := \
258 libadb \ 258 libadb \
259 libbase \ 259 libbase \
260 libcrypto_utils_static \ 260 libcrypto_utils \
261 libcrypto_static \ 261 libcrypto \
262 libdiagnose_usb \ 262 libdiagnose_usb \
263 liblog \ 263 liblog \
264 264
@@ -334,8 +334,8 @@ LOCAL_STATIC_LIBRARIES := \
334 libsquashfs_utils \ 334 libsquashfs_utils \
335 libcutils \ 335 libcutils \
336 libbase \ 336 libbase \
337 libcrypto_utils_static \ 337 libcrypto_utils \
338 libcrypto_static \ 338 libcrypto \
339 libminijail \ 339 libminijail \
340 libdebuggerd_client \ 340 libdebuggerd_client \
341 341
diff --git a/fs_mgr/Android.mk b/fs_mgr/Android.mk
index 7da3ca440..d6b699bdd 100644
--- a/fs_mgr/Android.mk
+++ b/fs_mgr/Android.mk
@@ -7,8 +7,8 @@ common_static_libraries := \
7 libfec \ 7 libfec \
8 libfec_rs \ 8 libfec_rs \
9 libbase \ 9 libbase \
10 libcrypto_utils_static \ 10 libcrypto_utils \
11 libcrypto_static \ 11 libcrypto \
12 libext4_utils_static \ 12 libext4_utils_static \
13 libsquashfs_utils \ 13 libsquashfs_utils \
14 libselinux 14 libselinux
diff --git a/init/Android.mk b/init/Android.mk
index 7aa3c3ffa..588845678 100644
--- a/init/Android.mk
+++ b/init/Android.mk
@@ -94,8 +94,8 @@ LOCAL_STATIC_LIBRARIES := \
94 libc \ 94 libc \
95 libselinux \ 95 libselinux \
96 liblog \ 96 liblog \
97 libcrypto_utils_static \ 97 libcrypto_utils \
98 libcrypto_static \ 98 libcrypto \
99 libc++_static \ 99 libc++_static \
100 libdl \ 100 libdl \
101 libsparse_static \ 101 libsparse_static \
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))