OSDN Git Service

Couple libbatteryservice headers with module.
authorSteven Moreland <smoreland@google.com>
Mon, 10 Jul 2017 23:06:20 +0000 (16:06 -0700)
committerSteven Moreland <smoreland@google.com>
Wed, 12 Jul 2017 16:35:06 +0000 (16:35 +0000)
Also moved these headers to be local to the service.

Test: used headers with BOARD_VNDK_VERSION=current
Bug: 37342627
Change-Id: I1d8142ff53036e99cf509a22855928248c29a924

include/batteryservice [new symlink]
services/batteryservice/Android.bp
services/batteryservice/include/batteryservice/BatteryService.h [moved from include/batteryservice/BatteryService.h with 100% similarity]
services/batteryservice/include/batteryservice/BatteryServiceConstants.h [moved from include/batteryservice/BatteryServiceConstants.h with 100% similarity]
services/batteryservice/include/batteryservice/IBatteryPropertiesListener.h [moved from include/batteryservice/IBatteryPropertiesListener.h with 100% similarity]
services/batteryservice/include/batteryservice/IBatteryPropertiesRegistrar.h [moved from include/batteryservice/IBatteryPropertiesRegistrar.h with 100% similarity]

diff --git a/include/batteryservice b/include/batteryservice
new file mode 120000 (symlink)
index 0000000..2178c32
--- /dev/null
@@ -0,0 +1 @@
+../services/batteryservice/include/batteryservice/
\ No newline at end of file
index e441bda..4c7265b 100644 (file)
@@ -1,3 +1,11 @@
+cc_library_headers {
+    name: "libbatteryservice_headers",
+    vendor_available: true,
+    export_include_dirs: ["include"],
+    header_libs: ["libbinder_headers"],
+    export_header_lib_headers: ["libbinder_headers"],
+}
+
 cc_library {
     name: "libbatteryservice",
 
@@ -8,6 +16,9 @@ cc_library {
         "IBatteryPropertiesRegistrar.cpp",
     ],
 
+    header_libs: ["libbatteryservice_headers"],
+    export_header_lib_headers: ["libbatteryservice_headers"],
+
     shared_libs: [
         "libutils",
         "libbinder",
@@ -19,4 +30,4 @@ cc_library {
         "-Wunused",
         "-Wunreachable-code",
     ],
-}
\ No newline at end of file
+}