diff options
| author | Josh Gao <jmgao@google.com> | 2016-08-05 15:47:57 -0700 |
|---|---|---|
| committer | Josh Gao <jmgao@google.com> | 2016-08-05 18:07:36 -0700 |
| commit | 47763c3a09e8581338c307c5a5de4ae359c3b6e7 (patch) | |
| tree | 520a46b484eb9b4843ccff539c68358749a74cf2 /libcrypto_utils | |
| parent | 5b7e3b9a2a703642de18dcb4869c58ac93be3205 (diff) | |
| download | system_core-47763c3a09e8581338c307c5a5de4ae359c3b6e7.tar.gz system_core-47763c3a09e8581338c307c5a5de4ae359c3b6e7.tar.bz2 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 @@ +// +// Copyright (C) 2016 The Android Open Source Project +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +cc_library { + name: "libcrypto_utils", + host_supported: true, + srcs: [ + "android_pubkey.c", + ], + cflags: [ + "-Wall", + "-Wextra", + "-Werror", + "-std=c99", + ], + local_include_dirs: ["include"], + export_include_dirs: ["include"], + shared_libs: ["libcrypto"], + target: { + windows: { + enabled: true, + }, + }, +} 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 @@ -# -# Copyright (C) 2016 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -LOCAL_PATH := $(call my-dir) - -include $(CLEAR_VARS) -LOCAL_MODULE := libcrypto_utils -LOCAL_SRC_FILES := android_pubkey.c -LOCAL_CFLAGS := -Wall -Werror -Wextra -std=c99 -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include -LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include -LOCAL_SHARED_LIBRARIES := libcrypto -include $(BUILD_SHARED_LIBRARY) - -include $(CLEAR_VARS) -LOCAL_MODULE := libcrypto_utils -LOCAL_SRC_FILES := android_pubkey.c -LOCAL_CFLAGS := -Wall -Werror -Wextra -std=c99 -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include -LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include -LOCAL_SHARED_LIBRARIES := libcrypto -include $(BUILD_HOST_SHARED_LIBRARY) - -include $(CLEAR_VARS) -LOCAL_MODULE := libcrypto_utils_static -LOCAL_SRC_FILES := android_pubkey.c -LOCAL_CFLAGS := -Wall -Werror -Wextra -std=c99 -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include -LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include -LOCAL_STATIC_LIBRARIES := libcrypto -include $(BUILD_STATIC_LIBRARY) - -include $(CLEAR_VARS) -LOCAL_MODULE := libcrypto_utils_static -LOCAL_MODULE_HOST_OS := darwin linux windows -LOCAL_SRC_FILES := android_pubkey.c -LOCAL_CFLAGS := -Wall -Werror -Wextra -std=c99 -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include -LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include -LOCAL_STATIC_LIBRARIES := libcrypto_static -include $(BUILD_HOST_STATIC_LIBRARY) - -include $(call all-makefiles-under,$(LOCAL_PATH)) |
