| package { |
| default_applicable_licenses: ["external_iamf_tools_license"], |
| } |
| |
| license { |
| name: "external_iamf_tools_license", |
| visibility: [":__subpackages__"], |
| license_kinds: [ |
| "SPDX-license-identifier-BSD", |
| "legacy_by_exception_only", |
| ], |
| license_text: [ |
| "LICENSE", |
| "PATENTS", |
| ], |
| } |
| |
| cc_library { |
| name: "iamf_tools", |
| export_include_dirs: [ |
| "iamf/api", |
| "iamf/api/decoder", |
| ], |
| cflags: [ |
| "-DIAMF_TOOLS_DISABLE_AAC_DECODER", |
| "-DIAMF_TOOLS_DISABLE_FLAC_DECODER", |
| ], |
| shared_libs: [ |
| "liblog", |
| "libopus", |
| ], |
| static_libs: [ |
| "libabsl", |
| ], |
| local_include_dirs: [ |
| ".", |
| ], |
| include_dirs: [ |
| "external/abseil-cpp", |
| "external/libopus", |
| ], |
| srcs: [ |
| "iamf/api/conversion/mix_presentation_conversion.cc", |
| "iamf/api/decoder/iamf_decoder.cc", |
| "iamf/cli/audio_frame_decoder.cc", |
| "iamf/cli/channel_label.cc", |
| "iamf/cli/cli_util.cc", |
| "iamf/cli/codec/lpcm_decoder.cc", |
| "iamf/cli/codec/opus_decoder.cc", |
| "iamf/cli/codec/opus_utils.cc", |
| "iamf/cli/demixing_module.cc", |
| "iamf/cli/global_timing_module.cc", |
| "iamf/cli/loudness_calculator_base.cc", |
| "iamf/cli/loudness_calculator_factory_base.cc", |
| "iamf/cli/obu_processor.cc", |
| "iamf/cli/obu_with_data_generator.cc", |
| "iamf/cli/parameters_manager.cc", |
| "iamf/cli/profile_filter.cc", |
| "iamf/cli/renderer_factory.cc", |
| "iamf/cli/renderer/audio_element_renderer_ambisonics_to_channel.cc", |
| "iamf/cli/renderer/audio_element_renderer_base.cc", |
| "iamf/cli/renderer/audio_element_renderer_channel_to_channel.cc", |
| "iamf/cli/renderer/audio_element_renderer_passthrough.cc", |
| "iamf/cli/renderer/loudspeakers_renderer.cc", |
| "iamf/cli/renderer/precomputed_gains.cc", |
| "iamf/cli/renderer/renderer_utils.cc", |
| "iamf/cli/rendering_mix_presentation_finalizer.cc", |
| "iamf/cli/sample_processor_base.cc", |
| "iamf/common/leb_generator.cc", |
| "iamf/common/read_bit_buffer.cc", |
| "iamf/common/utils/bit_buffer_util.cc", |
| "iamf/common/utils/numeric_utils.cc", |
| "iamf/common/utils/sample_processing_utils.cc", |
| "iamf/common/write_bit_buffer.cc", |
| "iamf/obu/audio_element.cc", |
| "iamf/obu/audio_frame.cc", |
| "iamf/obu/codec_config.cc", |
| "iamf/obu/decoder_config/aac_decoder_config.cc", |
| "iamf/obu/decoder_config/flac_decoder_config.cc", |
| "iamf/obu/decoder_config/lpcm_decoder_config.cc", |
| "iamf/obu/decoder_config/opus_decoder_config.cc", |
| "iamf/obu/demixing_info_parameter_data.cc", |
| "iamf/obu/demixing_param_definition.cc", |
| "iamf/obu/extension_parameter_data.cc", |
| "iamf/obu/ia_sequence_header.cc", |
| "iamf/obu/mix_gain_parameter_data.cc", |
| "iamf/obu/mix_presentation.cc", |
| "iamf/obu/obu_base.cc", |
| "iamf/obu/obu_header.cc", |
| "iamf/obu/param_definitions.cc", |
| "iamf/obu/parameter_block.cc", |
| "iamf/obu/recon_gain_info_parameter_data.cc", |
| ], |
| apex_available: [ |
| "com.android.media.swcodec", |
| ], |
| visibility: [ |
| "//frameworks/av/media/codec2/components/iamf", |
| ], |
| } |