OSDN Git Service

audio hal: explicitly import headers
authorSteven Moreland <smoreland@google.com>
Mon, 17 Apr 2017 21:35:45 +0000 (14:35 -0700)
committerSteven Moreland <smoreland@google.com>
Mon, 17 Apr 2017 22:56:52 +0000 (15:56 -0700)
Test: works with BOARD_VNDK_VERSION := current
Bug: 33241851
Change-Id: I34983a5527a16e8e9f5a6a87edac0b741aeb67d6

audio/2.0/default/Android.mk
audio/common/2.0/default/Android.bp
audio/effect/2.0/default/Android.mk

index 93f7ad0..621853c 100644 (file)
@@ -43,6 +43,12 @@ LOCAL_SHARED_LIBRARIES := \
     android.hardware.audio.common@2.0 \
     android.hardware.audio.common@2.0-util \
 
+LOCAL_HEADER_LIBRARIES := \
+    libaudioclient_headers \
+    libaudio_system_headers \
+    libhardware_headers \
+    libmedia_headers \
+
 LOCAL_WHOLE_STATIC_LIBRARIES := libmedia_helper
 
 include $(BUILD_SHARED_LIBRARY)
index e39a908..0486a5c 100644 (file)
@@ -24,9 +24,14 @@ cc_library_shared {
     export_include_dirs: ["."],
 
     shared_libs: [
+        "liblog",
         "libutils",
         "libhidlbase",
         "android.hardware.audio.common@2.0",
     ],
 
+    header_libs: [
+        "libaudio_system_headers",
+        "libhardware_headers",
+    ],
 }
index bbcf298..f89d4f7 100644 (file)
@@ -36,4 +36,11 @@ LOCAL_SHARED_LIBRARIES := \
     android.hardware.audio.effect@2.0 \
     android.hidl.memory@1.0 \
 
+LOCAL_HEADER_LIBRARIES := \
+    libaudio_system_headers \
+    libaudioclient_headers \
+    libeffects_headers \
+    libhardware_headers \
+    libmedia_headers \
+
 include $(BUILD_SHARED_LIBRARY)