Convert libsoundpool to Android.bp

See build/soong/README.md for more information.

Test: m -j checkbuild
Change-Id: If0b7cb1e2c86ff1be41c00d98fd9ddec31287a53
Merged-In: If0b7cb1e2c86ff1be41c00d98fd9ddec31287a53
(cherry picked from commit 98c127f8cc)
This commit is contained in:
Colin Cross
2017-05-16 13:08:19 -07:00
parent 58d87e8ab7
commit da8082bda2
3 changed files with 29 additions and 23 deletions

View File

@@ -74,4 +74,5 @@ cc_library_shared {
subdirs = [
"audioeffect",
"soundpool",
]

View File

@@ -0,0 +1,28 @@
cc_library_shared {
name: "libsoundpool",
srcs: [
"android_media_SoundPool.cpp",
"SoundPool.cpp",
"SoundPoolThread.cpp",
],
shared_libs: [
"liblog",
"libcutils",
"libutils",
"libandroid_runtime",
"libnativehelper",
"libaudioclient",
"libmediandk",
"libbinder",
],
cflags: [
"-Wall",
"-Werror",
"-Wno-error=deprecated-declarations",
"-Wunused",
"-Wunreachable-code",
],
}

View File

@@ -1,23 +0,0 @@
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_SRC_FILES:= \
android_media_SoundPool.cpp \
SoundPool.cpp \
SoundPoolThread.cpp
LOCAL_SHARED_LIBRARIES := \
liblog \
libcutils \
libutils \
libandroid_runtime \
libnativehelper \
libaudioclient \
libmediandk \
libbinder
LOCAL_MODULE:= libsoundpool
LOCAL_CFLAGS += -Wall -Werror -Wno-error=deprecated-declarations -Wunused -Wunreachable-code
include $(BUILD_SHARED_LIBRARY)