diff --git a/test/BUILD.gn b/test/BUILD.gn new file mode 100644 index 0000000000000000000000000000000000000000..2d82287dbd6b0d531225d670c235246287f0a77f --- /dev/null +++ b/test/BUILD.gn @@ -0,0 +1,43 @@ +import("//build/ohos.gni") +import("//drivers/hdf_core/adapter/uhdf2/uhdf.gni") +import("//foundation/multimedia/audio_framework/config.gni") + +ohos_shared_library("remote_audio_renderer_sink") { + sanitize = { + cfi = true + debug = false + blocklist = "//foundation/multimedia/audio_framework/cfi_blocklist.txt" + } + install_enable = true + + sources = [ "remote/remote_audio_renderer_sink.cpp" ] + + cflags = [ "-fPIC" ] + cflags += [ "-Wall" ] + cflags_cc = cflags + if ("${product_name}" == "m40") { + cflags += [ "-DPRODUCT_M40" ] + } + + include_dirs = [ + "//foundation/multimedia/audio_framework/interfaces/inner_api/native/audiocommon/include", + "//foundation/multimedia/audio_framework/frameworks/native/audioutils/include", + "//foundation/multimedia/audio_framework/frameworks/native/hdiadapter/sink/common", + "//drivers/peripheral/audio/interfaces/include", + ] + + deps = [ + "//foundation/multimedia/audio_framework/frameworks/native/audioutils:audio_utils", + "//third_party/bounds_checking_function:libsec_static", + ] + + if ("${product_name}" == "m40") { + deps += [ "//foundation/distributedhardware/distributed_audio/hdf_service/distributed_audio/audio_client:daudio_client" ] + } else { + deps += + [ "//drivers/peripheral/audio/hal/hdi_binder/proxy:hdi_audio_client" ] + } + + external_deps = [ "hiviewdfx_hilog_native:libhilog" ] + +} \ No newline at end of file