Tim Yao | e004da0 | 2019-12-03 11:59:05 -0800 | [diff] [blame] | 1 | cmake_minimum_required(VERSION 3.8) |
| 2 | |
| 3 | project(aml_audio_hal |
| 4 | VERSION 1.0) |
| 5 | |
| 6 | include(GNUInstallDirs) |
jing.zhang | e42179c | 2022-04-15 18:05:55 +0800 | [diff] [blame] | 7 | execute_process(COMMAND sh version_config.sh WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}) |
yayun.shi | 4a7148a | 2021-07-16 06:13:50 -0400 | [diff] [blame] | 8 | add_subdirectory("libms12_v24") |
yayun.shi | f83e1a2 | 2021-07-22 01:33:58 -0400 | [diff] [blame] | 9 | add_subdirectory("audio_codec/libfaad") |
| 10 | add_subdirectory("audio_codec/libmad") |
wei.wang1 | 697eab6 | 2021-08-09 00:36:53 -0400 | [diff] [blame] | 11 | add_subdirectory("audio_codec/libvorbis") |
yayun.shi | 62e6794 | 2021-08-23 10:18:13 +0800 | [diff] [blame] | 12 | add_subdirectory("audio_codec/libdts") |
wei.wang1 | 8beebd8 | 2022-03-01 16:30:14 +0800 | [diff] [blame] | 13 | add_subdirectory("audio_codec/libdcv") |
Tim Yao | e004da0 | 2019-12-03 11:59:05 -0800 | [diff] [blame] | 14 | add_subdirectory("audio_hal/libaudioprocessing") |
| 15 | |
| 16 | add_library(spdifenc STATIC |
| 17 | utils/SPDIFEncoderAD.cpp |
| 18 | utils/spdifenc_wrap.cpp |
| 19 | ) |
| 20 | |
| 21 | target_include_directories(spdifenc PRIVATE |
| 22 | ./audio_hal |
| 23 | ./include |
yayun.shi | 4a7148a | 2021-07-16 06:13:50 -0400 | [diff] [blame] | 24 | ./include/utils |
shu.zhang | 5256329 | 2021-10-15 14:51:18 +0800 | [diff] [blame] | 25 | ./include/basic_utils |
yayun.shi | 4a7148a | 2021-07-16 06:13:50 -0400 | [diff] [blame] | 26 | ./utils/tinyalsa/include |
| 27 | ./utils/include) |
Tim Yao | e004da0 | 2019-12-03 11:59:05 -0800 | [diff] [blame] | 28 | |
Tim Yao | e419f81 | 2021-01-20 21:15:05 -0800 | [diff] [blame] | 29 | target_compile_options(spdifenc PRIVATE -Wno-deprecated-declarations -fPIC) |
Tim Yao | e004da0 | 2019-12-03 11:59:05 -0800 | [diff] [blame] | 30 | |
cheng tong | 12e5d13 | 2020-09-25 18:57:09 +0800 | [diff] [blame] | 31 | option(USE_DTV "Compile with DTV option" OFF) |
hui.liu | 300e42e | 2021-11-22 14:04:05 +0800 | [diff] [blame] | 32 | option(NO_USE_CAP "Don't support audio capture" OFF) |
Zhizhong Zhang | 1630230 | 2021-01-20 22:29:14 +0800 | [diff] [blame] | 33 | option(USE_SC2 "Current platform is sc2" OFF) |
hui.liu | 300e42e | 2021-11-22 14:04:05 +0800 | [diff] [blame] | 34 | option(NO_USE_CAP_MUTE_HDMI "Don't support audio capture mute for HDMI INPUT" OFF) |
Tim Yao | 97c694d | 2021-02-25 12:12:53 -0800 | [diff] [blame] | 35 | option(USE_APP_MIXING "Support appsound mixing" ON) |
Tim Yao | b9e78d8 | 2021-03-22 23:46:23 -0700 | [diff] [blame] | 36 | option(USE_DIAG_LOG "Support diagnostic logging for RDK" OFF) |
Blance Tang | f81e611 | 2022-08-19 08:37:15 +0800 | [diff] [blame] | 37 | option(USE_MEDIA_INFO "Support media info API reporting" OFF) |
jing.zhang | f497c3b | 2021-09-01 17:31:53 +0800 | [diff] [blame] | 38 | |
Pradeep Sriram | d18aa61 | 2020-05-14 13:05:34 -0700 | [diff] [blame] | 39 | |
| 40 | if(USE_DTV) |
yayun.shi | 4a7148a | 2021-07-16 06:13:50 -0400 | [diff] [blame] | 41 | list(APPEND DTV_FILES dtv_audio_utils/audio_data_read/audio_dtv_ad.c) |
Pradeep Sriram | d18aa61 | 2020-05-14 13:05:34 -0700 | [diff] [blame] | 42 | list(APPEND DTV_FILES audio_hal/audio_hw_dtv.c) |
yayun.shi | 4a7148a | 2021-07-16 06:13:50 -0400 | [diff] [blame] | 43 | list(APPEND DTV_FILES audio_hal/audio_dtv_utils.c) |
yayun.shi | 4a7148a | 2021-07-16 06:13:50 -0400 | [diff] [blame] | 44 | list(APPEND DTV_LIBS -L./amadec -laudamadec) |
cheng tong | fbe9e34 | 2021-11-02 13:03:35 +0800 | [diff] [blame] | 45 | list(APPEND DTV_LIBS -lam_adp -lasound) |
Zhizhong Zhang | 1630230 | 2021-01-20 22:29:14 +0800 | [diff] [blame] | 46 | list(APPEND DVB_AUDIO_INC ./dtv_audio_utils/sync) |
cheng tong | fbe9e34 | 2021-11-02 13:03:35 +0800 | [diff] [blame] | 47 | list(APPEND DVB_AUDIO_INC ./dtv_audio_utils/dmxwrap/MultiHwDemux) |
yayun.shi | 4a7148a | 2021-07-16 06:13:50 -0400 | [diff] [blame] | 48 | list(APPEND DVB_AUDIO_INC ./amadec/include) |
Zhizhong Zhang | 1630230 | 2021-01-20 22:29:14 +0800 | [diff] [blame] | 49 | list(APPEND DVB_AUDIO_LIBS -L./dtv_audio_utils -ldvbaudioutils) |
| 50 | |
cheng tong | 7177c1b | 2020-09-17 17:36:27 +0800 | [diff] [blame] | 51 | add_definitions(-DUSE_DTV) |
Pradeep Sriram | d18aa61 | 2020-05-14 13:05:34 -0700 | [diff] [blame] | 52 | endif() |
| 53 | |
Tim Yao | 97c694d | 2021-02-25 12:12:53 -0800 | [diff] [blame] | 54 | if(USE_APP_MIXING) |
| 55 | add_definitions(-DUSE_APP_MIXING) |
| 56 | endif() |
| 57 | |
Tim Yao | b9e78d8 | 2021-03-22 23:46:23 -0700 | [diff] [blame] | 58 | if(USE_DIAG_LOG) |
| 59 | add_definitions(-DDIAG_LOG) |
| 60 | endif() |
Song Zhao | c23fabe | 2020-09-18 13:28:40 -0700 | [diff] [blame] | 61 | option(USE_EQ_DRC "Compile with EQ/DRC" OFF) |
| 62 | |
cheng tong | 12e5d13 | 2020-09-25 18:57:09 +0800 | [diff] [blame] | 63 | if(USE_EQ_DRC) |
| 64 | list(APPEND EQ_DRC_FILES |
| 65 | amlogic_AQ_tools/audio_eq_drc_compensation.c |
| 66 | amlogic_AQ_tools/audio_eq_drc_parser.c |
| 67 | amlogic_AQ_tools/ini/dictionary.c |
| 68 | amlogic_AQ_tools/ini/iniparser.c) |
yayun.shi | 4a7148a | 2021-07-16 06:13:50 -0400 | [diff] [blame] | 69 | add_definitions(-DUSE_EQ_DRC) |
cheng tong | 12e5d13 | 2020-09-25 18:57:09 +0800 | [diff] [blame] | 70 | endif() |
| 71 | |
Rade Vulin | 8f219c5 | 2022-07-07 05:16:51 -0700 | [diff] [blame] | 72 | if(USE_MEDIA_INFO) |
| 73 | add_definitions(-DUSE_MEDIAINFO) |
| 74 | endif() |
| 75 | |
Tim Yao | e004da0 | 2019-12-03 11:59:05 -0800 | [diff] [blame] | 76 | ############################################# |
| 77 | # libaudio_hal |
| 78 | ############################################# |
shu.zhang | 5256329 | 2021-10-15 14:51:18 +0800 | [diff] [blame] | 79 | file(GLOB BASIC_UTILS_FILES "utils/basic_utils/*.cpp") |
| 80 | file(GLOB BASIC_CUTILS_FILES "utils/basic_cutils/*.c") |
Tim Yao | e004da0 | 2019-12-03 11:59:05 -0800 | [diff] [blame] | 81 | add_library(audio_hal SHARED |
yayun.shi | 4a7148a | 2021-07-16 06:13:50 -0400 | [diff] [blame] | 82 | aml_adecs/aml_aac_dec_api.c |
| 83 | aml_adecs/aml_ddp_dec_api.c |
| 84 | aml_adecs/aml_dec_api.c |
| 85 | aml_adecs/aml_dts_dec_api.c |
| 86 | aml_adecs/aml_mpeg_dec_api.c |
| 87 | aml_adecs/aml_pcm_dec_api.c |
shu.zhang | cebe6d8 | 2021-07-21 05:49:06 -0400 | [diff] [blame] | 88 | aml_adecs/aml_flac_dec_api.c |
shu.zhang | b3d790c | 2021-08-08 21:30:30 -0400 | [diff] [blame] | 89 | aml_adecs/aml_vorbis_dec_api.c |
yayun.shi | 4a7148a | 2021-07-16 06:13:50 -0400 | [diff] [blame] | 90 | aml_parser/ac3_parser_utils.c |
| 91 | aml_parser/aml_ac3_parser.c |
| 92 | aml_parser/aml_audio_ac3parser.c |
| 93 | aml_parser/aml_audio_ac4parser.c |
| 94 | aml_parser/aml_audio_bitsparser.c |
| 95 | aml_parser/aml_audio_matparser.c |
| 96 | aml_resampler/aml_audio_resample_manager.c |
| 97 | aml_resampler/aml_audio_resampler.c |
| 98 | aml_resampler/aml_resample_wrap.cpp |
| 99 | aml_resampler/audio_android_resample_api.c |
| 100 | aml_resampler/audio_simple_resample_api.c |
| 101 | aml_speed/aml_audio_speed_manager.c |
| 102 | aml_speed/audio_sonic_speed_api.c |
| 103 | aml_speed/sonic_speed_wrapper.c |
wei.wang1 | 70bd7b7 | 2022-02-16 12:16:56 +0800 | [diff] [blame] | 104 | aml_speed/sonic/sonic.c |
Tim Yao | e004da0 | 2019-12-03 11:59:05 -0800 | [diff] [blame] | 105 | audio_hal/alsa_config_parameters.c |
| 106 | audio_hal/alsa_manager.c |
yayun.shi | 4a7148a | 2021-07-16 06:13:50 -0400 | [diff] [blame] | 107 | audio_hal/audio_bt_sco.c |
Tim Yao | e004da0 | 2019-12-03 11:59:05 -0800 | [diff] [blame] | 108 | audio_hal/aml_audio_delay.c |
yayun.shi | 4a7148a | 2021-07-16 06:13:50 -0400 | [diff] [blame] | 109 | #audio_hal/a2dp_hal.cpp |
Tim Yao | e004da0 | 2019-12-03 11:59:05 -0800 | [diff] [blame] | 110 | audio_hal/aml_audio_ease.c |
| 111 | audio_hal/amlAudioMixer.c |
yayun.shi | 4a7148a | 2021-07-16 06:13:50 -0400 | [diff] [blame] | 112 | audio_hal/aml_audio_ms12_bypass.c |
Tim Yao | e004da0 | 2019-12-03 11:59:05 -0800 | [diff] [blame] | 113 | audio_hal/aml_audio_stream.c |
yayun.shi | 4a7148a | 2021-07-16 06:13:50 -0400 | [diff] [blame] | 114 | audio_hal/aml_audio_spdifout.c |
Tim Yao | e004da0 | 2019-12-03 11:59:05 -0800 | [diff] [blame] | 115 | audio_hal/aml_audio_timer.c |
| 116 | audio_hal/aml_avsync_tuning.c |
Tim Yao | e004da0 | 2019-12-03 11:59:05 -0800 | [diff] [blame] | 117 | audio_hal/audio_format_parse.c |
| 118 | audio_hal/audio_hw.c |
yayun.shi | 4a7148a | 2021-07-16 06:13:50 -0400 | [diff] [blame] | 119 | audio_hal/audio_hw_ms12_common.c |
| 120 | #audio_hal/audio_hw_ms12.c by default, we compile V2,V1 is not used now. TBD |
| 121 | audio_hal/audio_hw_ms12_v2.c |
| 122 | audio_hal/aml_audio_ms12_sync.c |
Tim Yao | e004da0 | 2019-12-03 11:59:05 -0800 | [diff] [blame] | 123 | audio_hal/audio_hw_profile.c |
yayun.shi | 4a7148a | 2021-07-16 06:13:50 -0400 | [diff] [blame] | 124 | audio_hal/audio_route.c |
Tim Yao | e004da0 | 2019-12-03 11:59:05 -0800 | [diff] [blame] | 125 | audio_hal/audio_hwsync.c |
yayun.shi | 4a7148a | 2021-07-16 06:13:50 -0400 | [diff] [blame] | 126 | audio_hal/audio_hwsync_wrap.c |
Tim Yao | e004da0 | 2019-12-03 11:59:05 -0800 | [diff] [blame] | 127 | audio_hal/audio_hw_utils.c |
| 128 | audio_hal/audio_port.c |
| 129 | audio_hal/audio_post_process.c |
Tim Yao | e004da0 | 2019-12-03 11:59:05 -0800 | [diff] [blame] | 130 | audio_hal/audio_virtual_buf.c |
| 131 | audio_hal/dolby_lib_api.c |
| 132 | audio_hal/hw_avsync.c |
| 133 | audio_hal/hw_avsync_callbacks.c |
| 134 | audio_hal/spdif_encoder_api.c |
| 135 | audio_hal/sub_mixing_factory.c |
yayun.shi | 4a7148a | 2021-07-16 06:13:50 -0400 | [diff] [blame] | 136 | audio_hal/aml_audio_dev2mix_process.c |
| 137 | audio_hal/aml_audio_ms12_render.c |
| 138 | audio_hal/aml_audio_nonms12_render.c |
| 139 | audio_hal/aml_audio_spdifdec.c |
| 140 | audio_hal/aml_dtvsync.c |
jing.zhang | 0ffa572 | 2022-05-23 11:33:11 +0800 | [diff] [blame] | 141 | audio_hal/aml_esmode_sync.c |
yayun.shi | 4a7148a | 2021-07-16 06:13:50 -0400 | [diff] [blame] | 142 | audio_hal/audio_mediasync_wrap.c |
| 143 | audio_hal/audio_hdmi_util.c |
| 144 | audio_hal/aml_audio_hal_avsync.c |
yayun.shi | 3a40dcb | 2021-07-20 05:14:48 -0400 | [diff] [blame] | 145 | audio_hal/tinyalsa_ext.c |
yayun.shi | d6eaaf4 | 2021-08-06 07:02:13 -0400 | [diff] [blame] | 146 | audio_hal/aml_config_parser.c |
yayun.shi | abe6697 | 2021-08-11 22:45:44 -0400 | [diff] [blame] | 147 | audio_hal/aml_config_data.c |
wei.du | 941fa2e | 2022-03-24 18:24:11 +0800 | [diff] [blame] | 148 | audio_hal/audio_effect_if.c |
yujia.liang | e61d34b | 2022-10-14 12:25:45 +0800 | [diff] [blame^] | 149 | audio_hal/earc_utils.c |
yayun.shi | d6eaaf4 | 2021-08-06 07:02:13 -0400 | [diff] [blame] | 150 | utils/cJSON/cJSON.c |
yayun.shi | 4a7148a | 2021-07-16 06:13:50 -0400 | [diff] [blame] | 151 | utils/aml_hw_mixer.c |
Tim Yao | e004da0 | 2019-12-03 11:59:05 -0800 | [diff] [blame] | 152 | utils/alsa_device_parser.c |
| 153 | utils/aml_alsa_mixer.c |
| 154 | utils/aml_android_utils.c |
| 155 | utils/aml_audio_mixer.c |
Tim Yao | e004da0 | 2019-12-03 11:59:05 -0800 | [diff] [blame] | 156 | utils/aml_buffer_provider.c |
| 157 | utils/aml_data_utils.c |
| 158 | utils/aml_dump_debug.c |
yayun.shi | 4a7148a | 2021-07-16 06:13:50 -0400 | [diff] [blame] | 159 | utils/aml_malloc_debug.c |
Tim Yao | e004da0 | 2019-12-03 11:59:05 -0800 | [diff] [blame] | 160 | utils/aml_ringbuffer.c |
| 161 | utils/aml_volume_utils.c |
| 162 | utils/aml_configs/aml_conf_loader.c |
| 163 | utils/aml_configs/aml_conf_parser.c |
yayun.shi | 4a7148a | 2021-07-16 06:13:50 -0400 | [diff] [blame] | 164 | utils/audio_data_process.c |
| 165 | utils/tinyalsa/pcm.c |
| 166 | utils/tinyalsa/mixer.c |
shu.zhang | 5256329 | 2021-10-15 14:51:18 +0800 | [diff] [blame] | 167 | ${BASIC_UTILS_FILES} |
| 168 | ${BASIC_CUTILS_FILES} |
yayun.shi | 4a7148a | 2021-07-16 06:13:50 -0400 | [diff] [blame] | 169 | #rcaudio/audio_hal_thunks.cpp |
Pradeep Sriram | d18aa61 | 2020-05-14 13:05:34 -0700 | [diff] [blame] | 170 | ${DTV_FILES} |
cheng tong | 12e5d13 | 2020-09-25 18:57:09 +0800 | [diff] [blame] | 171 | ${EQ_DRC_FILES} |
Tim Yao | e004da0 | 2019-12-03 11:59:05 -0800 | [diff] [blame] | 172 | ) |
| 173 | |
yayun.shi | 4a7148a | 2021-07-16 06:13:50 -0400 | [diff] [blame] | 174 | add_definitions(-DNDEBUG -DREPLACE_OUTPUT_BUFFER_WITH_CALLBACK -DDOLBY_MS12_ENABLE -DMS12_V24_ENABLE -DBUILD_LINUX) |
hui.liu | 300e42e | 2021-11-22 14:04:05 +0800 | [diff] [blame] | 175 | if(NO_USE_CAP) |
| 176 | add_definitions(-DNO_AUDIO_CAP) |
Tim Yao | b5e9839 | 2021-03-03 11:51:26 -0800 | [diff] [blame] | 177 | |
hui.liu | 300e42e | 2021-11-22 14:04:05 +0800 | [diff] [blame] | 178 | if(NO_USE_CAP_MUTE_HDMI) |
| 179 | add_definitions(-DNO_AUDIO_CAP_MUTE_HDMI) |
Tim Yao | b5e9839 | 2021-03-03 11:51:26 -0800 | [diff] [blame] | 180 | endif() |
Tim Yao | 2c66a76 | 2021-01-06 18:08:33 -0800 | [diff] [blame] | 181 | endif() |
Tim Yao | 4bff678 | 2019-12-26 18:31:40 -0800 | [diff] [blame] | 182 | |
yayun.shi | 62796de | 2021-08-27 18:11:05 +0800 | [diff] [blame] | 183 | message(WARNING "Audio_hal CMAKE_SYSTEM_PROCESSOR is ${CMAKE_SYSTEM_PROCESSOR}") |
| 184 | if (CMAKE_SYSTEM_PROCESSOR MATCHES "(arm)") |
Tim Yao | e004da0 | 2019-12-03 11:59:05 -0800 | [diff] [blame] | 185 | set(PREBUILD_STATIC_LIBS |
| 186 | ${CMAKE_SOURCE_DIR}/amlogic_AQ_tools/lib_aml_ng.a |
| 187 | ${CMAKE_SOURCE_DIR}/amlogic_AQ_tools/Amlogic_DRC_Param_Generator.a |
| 188 | ${CMAKE_SOURCE_DIR}/amlogic_AQ_tools/Amlogic_EQ_Param_Generator.a) |
yayun.shi | 62796de | 2021-08-27 18:11:05 +0800 | [diff] [blame] | 189 | else () |
| 190 | set(PREBUILD_STATIC_LIBS |
| 191 | ${CMAKE_SOURCE_DIR}/amlogic_AQ_tools/lib_aml_ng64.a |
| 192 | ${CMAKE_SOURCE_DIR}/amlogic_AQ_tools/Amlogic_DRC_Param_Generator64.a |
| 193 | ${CMAKE_SOURCE_DIR}/amlogic_AQ_tools/Amlogic_EQ_Param_Generator64.a) |
| 194 | endif () |
Tim Yao | e004da0 | 2019-12-03 11:59:05 -0800 | [diff] [blame] | 195 | |
| 196 | set_target_properties(audio_hal PROPERTIES |
| 197 | VERSION ${PROJECT_VERSION} |
| 198 | SOVERSION 1) |
| 199 | |
| 200 | target_include_directories(audio_hal PRIVATE |
Tim Yao | e004da0 | 2019-12-03 11:59:05 -0800 | [diff] [blame] | 201 | ./include |
yayun.shi | 4a7148a | 2021-07-16 06:13:50 -0400 | [diff] [blame] | 202 | ../hal_audio_service/include |
Tim Yao | e004da0 | 2019-12-03 11:59:05 -0800 | [diff] [blame] | 203 | ./include/utils |
shu.zhang | 5256329 | 2021-10-15 14:51:18 +0800 | [diff] [blame] | 204 | ./include/basic_utils |
| 205 | ./include/basic_utils/utils |
yayun.shi | 4a7148a | 2021-07-16 06:13:50 -0400 | [diff] [blame] | 206 | ./aml_speed/include |
| 207 | ./aml_speed |
| 208 | ./aml_resampler/include |
| 209 | ./aml_resampler |
| 210 | ./aml_adecs/include |
jianxuan.shen | 3c688b3 | 2022-09-09 18:08:39 +0800 | [diff] [blame] | 211 | ./aml_adecs |
yayun.shi | 4a7148a | 2021-07-16 06:13:50 -0400 | [diff] [blame] | 212 | ./aml_parser/include |
| 213 | ./aml_parser |
| 214 | ./utils/include |
| 215 | ./utils/tinyalsa/include |
yayun.shi | d6eaaf4 | 2021-08-06 07:02:13 -0400 | [diff] [blame] | 216 | ./utils/cJSON |
yayun.shi | 4a7148a | 2021-07-16 06:13:50 -0400 | [diff] [blame] | 217 | ./libms12_v24/include |
| 218 | ./amlogic_AQ_tools |
| 219 | ./dtv_audio_utils/audio_read_api |
yayun.shi | 9171f23 | 2021-09-10 10:12:23 +0800 | [diff] [blame] | 220 | ./audio_hal |
| 221 | ./amadec) |
Tim Yao | e004da0 | 2019-12-03 11:59:05 -0800 | [diff] [blame] | 222 | |
Tim Yao | e419f81 | 2021-01-20 21:15:05 -0800 | [diff] [blame] | 223 | target_compile_options(audio_hal PRIVATE -D_GNU_SOURCE -DTV_AUDIO_OUTPUT -Wno-deprecated-declarations -funwind-tables -fasynchronous-unwind-tables -fPIC) |
Tim Yao | e004da0 | 2019-12-03 11:59:05 -0800 | [diff] [blame] | 224 | |
| 225 | target_link_libraries(audio_hal |
cheng tong | fbe9e34 | 2021-11-02 13:03:35 +0800 | [diff] [blame] | 226 | audioprocessing spdifenc ms12v2 |
wei.du | 329bbcc | 2022-08-09 15:20:18 +0800 | [diff] [blame] | 227 | -lcutils -lamaudioutils -llog -lexpat -lpthread -ldl -lstdc++ -lrt -Wl,-z,defs) |
Song Zhao | c23fabe | 2020-09-18 13:28:40 -0700 | [diff] [blame] | 228 | |
| 229 | if(USE_EQ_DRC) |
| 230 | target_include_directories(audio_hal PRIVATE |
| 231 | ./include/amlogic_AQ_tools |
| 232 | ./amlogic_AQ_tools |
| 233 | ./amlogic_AQ_tools/ini) |
cheng tong | fbe9e34 | 2021-11-02 13:03:35 +0800 | [diff] [blame] | 234 | target_link_libraries(audio_hal ${PREBUILD_STATIC_LIBS}) |
Song Zhao | c23fabe | 2020-09-18 13:28:40 -0700 | [diff] [blame] | 235 | target_compile_options(audio_hal PRIVATE -DAML_EQ_DRC) |
Song Zhao | c23fabe | 2020-09-18 13:28:40 -0700 | [diff] [blame] | 236 | endif() |
| 237 | |
| 238 | if(USE_DTV) |
Zhizhong Zhang | 1630230 | 2021-01-20 22:29:14 +0800 | [diff] [blame] | 239 | target_include_directories(audio_hal PRIVATE |
| 240 | ${DTV_INC} |
| 241 | ${DVB_AUDIO_INC}) |
| 242 | target_link_libraries(audio_hal |
| 243 | ${DTV_LIBS} |
wei.du | 1e96ac2 | 2022-05-25 20:45:14 +0800 | [diff] [blame] | 244 | ${DVB_AUDIO_LIBS}) |
Zhizhong Zhang | 1630230 | 2021-01-20 22:29:14 +0800 | [diff] [blame] | 245 | endif() |
| 246 | |
Rade Vulin | 8f219c5 | 2022-07-07 05:16:51 -0700 | [diff] [blame] | 247 | if(USE_MEDIA_INFO) |
| 248 | target_link_libraries(audio_hal -lamlminfo) |
| 249 | endif() |
jing.zhang | f497c3b | 2021-09-01 17:31:53 +0800 | [diff] [blame] | 250 | |
| 251 | target_link_libraries(audio_hal -lamlavsync) |
| 252 | |
Tim Yao | 35766e4 | 2021-02-22 17:35:58 -0800 | [diff] [blame] | 253 | |
Zhizhong Zhang | 1630230 | 2021-01-20 22:29:14 +0800 | [diff] [blame] | 254 | if(USE_SC2) |
| 255 | add_definitions(-DDVB_AUDIO_SC2) |
Song Zhao | c23fabe | 2020-09-18 13:28:40 -0700 | [diff] [blame] | 256 | endif() |
Tim Yao | e004da0 | 2019-12-03 11:59:05 -0800 | [diff] [blame] | 257 | |
| 258 | install(TARGETS audio_hal |
| 259 | LIBRARY DESTINATION "lib") |
| 260 | |
| 261 | install(FILES audio_hal/mixer_paths.xml |
| 262 | DESTINATION /etc) |
| 263 | |
yayun.shi | 62796de | 2021-08-27 18:11:05 +0800 | [diff] [blame] | 264 | if (CMAKE_SYSTEM_PROCESSOR MATCHES "(arm)") |
cheng tong | 5ae9269 | 2020-08-28 14:13:39 +0800 | [diff] [blame] | 265 | install(PROGRAMS amlogic_AQ_tools/Amlogic_DRC_Param_Generator amlogic_AQ_tools/Amlogic_EQ_Param_Generator |
| 266 | DESTINATION /usr/bin) |
yayun.shi | 62796de | 2021-08-27 18:11:05 +0800 | [diff] [blame] | 267 | endif () |