Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cdf4114b authored by Dan Willemsen's avatar Dan Willemsen
Browse files

Convert to Android.bp

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

Test: mmma -j frameworks/av/media/libnbaio
Change-Id: Ifd5f13ad6ab1c9590623c3b58adea5ef3ea6af60
Merged-In: Ifd5f13ad6ab1c9590623c3b58adea5ef3ea6af60
parent da1ce7f9
Loading
Loading
Loading
Loading
+36 −0
Original line number Diff line number Diff line
cc_library_shared {
    name: "libnbaio",
    srcs: [
        "AudioBufferProviderSource.cpp",
        "AudioStreamOutSink.cpp",
        "AudioStreamInSource.cpp",
        "NBAIO.cpp",
        "MonoPipe.cpp",
        "MonoPipeReader.cpp",
        "Pipe.cpp",
        "PipeReader.cpp",
        "SourceAudioBufferProvider.cpp",

        "NBLog.cpp",
    ],

    // libsndfile license is incompatible; uncomment to use for local debug only
    // srcs: [
    //     "LibsndfileSink.cpp",
    //     "LibsndfileSource.cpp",
    // ],
    // static_libs: ["libsndfile"],

    shared_libs: [
        "libaudioutils",
        "libbinder",
        "libcutils",
        "libutils",
        "liblog",
    ],

    cflags: [
        "-Werror",
        "-Wall",
    ],
}

media/libnbaio/Android.mk

deleted100644 → 0
+0 −36
Original line number Diff line number Diff line
LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_SRC_FILES := \
    AudioBufferProviderSource.cpp   \
    AudioStreamOutSink.cpp          \
    AudioStreamInSource.cpp         \
    NBAIO.cpp                       \
    MonoPipe.cpp                    \
    MonoPipeReader.cpp              \
    Pipe.cpp                        \
    PipeReader.cpp                  \
    SourceAudioBufferProvider.cpp

LOCAL_SRC_FILES += NBLog.cpp

# libsndfile license is incompatible; uncomment to use for local debug only
#LOCAL_SRC_FILES += LibsndfileSink.cpp LibsndfileSource.cpp
#LOCAL_C_INCLUDES += path/to/libsndfile/src
#LOCAL_STATIC_LIBRARIES += libsndfile

LOCAL_MODULE := libnbaio

LOCAL_SHARED_LIBRARIES := \
    libaudioutils \
    libbinder \
    libcutils \
    libutils \
    liblog

LOCAL_C_INCLUDES := $(call include-path-for, audio-utils)

LOCAL_CFLAGS := -Werror -Wall

include $(BUILD_SHARED_LIBRARY)