OSDN Git Service

Convert libpower from Android.mk to Android.bp
authorColin Cross <ccross@android.com>
Tue, 8 Nov 2016 18:17:11 +0000 (10:17 -0800)
committerColin Cross <ccross@android.com>
Thu, 12 Jan 2017 23:35:16 +0000 (15:35 -0800)
See build/soong/README.md for more information.

Test: builds
Change-Id: I4cc68e4bbe65abe741c02448aa7f42fdfd5804fa

Android.bp [new file with mode: 0644]
Android.mk

diff --git a/Android.bp b/Android.bp
new file mode 100644 (file)
index 0000000..283e841
--- /dev/null
@@ -0,0 +1,9 @@
+// Copyright 2006 The Android Open Source Project
+
+cc_library {
+    name: "libpower",
+
+    srcs: ["power/power.c"],
+    export_include_dirs: ["include"],
+    shared_libs: ["libcutils"],
+}
index 62ed210..38997be 100644 (file)
@@ -31,30 +31,6 @@ LOCAL_MODULE:= libhardware_legacy
 
 include $(BUILD_SHARED_LIBRARY)
 
-# static library for librpc
-include $(CLEAR_VARS)
-
-LOCAL_MODULE:= libpower
-
-LOCAL_SRC_FILES += power/power.c
-LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
-LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
-
-include $(BUILD_STATIC_LIBRARY)
-
-# shared library for various HALs
-include $(CLEAR_VARS)
-
-LOCAL_MODULE := libpower
-
-LOCAL_SRC_FILES := power/power.c
-LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
-LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
-
-LOCAL_SHARED_LIBRARIES := libcutils
-
-include $(BUILD_SHARED_LIBRARY)
-
 # legacy_audio builds it's own set of libraries that aren't linked into
 # hardware_legacy
 include $(LEGACY_AUDIO_MAKEFILES)