diff options
author | Josh Gao | 2016-08-05 17:47:57 -0500 |
---|---|---|
committer | Josh Gao | 2016-08-05 20:07:36 -0500 |
commit | 47763c3a09e8581338c307c5a5de4ae359c3b6e7 (patch) | |
tree | 520a46b484eb9b4843ccff539c68358749a74cf2 /libcrypto_utils | |
parent | 5b7e3b9a2a703642de18dcb4869c58ac93be3205 (diff) | |
download | platform-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.bp | 37 | ||||
-rw-r--r-- | libcrypto_utils/Android.mk | 56 |
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 | |||
17 | cc_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 | |||
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 | ||
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 | ||
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)) | ||