1 2cc_defaults { 3 name: "libnbaio_mono_defaults", 4 srcs: [ 5 "MonoPipe.cpp", 6 "MonoPipeReader.cpp", 7 "NBAIO.cpp", 8 ], 9 header_libs: [ 10 "libaudioclient_headers", 11 "libaudio_system_headers", 12 "libmedia_headers", 13 ], 14 export_header_lib_headers: [ 15 "libaudioclient_headers", 16 "libmedia_headers", 17 ], 18 19 shared_libs: [ 20 "libaudioutils", 21 "liblog", 22 "libutils", 23 ], 24 25 export_include_dirs: ["include_mono"], 26} 27 28// libnbaio_mono is the part of libnbaio that is available for vendors to use. Vendor modules can't 29// link against libnbaio and system modules can't link against libnbaio_mono. The rest of libnbaio 30// pulls in too many other dependencies. 31cc_library_shared { 32 name: "libnbaio_mono", 33 vendor: true, 34 defaults: ["libnbaio_mono_defaults"], 35} 36 37cc_library_shared { 38 name: "libnbaio", 39 defaults: ["libnbaio_mono_defaults"], 40 srcs: [ 41 "AudioBufferProviderSource.cpp", 42 "AudioStreamInSource.cpp", 43 "AudioStreamOutSink.cpp", 44 "Pipe.cpp", 45 "PipeReader.cpp", 46 "SourceAudioBufferProvider.cpp", 47 ], 48 49 // libsndfile license is incompatible; uncomment to use for local debug only 50 // srcs: [ 51 // "LibsndfileSink.cpp", 52 // "LibsndfileSource.cpp", 53 // ], 54 // static_libs: ["libsndfile"], 55 56 shared_libs: [ 57 "libaudioutils", 58 "libbinder", 59 "libcutils", 60 "liblog", 61 "libutils", 62 ], 63 64 cflags: [ 65 "-Werror", 66 "-Wall", 67 ], 68 69 include_dirs: ["system/media/audio_utils/include"], 70 71 export_include_dirs: ["include"], 72} 73