Steven Moreland | 6eb0c0e | 2017-07-06 11:11:31 -0700 | [diff] [blame] | 1 | |
| 2 | cc_defaults { |
| 3 | name: "libnbaio_mono_defaults", |
| 4 | srcs: [ |
| 5 | "MonoPipe.cpp", |
| 6 | "MonoPipeReader.cpp", |
| 7 | "NBAIO.cpp", |
| 8 | ], |
| 9 | header_libs: [ |
| 10 | "libaudioclient_headers", |
Kevin Rocard | 07be14f | 2018-01-24 06:14:03 +0000 | [diff] [blame^] | 11 | "libaudio_system_headers", |
Steven Moreland | 6eb0c0e | 2017-07-06 11:11:31 -0700 | [diff] [blame] | 12 | "libmedia_headers", |
| 13 | ], |
| 14 | export_header_lib_headers: [ |
| 15 | "libaudioclient_headers", |
| 16 | "libmedia_headers", |
| 17 | ], |
| 18 | |
| 19 | shared_libs: [ |
Kevin Rocard | 07be14f | 2018-01-24 06:14:03 +0000 | [diff] [blame^] | 20 | "libaudioutils", |
Steven Moreland | 6eb0c0e | 2017-07-06 11:11:31 -0700 | [diff] [blame] | 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. |
| 31 | cc_library_shared { |
Kevin Rocard | 07be14f | 2018-01-24 06:14:03 +0000 | [diff] [blame^] | 32 | name: "libnbaio_mono", |
Steven Moreland | 6eb0c0e | 2017-07-06 11:11:31 -0700 | [diff] [blame] | 33 | vendor: true, |
| 34 | defaults: ["libnbaio_mono_defaults"], |
| 35 | } |
| 36 | |
Dan Willemsen | e90894f | 2016-10-04 00:14:41 -0700 | [diff] [blame] | 37 | cc_library_shared { |
| 38 | name: "libnbaio", |
Steven Moreland | 6eb0c0e | 2017-07-06 11:11:31 -0700 | [diff] [blame] | 39 | defaults: ["libnbaio_mono_defaults"], |
Dan Willemsen | e90894f | 2016-10-04 00:14:41 -0700 | [diff] [blame] | 40 | srcs: [ |
| 41 | "AudioBufferProviderSource.cpp", |
Dan Willemsen | e90894f | 2016-10-04 00:14:41 -0700 | [diff] [blame] | 42 | "AudioStreamInSource.cpp", |
Glenn Kasten | ed99c2b | 2016-12-12 08:31:24 -0800 | [diff] [blame] | 43 | "AudioStreamOutSink.cpp", |
Dan Willemsen | e90894f | 2016-10-04 00:14:41 -0700 | [diff] [blame] | 44 | "Pipe.cpp", |
| 45 | "PipeReader.cpp", |
| 46 | "SourceAudioBufferProvider.cpp", |
Dan Willemsen | e90894f | 2016-10-04 00:14:41 -0700 | [diff] [blame] | 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: [ |
Kevin Rocard | 07be14f | 2018-01-24 06:14:03 +0000 | [diff] [blame^] | 57 | "libaudioutils", |
Dan Willemsen | e90894f | 2016-10-04 00:14:41 -0700 | [diff] [blame] | 58 | "libbinder", |
| 59 | "libcutils", |
Dan Willemsen | e90894f | 2016-10-04 00:14:41 -0700 | [diff] [blame] | 60 | "liblog", |
Steven Moreland | 6eb0c0e | 2017-07-06 11:11:31 -0700 | [diff] [blame] | 61 | "libutils", |
Dan Willemsen | e90894f | 2016-10-04 00:14:41 -0700 | [diff] [blame] | 62 | ], |
| 63 | |
| 64 | cflags: [ |
| 65 | "-Werror", |
| 66 | "-Wall", |
| 67 | ], |
Glenn Kasten | ed99c2b | 2016-12-12 08:31:24 -0800 | [diff] [blame] | 68 | |
| 69 | include_dirs: ["system/media/audio_utils/include"], |
Vijay Venkatraman | e2b4384 | 2017-02-02 13:35:37 -0800 | [diff] [blame] | 70 | |
Vijay Venkatraman | e2b4384 | 2017-02-02 13:35:37 -0800 | [diff] [blame] | 71 | export_include_dirs: ["include"], |
Dan Willemsen | e90894f | 2016-10-04 00:14:41 -0700 | [diff] [blame] | 72 | } |