Steven Moreland | 6eb0c0e | 2017-07-06 11:11:31 -0700 | [diff] [blame] | 1 | cc_defaults { |
| 2 | name: "libnbaio_mono_defaults", |
| 3 | srcs: [ |
| 4 | "MonoPipe.cpp", |
| 5 | "MonoPipeReader.cpp", |
| 6 | "NBAIO.cpp", |
| 7 | ], |
| 8 | header_libs: [ |
| 9 | "libaudioclient_headers", |
Kevin Rocard | 07be14f | 2018-01-24 06:14:03 +0000 | [diff] [blame] | 10 | "libaudio_system_headers", |
Steven Moreland | 6eb0c0e | 2017-07-06 11:11:31 -0700 | [diff] [blame] | 11 | "libmedia_headers", |
| 12 | ], |
| 13 | export_header_lib_headers: [ |
| 14 | "libaudioclient_headers", |
| 15 | "libmedia_headers", |
| 16 | ], |
| 17 | |
| 18 | shared_libs: [ |
Kevin Rocard | 07be14f | 2018-01-24 06:14:03 +0000 | [diff] [blame] | 19 | "libaudioutils", |
Steven Moreland | 6eb0c0e | 2017-07-06 11:11:31 -0700 | [diff] [blame] | 20 | "liblog", |
| 21 | "libutils", |
| 22 | ], |
Mikhail Naganov | 1917179 | 2019-08-02 08:57:25 -0700 | [diff] [blame^] | 23 | export_shared_lib_headers: [ |
| 24 | "libaudioutils", |
| 25 | ], |
Steven Moreland | 6eb0c0e | 2017-07-06 11:11:31 -0700 | [diff] [blame] | 26 | |
| 27 | export_include_dirs: ["include_mono"], |
| 28 | } |
| 29 | |
| 30 | // libnbaio_mono is the part of libnbaio that is available for vendors to use. Vendor modules can't |
| 31 | // link against libnbaio and system modules can't link against libnbaio_mono. The rest of libnbaio |
| 32 | // pulls in too many other dependencies. |
| 33 | cc_library_shared { |
Kevin Rocard | 07be14f | 2018-01-24 06:14:03 +0000 | [diff] [blame] | 34 | name: "libnbaio_mono", |
Steven Moreland | 6eb0c0e | 2017-07-06 11:11:31 -0700 | [diff] [blame] | 35 | vendor: true, |
| 36 | defaults: ["libnbaio_mono_defaults"], |
| 37 | } |
| 38 | |
Dan Willemsen | e90894f | 2016-10-04 00:14:41 -0700 | [diff] [blame] | 39 | cc_library_shared { |
| 40 | name: "libnbaio", |
Steven Moreland | 6eb0c0e | 2017-07-06 11:11:31 -0700 | [diff] [blame] | 41 | defaults: ["libnbaio_mono_defaults"], |
Dan Willemsen | e90894f | 2016-10-04 00:14:41 -0700 | [diff] [blame] | 42 | srcs: [ |
| 43 | "AudioBufferProviderSource.cpp", |
Dan Willemsen | e90894f | 2016-10-04 00:14:41 -0700 | [diff] [blame] | 44 | "AudioStreamInSource.cpp", |
Glenn Kasten | ed99c2b | 2016-12-12 08:31:24 -0800 | [diff] [blame] | 45 | "AudioStreamOutSink.cpp", |
Dan Willemsen | e90894f | 2016-10-04 00:14:41 -0700 | [diff] [blame] | 46 | "Pipe.cpp", |
| 47 | "PipeReader.cpp", |
| 48 | "SourceAudioBufferProvider.cpp", |
Dan Willemsen | e90894f | 2016-10-04 00:14:41 -0700 | [diff] [blame] | 49 | ], |
| 50 | |
| 51 | // libsndfile license is incompatible; uncomment to use for local debug only |
| 52 | // srcs: [ |
| 53 | // "LibsndfileSink.cpp", |
| 54 | // "LibsndfileSource.cpp", |
| 55 | // ], |
| 56 | // static_libs: ["libsndfile"], |
| 57 | |
| 58 | shared_libs: [ |
Kevin Rocard | 07be14f | 2018-01-24 06:14:03 +0000 | [diff] [blame] | 59 | "libaudioutils", |
Dan Willemsen | e90894f | 2016-10-04 00:14:41 -0700 | [diff] [blame] | 60 | "libbinder", |
| 61 | "libcutils", |
Dan Willemsen | e90894f | 2016-10-04 00:14:41 -0700 | [diff] [blame] | 62 | "liblog", |
Steven Moreland | 6eb0c0e | 2017-07-06 11:11:31 -0700 | [diff] [blame] | 63 | "libutils", |
Dan Willemsen | e90894f | 2016-10-04 00:14:41 -0700 | [diff] [blame] | 64 | ], |
| 65 | |
| 66 | cflags: [ |
| 67 | "-Werror", |
| 68 | "-Wall", |
| 69 | ], |
Glenn Kasten | ed99c2b | 2016-12-12 08:31:24 -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 | } |