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

Commit a4c863fa authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Convert to Android.bp"

parents a50b46b7 cdf4114b
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)