From cd480c8820b87ff2855e6bf858da10886df02ccc Mon Sep 17 00:00:00 2001 From: liujiahui Date: Wed, 9 Nov 2022 15:53:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E7=94=A8BUILD.gn?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: liujiahui --- test/BUILD.gn | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 test/BUILD.gn diff --git a/test/BUILD.gn b/test/BUILD.gn new file mode 100644 index 0000000..2d82287 --- /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 -- Gitee