summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuntao Xu <yuntaoxu@google.com>2021-06-15 20:38:39 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2021-06-15 20:38:39 +0000
commitffe5476966c41c2a350ad2a45eebe4d8e066bb9a (patch)
tree1a158b682e23b666ad0d2b1be71a0eeea37d9017
parent5ebe277587b380dd2106ee713b37c8abb334a4e4 (diff)
parent8e7845456c6487190282dee5ab3034f48267b566 (diff)
downloadwlan-ffe5476966c41c2a350ad2a45eebe4d8e066bb9a.tar.gz
Merge "Convert cld80211-lib/Android.mk to Android.bp"
-rw-r--r--cld80211-lib/Android.bp28
-rw-r--r--cld80211-lib/Android.mk16
2 files changed, 28 insertions, 16 deletions
diff --git a/cld80211-lib/Android.bp b/cld80211-lib/Android.bp
new file mode 100644
index 0000000..7aa2f1e
--- /dev/null
+++ b/cld80211-lib/Android.bp
@@ -0,0 +1,28 @@
+package {
+ // See: http://go/android-license-faq
+ default_applicable_licenses: ["hardware_qcom_wlan_cld80221-lib_license"],
+}
+
+license {
+ name: "hardware_qcom_wlan_cld80221-lib_license",
+ visibility: [":__subpackages__"],
+ license_kinds: [
+ "SPDX-license-identifier-BSD",
+ ],
+}
+
+cc_library_shared {
+ name: "libcld80211",
+ include_dirs: ["external/libnl/include"],
+ shared_libs: [
+ "libcutils",
+ "libnl",
+ "liblog",
+ ],
+ srcs: ["cld80211_lib.c"],
+ cflags: [
+ "-Wno-unused-parameter",
+ ],
+ export_include_dirs: ["."],
+ vendor: true,
+}
diff --git a/cld80211-lib/Android.mk b/cld80211-lib/Android.mk
deleted file mode 100644
index e97917a..0000000
--- a/cld80211-lib/Android.mk
+++ /dev/null
@@ -1,16 +0,0 @@
-LOCAL_PATH := $(call my-dir)
-
-include $(CLEAR_VARS)
-LOCAL_MODULE := libcld80211
-LOCAL_LICENSE_KINDS := SPDX-license-identifier-BSD
-LOCAL_LICENSE_CONDITIONS := notice
-LOCAL_CLANG := true
-LOCAL_MODULE_TAGS := optional
-LOCAL_C_INCLUDES += $(LOCAL_PATH) \
- external/libnl/include
-LOCAL_SHARED_LIBRARIES := libcutils libnl liblog
-LOCAL_SRC_FILES := cld80211_lib.c
-LOCAL_CFLAGS += -Wall -Werror -Wno-unused-parameter
-LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
-LOCAL_VENDOR_MODULE := true
-include $(BUILD_SHARED_LIBRARY)